By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,360 Members | 3,011 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,360 IT Pros & Developers. It's quick & easy.

Coding Standards

P: n/a
Hi Guys,
Could any one knows the best coding standards styles(with variable
declarations for c#) . and if any links or site with the best coding
standards for .NET send me those links

regards
Ganesan

Jul 21 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Ganesan,

try this one:
http://msdn.microsoft.com/library/de...us/stg/stg/cod
ing_style_conventions.asp

Regards,
Michael

"ganesan" <cs*********@gmail.com> schrieb im Newsbeitrag
news:11**********************@z14g2000cwz.googlegr oups.com...
Hi Guys,
Could any one knows the best coding standards styles(with variable
declarations for c#) . and if any links or site with the best coding
standards for .NET send me those links

regards
Ganesan

Jul 21 '05 #2

P: n/a
H Ganeshan,

Here are some best coding standards for variables, Data Types and constants..
1. Use the inbuilt data types of the language rather than the framework data
types
Eg: Use int (for C#) rather than Int32.
2. Use the simplest data type that can store u r value
3. Initialize variables when they are declared. This makes the code readable
and also shields you from changes to default values in the future version of
language. The .NET compiler optimizes this so that there is no performance
hit when you do this. ( For .NET 2.0 only)
4. Prefer generic types to base class based types ( In case u r coding in C#
2.0)

HTH,

Need any help, do post a msg back..
Happy Coding
"ganesan" wrote:
Hi Guys,
Could any one knows the best coding standards styles(with variable
declarations for c#) . and if any links or site with the best coding
standards for .NET send me those links

regards
Ganesan

Jul 21 '05 #3

P: n/a
These are good:
http://www.icsharpcode.net/TechNotes/
http://www.idesign.net/idesign/ (look for standard under News and Resources
on the right)

A bit much if you are just getting started:
http://www.tiobe.com/standards/gemrcsharpcs.pdf

-Andrew

"ganesan" <cs*********@gmail.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
Hi Guys,
Could any one knows the best coding standards styles(with variable
declarations for c#) . and if any links or site with the best coding
standards for .NET send me those links

regards
Ganesan

Jul 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.