[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

C#.NET 3.5 Code review checklist

Posted on 2013-01-09
5
Medium Priority
?
2,559 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 20

Accepted Solution

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

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 45

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

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

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

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Loops Section Overview
Suggested Courses

872 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