Use the
following three conventions for capitalizing identifiers.
The first
letter in the identifier and the first letter of each subsequent concatenated
word are capitalized. You can use Pascal case for identifiers of three or more
characters. For example:
The first
letter of an identifier is lowercase and the first letter of each subsequent
concatenated word is capitalized. For example:
backColor
Uppercase
All letters in
the identifier are capitalized. Use this convention only for identifiers that
consist of two or fewer letters. For example:
System.IO
System.Web.UI
Now how our code should be using above three capitalizing identifires as Microsoft Standerds
(Reference : http://msdn.microsoft.com/en-us/library/x2dbyw72%28v=vs.71%29.aspx)
- Refer the above capitalizing styles
- Give summery to your code / Method / Class
I found following correction in the code. So that code will look fine
Corrections :
Ø
Class
Level private vairable always preceeded with "_"
Ø
Class
Should have Summery
Ø
Method
Should have Summery
Ø
All the
properties Should be in one regions
Ø
All the
public methods should be in one regions
Ø
Class
Name Should be in
Now corrected code should be look like this.
|
4: Use:? Operator rather than below statement
Can be written as
5:Use Var Vaiable wherever is possible
can be wrriten as
6: Remove un used usings from your file.
Refer this link :
http://ajayrgandhi.blogspot.in/2014/08/how-to-remove-un-used-usings-in-visual.html
No comments:
Post a Comment