Since the latest version of c#, it is possible to write the following interface:
public interface IMyInterface
{
public void MyMethod();
}
This seems like a code smell to me, as I feel like the intention was to write the previously available:
public interface IMyInterface
{
void MyMethod();
}
Are those two interfaces exactly the same ? Does the public
keyword add/changes anything ? Is this something that should be corrected, or am I wrong and should public
be consistently used now ?