Tips n Tracks

  • Increase font size
  • Default font size
  • Decrease font size
  • default color
  • black color

Reference

Sample image

Microsoft .NET Framework Get Details.

Sample image

Microsoft .NET Framework Get Details.

Reference

Sample image Microsoft .NET Framework Get Details.
Sample image

Microsoft .NET Framework Get Details.


C# Coding Standards and Guidelines: Error Handling


C# Coding Standards and Guidelines: Error Handling

1. Error handler should be present whenever you anticipate possibility of error.

2. Do not use Try-catch for flow- control.

3. Never declare an empty catch block.

4. Error Message should be user friendly, simple and understandable.


Read the rest of this entry »

C# Coding Standards and Guidelines: Comments


C# Coding Standards and Guidelines: Comments

1. All source code must include the following comments at the very top:

/********************************************************
*Author:
*Date:
*Description:
*Revision:
********************************************************/

2. All comments should be written in English(like in U.S. English).

3. Comments lines should begin with // indented at the same level as the code they are documenting.

4. Do not use /* … */ blocks for comments.


Read the rest of this entry »

C# Coding Standards and Guidelines: Coding Practices


C# Coding Standards and Guidelines: Coding Practices

1. Use meaningful namespace such as the product name or the company name.

2. Avoid fully qualified type names. Use the using statement instead.

3. Avoid putting a using statement inside a namespace.

4. Group all framework namespaces together and put custom or third-party namespaces underneath.


Read the rest of this entry »

C# Coding Standards and Guidelines: Naming Conversions and Style


C# Coding Standards and Guidelines: Naming Conversions and Style

1) Use Pascal casing for type and method and constants.

public class SomeClass
{
const int DefaultSize= 100;
public SomeMethod ()
{}
}


Read the rest of this entry »

Importance of Coding Standards for .NET Development


Importance of Coding Standards for .NET Development

While coding, is necessary to follows guideline or criterion of coding standard? We have a problem and we are going to write code for that. We are getting what we want then what is the need of terms like coding standard? Are they really useful? In this article we are going to find out answers of our questions…

Coding Standard…?

A coding standard is a set of guidelines, rules and regulations on how to write code which will help programmers/developer quickly read and understand source code conforming to the style as well as helping to avoid introducing faults and misunderstanding.

Coding standards are important because they provide greater consistency and uniformity in writing code between programmers. This ultimately leads to the code that is easier to understand and maintain which reduces the overall cost of the project.


Read the rest of this entry »