Features of C#
It supports object oriented programming.
Language independence and inter operability.
means we use any class language used in another language
There is no preprocessor & much larger library
All code written inline.
All types are treated an objects and developers can extend the type system simply and easily at run time.
Modern programming language
C# support number of modern features
Automatic garbage collection
Error handling features
Modern debugging features
Robust security features
Type safety promotes robust programming.
All objects and arrays are initialized by zeros.
An error messages will be produced on use of any uninitialized variable.
Automatic checking of array.
Feature of versioning
Making new version of software module work with the existing apps known as versioning.
Compiling the program
To compile the program execute the c# compiler csc.exe specifying the name of the source fileon the command line.
Running the program
To actually run the program just type its name on the command line as shown here.
Using the Visual Studio IDE
New --> Project --> Next --> Select visual c# and then console application --> Change name of project -->Ok.
The csc compiler creates a file called example.exe that contains the MSIL version of he program.
MSIL is not executable code it is still contained in an exe file.
The CLR automatically invokes the JIT compiler when you attempt to execute example.exe.