.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal

Home >> Articles >> C# >> Post New Resource Bookmark and Share   

 Subscribe to Articles

Basic steps for creating a program in .Net:

Posted By:Narayanan       Posted Date: September 26, 2011    Points: 200    Category: C#    URL: http://www.dotnetspark.com  

Here , We discussed about How to start a Program in .Net? what are all the Basic steps for creating a Program?


  This article may be considered as a guide for wirting programs in any .net Language. So Please read this article read carefully .If you want any suggestions and Comments to this Mail ID:irnaraayanan@yahoo.com



File Name:

   What is the entire file names created at the time of Project?


In C#.net

 File Name (Suffix):   .cs .

Usage:                        It is a Class File


File Name (Suffix):   .csproj.

Usage:                        It is a Project File


In VB.net

 File Name (Suffix):   .vb .

Usage:                        It is a Class File


File Name (Suffix):   .vbproj.

Usage:                        It is a Project File





File Name (Suffix):   .aspx .

Usage:                        It is a ASP.Net File


File Name (Suffix):   .ascx.

Usage:                        User Defined Control in ASP.Net


File Name (Suffix):   .asmx.

Usage:                        Web service in ASP.Net


 File Name (Suffix):   .sln.

Usage:                        .Net Solution File






Common File Names in .net









File Layout:

   Each .net Source file will contain only one Public class. When private classes and interfaces are associated within Public class. Here I give the example  for File Layout.


Class Name: Test

File Name: Test.cs


Class layout:

   Class/Interface Header comments

Nested Types

Object Declaration






Method Layout:

   Method Commets

Local variable Declaration




Declarations variables should be meaningful and related your Project .Don't declare single letter like (a, b).



Blank Lines:

   One blank line should always be used between



Local variable in the Method and it's a first statement.




Class names must be nouns or nouns phrase

Use Properties spelled Plural Form to a name Collection Class.

Use Pascal Casing.

Do not use any class prefix

Use Singular names for Enum.

Use plural names for bit field.

Use the Char "I" as a prefix to indicate that the type is an Interface.

Use the Char "m_" as a prefix to indicate that the Module variable

Use the Char "l_" as a prefix to indicate that the Local variable

Name Methods with verbs or verb phrase.



Pascal Casing : First char of the word is capital  .Ex: MyCount

Camel Casing : First char of the word is capital except  the first one  .Ex: myCount

 Subscribe to Articles


Further Readings:


No response found. Be the first to respond this post

Post Comment

You must Sign In To post reply
Find More Articles on C#, ASP.Net, Vb.Net, SQL Server and more Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend