?
Solved

C#.NET 3.5 Code review checklist

Posted on 2013-01-09
5
Medium Priority
?
2,428 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 19

Accepted Solution

by:
Rikin Shah earned 1600 total points
ID: 38761950
0
 
LVL 19

Assisted Solution

by:Rikin Shah
Rikin Shah earned 1600 total points
ID: 38761957
Hi,

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

Expert Comment

by:AndyAinscow
ID: 38761962
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 75

Expert Comment

by:käµfm³d 👽
ID: 38762750
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
ID: 38762779
Thanks.
0

Featured Post

How To Reduce Deployment Times With Pre-Baked AMIs

Even if we can't include all the files in the base image, we can sometimes include some of the larger files that we would otherwise have to download, and we can also sometimes remove the most time-consuming steps. This can help a lot with reducing deployment times.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

770 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