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? ...
Convention ... coding trend?
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Manikavelu VelayuthamRank #413 · 6K reputationPosted Dec 21, 2010, 11:46 PM EST
Integer variables --> intInput, intOutput
String Variables --> strFlagName, strClassname
DropdownList --> ddlCountryNames
Textbox --> txtFirstname
like that its goes on in c#
Mamta MRank #268 · 9.4K reputationPosted Dec 21, 2010, 11:53 PM EST
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
John Burns116 reputationPosted Dec 21, 2010, 11:56 PM EST
Santhosh NRank #4,788 · 325 reputationPosted Dec 22, 2010, 12:14 AM EST