This blog is to demonstrate the coding style that I use.
1) Variable Naming Rule
Usually a variable 's name consists of 3 parts, which are scope, prefix, and qualifier.The formulation is [Scope]_[Prefix][Qualifier].
Eg. m_nAgem means it's a member variable of a class or a structure.n means it's integer.Age demonstrates the usage of this variable.
1.1) Scope
Scope is the range in which a variable can be referenced.
l local variable g global variable m member variable of a class or a structure i input variable s static variable
1.2) Prefix
Prefix indicates the type of a variable.
Index Type Prefix 1 sbyte sb 2 byte byte 3 short s 4 ushort us 5 int n 6 uint un 7 long l 8 ulong ul 9 bool b 10 char c 11 float f 12 double d 13 decimal dm 14 struct stu 15 enum enum 16 object o
1.3) Qualifier
Qualifier demonstrates the usage of a variable.