I am new in Csharp but worked in VB. I have done a web application but my PM says following things i corrected my code and please compare following rules with my Code if i am wrong???
* Try to initialize variables where you declare
* Always choose
the simplest data type list or object required.
* Always use the
built-in C# data type aliases. Not the .Net Common Type System (CTS) E.g.
instead of System.Int16
instead of System.Int64
instead of System.String
o Only declare
member variables as private. Use properties to provide access to them with
public, protected or internal access modifiers.
o Try to use
double for fractional numbers to ensure decimal precision in calculations.
o Only use
float for fractional numbers that will not fit double or decim
View Complete Post