INTRODUCTION TO C# (PRONOUNCED C-SHARP)
c# ( c-sharp) is no doubt the language of choice in the .NET
environment.
It is a whole new language free of the backward compatibility
curse with a whole bunch of new, exciting and promising features. It is an
object oriented programming language and has at its core, many similarities to
java, c++ and VB. In the fact, c# combines the power and efficiency of c++, the
simple and clean OO design of java and the language simplification of visual
basic.
Like java, c# also does not allow multiple inheritance or the
use of pointers (in safe/ managed code), but does provide garbage memory
collection at run time, type and memory access checking.
However, contrary to
JAVA, c# maintains the unique useful operations of c++ like operator
overloading, enumerations, per-processor directives, pointers(in unmanaged /
unsafe code), function pointers (in the form of delegates) and promises to have
template support in the next versions. Like VB, it also supports the concepts
of properties (context sensitive fields).
In addition to this, c# comes up with some new and exciting
features such as reflections, attributes, marshaling, remoting, threads,
streams, data access with ADO.NET and more.
THE .NET
ARCHITECTURE AND .NET FRAMEWORK:-
In the .NET architecture and the .NET framework there are
different important terms and concepts which we will discuss one by one:-
1.THE COMMON
LANGUAGE RUNTIME (CLR):-
The most
important concept of .NET framework is the existence and functionality of the
.NET common language runtime (CLR), also called .NET run time for short. It is
a framework layer that resides above the OS and handles the execution of all
the .NET applications. OUR programs don't directly communicate with the OS but
go through the CLR.
2.MICROSOFT
INTERMEDIATE LANGUAGE CODE (MSIL):-
When we
compile our .NET program using any .NET complaint language such as c#, VB.NET
or c++.NET our source code does not get converted into the executable binary
code, but to an intermediate code known as MSIL which is interpreted by the
common language run time. MSIL is operating system and hardware independent
code. Upon program execution, this MSIL (intermediate code) is converted to
binary executable code (native code). Cross language relationships are possible
as MSIL code is similar for each .NET language.
NEXT POST IS: VARIABLE DECLARATION IN C#
IF YOU HAVE ANY QUESTION PLEASE POST IT IN THE COMMENT BOX.
0 comments:
Post a Comment