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

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)