×

C# Tutorial

The C# Tutorial provides basic and advanced knowledge of C# . This will help the beginners as well as professionals in learning just more then enough about C#, A Programming language developed by Microsoft .

The tutorial includes all the basic and advanced topics of C# which are Control statements, Loops, Functions, OOPS Concepts, Multi-Threading,  Collections and many more . it will not only cover point to point theoretical concepts but the practical examples and logical Programs too .

Prerequisite

You must have the knowledge of C and some oops concepts before learning C#.

Audience

C Sharp Tutorial will help beginners as well as professionals who are seeking for a change in their daily life general purpose programming language.

What is C#?

C# (Pronounced as see-sharp) is a general purpose object oriented programming language developed by Microsoft in the year of 2002 . The latest version of the language was released  as C# 7.2 along with Visual studio 2017 version 15.5 .

C# is approved by ECMA, ISO as a standard . C# is designed for CLI which stands for common language infrastructure (Executable code and run time environment ).

C# is influenced by C, C++, java, Pascal and many other object oriented programming languages.

Using C# we can develop following Applications

  1. Window applications
  2. Web applications
  3. Distributed applications
  4. Web service applications
  5. Database applications etc.

History of C#

History of C# is very interesting to know. In January, 1999 Anders Hejlsberg formed a team to build a C like object oriented programming language. At the time of creation they named the project as COOL which was abbreviated as C-like object oriented language but due to trademark reasons, they refused the name and renamed it as C# which means an addition to C++ and  was inspired by musical notation where a sharp indicates that the written note should be made a semitone higher in pitch.

The sharp symbol also represents four addition ‘+’ signs which shows C# as an addition to C++ programming language.

Version Details

VersionRelease Date C# 1.0January, 2002C# 1.1 and C# 1.2April, 2003C# 2.0November, 2005C# 3.0November, 2007C# 4.0April, 2010C# 5.0August, 2012C# 6.0July, 2015C# 7.0March, 2017C# 7.1August, 2017

 

C# Features:

C# Provides lot of features which are stated below:

  1. Object Oriented
  2. Simple
  3. Modern programming language
  4. Scalable
  5. Updatable
  6. Type Safe
  7. Rich set of library
  8. Automatic Garbage Collection
  9. Simple Multi Threading
  10. Component Oriented
  11. Fast speed

C# Tutorial Index

C# Control Statement

C# Arrays

C# Function

C# Object Class

C# Inheritance

C# Polymorphism

C# Abstraction

C# Namespace

C# Strings

C# Misc

Next →


Related Topics

C# Params

There are cases when we don’t know the actual number of parameters in the function call. Well, in C# we can pass any number of parameters in the function call...

3 minutes read.

C# If Statements

In C#, If Statements are used to check the condition. Expression given in if statement is evaluated, If it is true then if block gets executed if it is false...

2 minutes read.

C# Multilevel Inheritance

In Multilevel inheritance, the class inheriting its parent class is further inherited by another class and so on. This type of inheritance is transitive that’s why the last derived class...

2 minutes read.

C# Tutorial

The C# Tutorial provides basic and advanced knowledge of C# . This will help the beginners as well as professionals in learning just more then enough about C#, A Programming...

3 minutes read.

C# Jagged Arrays

C# provides the concept of jagged array which means array of arrays. The elements of jagged array are also arrays. The element size of jagged array can vary.C# Jagged Arrays...

3 minutes read.

C# Method Overriding

Method overriding is the mechanism where derived class defines the same method as parent class with more functionality in the chilled class. It provides runtime polymorphism in C#. It provides...

1 minute read.

C# Arrays

Like in other programming languages, in C# the array can be defined as a collection of similar type of objects which have contiguous memory allocation. Array index starts from zero(0)....

3 minutes read.

C# Structs

In C#, Structs are like classes but they are used to create light weight objects like color, Rectangle, etc. Structs are value type unlike classes that are reference type. Using...

3 minutes read.

Switch Statements in C#

In C#, the switch case statement checks one variable for various possible values (cases) and executes the case which is true. Switch case statements are mainly used in menu driven...

3 minutes read.

C# First Application

Let's see the first simple program in C# which prints Hello word on the console. class FirstExample { static void Main (string[] args) { System.Console.WriteLine("Hello World "); } } Output Hello World Description of the first Program: class: it’s...

2 minutes read.

Ref and Out in C#

 Ref in c# The ref is keyword that describes that any value that passes through the reference. We can use the ref keyword in 4 ways; In a programming code, in that...

4 minutes read.

C# Object and classes

As we know, C# is an object oriented programming language, it provides oops concepts which are relevant to real world problems. C# Object: An object is a real world entity. It...

6 minutes read.

C# Inheritance

In C#, Inheritance is a mechanism by which one object acquires all the properties of another object automatically. The object which is inheriting the other object is called chilled object...

4 minutes read.

C# While Loop

while loop iterates a part of the code until the given condition fails. This is an entry controlled loop. While loop is recommended to use if the condition depends on...

4 minutes read.

C# Passing array to function

We can pass array to function by using its name only. The formal parameter in function declaration must be of array type. Function accepts arrays to implement any logic on...

2 minutes read.

C# functions with out variable

In C#, the out variable can be used like a reference variable. We don't need to initialize the variable before passing it into a function call as a out-type. Using...

1 minute read.

C# Constructors

In C#, Constructor is the special method with no return type. It is invoked automatically at the time of object creation. Its name must be the same as the class...

2 minutes read.

C# Call by reference

In C#, we can use ref keyword to pass the reference to the original value instead of the copy of the original value. the changes that are made in the...

2 minutes read.

C# Properties

In C#, Properties enables class to provide a public way of setting and getting values or fields of the class. Properties provides Encapsulation in the class if we make all...

2 minutes read.

Dictionary in C#

C #: We can also pronounce C # programming language as "C-Sharp programming language. It is a Microsoft-developed object-oriented programming language that utilizes the.NET Framework. C # is related to other widely...

3 minutes read.