Personally I like Hungarian notation for C#, because I like it for C++.
I have read in Microsoft coding standard articles that Hungarian notation for C# is bad.
I've also read that for member variables you should use '_'.
e.g.
Any thoughts ? I still like Hungarian notation - it's easy to understand and you always know what type the variables are.Code:// bad according to Microsoft coding standards
class MyClassBad
{
private string m_sString;
private int m_nInteger;
}
// good according to Microsoft coding standards
class MyClassGood
{
private string _theString;
private int _theInteger;
}
And C# is so close in syntax to C++ then why not use Hungarian notation ?
Darwen.
