hi
i know that with languages there is a trend that follows, for instance sometimes for member variables they start with 'Mvar' or P for private ... and sometimes there is use of lower case and upper case when declaring stuff .. like this 'testPerson' (test having the lower case 't') ... are there the same rules for c# for good coding practice?
will member variables start with mvar or P for good practice? ...
Loading
Manikavelu VelayuthamPosted Dec 22, 2010, 4:46 AM
Integer variables --> intInput, intOutput
String Variables --> strFlagName, strClassname
DropdownList --> ddlCountryNames
Textbox --> txtFirstname
like that its goes on in c#
Santhosh NPosted Dec 22, 2010, 5:14 AM
John BurnsPosted Dec 22, 2010, 4:56 AM
Mamta MPosted Dec 22, 2010, 4:53 AM
This differs from company to company as some companies have documented their own conventions and standards even when working with proprietary languages. However, if you are an individual learner/developer, you would do best to follow official coding conventions. The best known recent coding standards by Microsoft for C# and VB.NET is here:
http://1code.codeplex.com/releases/view/51868
Hope this helps.
-Mamta