As far as I know, in C# all fields are private for default, if not marked otherwise.
class Foo
{
private string bar;
}
class Foo
{
string bar;
}
I've been on the fence for a while about this. I used to argue for leaving it implicit, but now I think I'm tipped over towards making it explicit.
Reasons for leaving it implicit:
Reasons for making it explicit:
These latter points are basically the ones made by Eric Lippert when we discussed it a while ago.