Solved

C#.NET 3.5 Code review checklist

Posted on 2013-01-09
5
2,220 Views
Last Modified: 2013-01-10
I would like to come up with C#.NET 3.5 Code review checklist such as Use Properties instead of variables, Use stringbuilder to combine more string values together, Use using block to open connection and so on. Please do share your thoughts to make a complete list. If you have entire list that would be great.


Please note that I'm using .NET Windows Application NOT asp.net.
0
Comment
Question by:Easwaran Paramasivam
5 Comments
 
LVL 19

Accepted Solution

by:
Rikin Shah earned 400 total points
Comment Utility
0
 
LVL 19

Assisted Solution

by:Rikin Shah
Rikin Shah earned 400 total points
Comment Utility
Hi,

Download this pdf file, it contains most rules-
http://www.tiobe.com/content/paperinfo/gemrcsharpcs.pdf
0
 
LVL 44

Expert Comment

by:AndyAinscow
Comment Utility
Just being pedantic - aren't properties in reality variables.  I take it you mean that variables should be protected or private and use get/set accessors to control access to these variables.
0
 
LVL 74

Expert Comment

by:käµfm³d 👽
Comment Utility
Use stringbuilder to combine more string values together
For this, I hope you mean for a large number of "combines." IIRC, for four or less concatenations, it's more performant to just do the concatenation.

@AndyAinscow
Just being pedantic - aren't properties in reality variables.
Well at a technical level, they are really getter and setter methods (thanks to the compiler). But I suppose most of us think of them as akin to variables (myself included).  : )
0
 
LVL 16

Author Closing Comment

by:Easwaran Paramasivam
Comment Utility
Thanks.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Setting location of a form 4 20
comparing string in C# 3 31
Code enhancement 5 12
Redacting a row in Excel based on a term. 17 19
We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now