C# Variable Naming -


i wondering best way of naming variable in c#? know there several different ways wondering why people prefer 1 on other?

i tend use lowercase letter representing type (i think hungarian method?) lot of people don't this, best way?

example:

string smystring string mystring string mystring string mystring 

thanks

the common convention have seen c# when naming fields , local variables camel case:

string mystring 

here microsoft guidelines capitalization in c#. state (amongst others):

the following guidelines provide general rules identifiers.

do use pascal casing public member, type, , namespace names consisting of multiple words.

note rule not apply instance fields. reasons detailed in member design guidelines, should not use public instance fields.

do use camel casing parameter names.


i add needs agreed team members.


Comments

Popular posts from this blog

javascript - Iterate over array and calculate average values of array-parts -

iphone - Using nested NSDictionary with Picker -

objective c - Newbie question -multiple parameters -