C# is a simple, modern, general-purpose, object-oriented programming language developed by Microsoft within its .NET initiative led by Anders Hejlsberg. This tutorial will teach you basic C# programming and will also take you through various advance concepts related to C# programming language. Audience
This tutorial has been prepared for the beginners to help them understand basic C# programming. After completing this tutorial you will find yourself at a moderate level of expertise in C# programming from where you can take yourself to next levels. Prerequisites
C# programming is very much based on C and C++ programming languages so if you have basic understanding on C or C++ programming then it will be a fun to learn C# programming language. Compile/Execute C# Programs
If you are willing to learn the C# programming with a C# Mono Compiler then you havecompileonline.com available on a high end dedicated server giving you real programming experience with a comfort of single click compilation and execution. Yes! it is absolutely free and its online. C# - Overview
C# is a modern, general-purpose object oriented programming language developed by Microsoft and approved by Ecma and ISO. C# was developed by Anders Hejlsberg and his team during the development of .Net Framework. C# is designed for Common Language Infrastructure (CLI), which consists of the executable code and runtime environment that allows use of various high-level languages to be used on different computer platforms and architectures. The following reasons make C# a widely used professional language: Modern, general purpose programming language
Easy to learn.
It produces efficient programs.
It can be compiled on a variety of computer platforms.
Part of .Net Framework.
Strong Programming Features of C#
Although C# constructs closely follows traditional high level languages C and C++ and being an object oriented programming language, it has strong resemblance with Java, it has numerous strong programming features that make it endearing to multitude of programmers worldwide. Following is the list of few important features:
Automatic Garbage Collection
Properties and Events
Delegates and Events Management
Easy to use Generics
LINQ and Lambda Expressions
Integration with Windows
C# - Environment
In this chapter, we will discuss the tools required for creating C# programming. We have already mentioned that C# is part of .Net framework and is used for writing .Net applications. Therefor before discussing the available tools for running a C# program, let us understand how C# relates to the .Net framework. The .Net Framework
The .Net framework is a revolutionary platform that helps you to write the following types of applications: Windows applications
The .Net framework applications are multi-platform applications. The framework has been designed in such a way that it can be used from any of the following languages: C#, C++, Visual Basic, Jscript, COBOL etc. All these languages can access the framework as well as communicate with each other. The .Net framework consists of an enormous library of codes used by the client languages like C#. Following are some of the components of the .Net framework: Common Language Runtime (CLR)
The .Net Framework Class Library
Common Language Specification
Common Type System
Metadata and Assemblies
ASP.Net and ASP.Net AJAX
Windows Workflow Foundation (WF)
Windows Presentation Foundation
Windows Communication Foundation (WCF)
For the jobs each of these components perform, please see ASP.Net - Introduction and for details of each component, please consult Microsoft's documentation. Integrated Development Environment (IDE) For C#
Microsoft provides the following...