Solved

C#.NET 3.5 Code review checklist

Posted on 2013-01-09
5
2,366 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 400 total points
ID: 38761950
0
 
LVL 19

Assisted Solution

by:Rikin Shah
Rikin Shah earned 400 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

Quiz: What Do These Organizations Have In Common?

Hint: Their teams ended up taking quizzes, too.

Question has a verified solution.

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

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…

705 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