NO
|
ITEM
|
DESCRIPTION / REMARKS / E.G
|
1
|
Class Names
|
Use PascalCasing for declaring Class Names
E.g.
public
class Apple
{
Coding………..
}
|
2
|
Method Names
|
Use PascalCasing for declaring Class Names
E.g.
public
class Apple
{
public void Create()
{
Coding………..
}
}
|
3
|
Variable Names
|
Use camelCasing for local variables and method
arguments
E.g.
int counter;
string name;
int itemCount;
|
4
|
Try
Catch
|
Use Try catch block in all methods
E.g.
Try{
Coding…….
}
Catch(exception e)
{
Handle
Exception
}
|
5
|
#region
#endregion
|
Use separate region and declare all member variables at the top of a
class within the region.
Use separate region for properties member.
Use separate region for properties member.
Use separate region for Views.
Use separate region for common methods.
|
6
|
Variable Naming
|
Meaningful names to the context for class / methods
/ variables.
E.g.
UserGroup userGroup.
Assignment employeeAssignment.
|
7
|
Comments
|
Always give comments for
every method and every five lines of code.
|
8
|
If / Else
|
Use Else always with the IF/ Else statement
|
Monday, 18 January 2016
Naming Conventions Standards to be followed while coding
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment