C# is mainstream language of Microsoft. It enables developers to build robust applications that runs on a .net framework. You can use c# to build traditional windows form applications, client server applications, web services , web applications, database applications, mobile applications and many more. C# is an object oriented language, though we can work with procedural approach too, but it still contains the object oriented approach within. Adding some more about object oriented principles, C#(c sharp) makes it easy for developing software components through several innovative language constructs, including the following:
Delegates, which enables type safe event notification.
Inline xml commenting that provides a capability for proper documentation for code.
LINQ, providing built in queries across a verity of data sources.
“Inerop” enables the c# programs to work almost like the native cpp application can do. As if you have to work with other windows software’s such as COM objects or native win32 dlls, if can be done with the process called “Interop”. Pointers are also supported in c#. Memory management in no more developers work to do. C# manages the memory by itself.
An advance code editor known as visual studio is provided with plenty of tools to make development more easy for the developers. You would have to use visual studio 2010 with .net framework 4.0 or visual studio 2012 with .net framework 4.5 for practice with umbrella-developers.
The c# program runs on a .net framework, there is an integral component of windows that do includes virtual execution system that is called (CLR) stands for common language run time and a large set of class libraries. This is an international standard that is the base for creating execution and development environments in which libraries and languages works seamlessly.
Code written in C#, is compiled in an intermediate language (IL) that conforms to CLI specification. IL code and resources, are stored on disk in an executable file called assembly, typically with an extension of (.exe or .dll). An assembly contains a manifest that provides information about the assemblies types, version, culture, and security requirements.
When you execute the c# program, the assembly is loaded in CLR, which might take different actions based on the information in the manifest. if the security requirements are met, the CLR performs just in time compilation to convert the intermediate language code to native machine instructions. Common language run time also provides other services related to automatic garbage collection, exception handling, and resource management. Code that is executed by the Common language run time is sometimes referred to as (managed code). In contrast to (unman aged code) which is compiled into native machine language that targets a specific system. The following diagram illustrates the compile-time and run-time relationships of C# source code files, .NET Framework class libraries, assemblies, and Common language run time
Even though c# is not the only language supported by .net framework. There are more languages like visual basic , f#, j# etc But in these tutorials we will work using visual c#.net only.
The practical work will be started form the next lesson . For further suggestions email us through Contact us page.