h1.post-title { color:orange; font-family:verdana,Arial; font-weight:bold; padding-bottom:5px; text-shadow:#64665b 0px 1px 1px; font-size:32px; } -->

Pages

Basic steps for creating a program in .Net

Introduction:
  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
IN ASP.Net
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

  • Machine.config
  • App.config
  • Web.config
  • Assemble.vb
  • Global.asax
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
Constructors
Properties
Methods
Method Layout:
   Method Commets
Local variable Declaration
Code
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
Methods,
Properties
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