C# coding standards for private member variables [closed]

Besides the two you mention, it is very common in C# to not have a prefix for private members.

class Foo
{
    private int i;
    private string id; 
}

That is what I use, and also what is recommended in Microsoft’s internal naming guidelines.

See also these .NET naming guidelines.

Leave a Comment