ankitweblogic logo
W e b t u t o r i a l s

Console C#.Net Tutorial

Visual Studio.NET IDE

Define C#.NET

C# Comment

C# Variables

C# Data Types

C# Escape Sequence

C# Operators

Exercise-1

Format String

Operator Precedence

C# Keywords

Constant Variable

Type Conversion

Flow Control

Exercise Loops & Nested Loop

C# Arrays

C# Strings

User-Define Methods

Variable Scope

C# Enumerations

C# Structure

C# Exception Handling

Object Oriented Programming

C# Classes

Constructor & Destructor

C# Inheritance

C# Polymorphism

C# Operator Overloading

C# Method Overriding

C# Interface

Abstract Classes & Methods

Sealed Classes, Methods

C# Properties

C# Indexer

C# Delegates

C# Generics

C# Collection

System.Object

Console C#.Net Tutorial

The name 'C sharp' was inspired by the musical notation where a sharp indicates that the written note should be made a semitone higher in pitch. This is similar to the language name of C++, where '++' indicates that a variable should be incremented by 1 after being evaluated. The sharp symbol also resembles a group of four '+' symbols, further implying that the language is an increment of C++.

C#.Net Versions
Version Date .NET Framework Visual Studio
C# 1.0 January 2002 .NET Framework 1.0 Visual Studio .NET 2002
C# 1.1
C# 1.2
April 2003 .NET Framework 1.1 Visual Studio .NET 2003
C# 2.0 November 2005 .NET Framework 2.0 Visual Studio .NET 2005
C# 3.0 November 2007 .NET Framework 2.0
.NET Framework 3.0
.NET Framework 3.5
Visual Studio .NET 2008
Visual Studio .NET 2010
C# 4.0 April 2010 .NET Framework 4 Visual Studio .NET 2010
C# 5.0 August 2012 .NET Framework 4.5 Visual Studio .NET 2012
Visual Studio .NET 2013
C# 6.0 July 2015 .NET Framework 4.6 Visual Studio .NET 2015
C# 7.0 March 2017 .NET Framework 4.6.2 Visual Studio .NET 2017
C# 7.1 August 2017 .NET Framework 4.7 Visual Studio .NET 2017
C# 7.2 November 2017 .NET Framework 4.7.1 Visual Studio .NET 2017
C# 7.3 May 2018 .NET Framework 4.7.2 Visual Studio .NET 2017

New features

C# 2.0

  • Generics
  • Partial types
  • Iterators
  • Method group conversions (delegates)
  • Static classes

C# 3.0

  • Implicitly typed local variables
  • Object and collection initializers
  • Partial methods

C# 4.0

  • Dynamic binding
  • Named and optional arguments

C# 5.0

  • Asynchronous methods

C# 6.0

  • Exception filters
  • Await in catch/finally blocks
  • Auto property initializers
  • Dictionary initializer

C# 7.0

  • Inline out variable declaration
  • Pattern matching
  • Ref returns and locals

C# 7.1

  • Default literal expressions

C# 7.2

  • private protected access modifier

C# 7.3

  • Reassigning ref local variables
  • Using initializers on stackalloc arrays
  • Using additional generic constraints