Thursday, 27 February 2014

Main() Method and its purpose?

The Main method is the entry point of a C# console application or windows application.When the application is started, the Main method is the first method that is invoked. A main method is static because it is available to run when your program starts and as it is the entry point of the program it...

Thursday, 23 January 2014

What's the difference between struct and class in C# .Net ?

In .NET, there are two categories of types, reference types and value types. Structs are value types and classes are reference types. The general difference is that a reference type lives on the heap, and a value type lives inline, that is, wherever it is your variable or field is defined. A variable containing a value type contains the entire value type value....

Tuesday, 14 January 2014

What is Static Class ?

Static Class is same as of non Static class, the only difference i.e. its can not be instantiated means you can not create new instance of the static class. In other words you cannot use NEW keyword to create a variable of class type. For static class ,static constructor is called only once before the class is referenced for the first time in a program loaded once is life time of program and a...

Monday, 13 January 2014

What is .NET Framework?

.Net Framework is a software Framework developed by Microsoft that runs primarily on Microsoft windows. It Includes large libraries and provides language Interoperability across several programming Language. Programs Written in .Net Framework executes in software environment known as Common Language Run...