What is C# (programming language)?
Before moving any further, let's get familiarized with the language first.
Anders Hejlsberg in 1999 led a team to build a new language called Cool (C-like Object Oriented Language). Later the name was changed to C# for trademark reasons.
Reason Behind the name 'C#'
The name C# or C sharp was inspired from a musical note. The symbol # in C# represents four '+' signs and is named similar to C++. '++' in programming indicates an increment by 1.
C++ is an increment in C and similarly C# is an increment in C++.
Different versions of C#
|C# 1.0||January 2002|
|C# 1.1 and 1.2||April 2003|
|C# 2.0||November 2005|
|C# 3.0||November 2007|
|C# 4.0||April 2010|
|C# 5.0||August 2012|
|C# 6.0||July 2015|
|C# 7.0||March 2017|
Features of C# Programming Language
- Simple to write and understand
C# is syntactically very similar to Java. It also borrows certain concepts from C++. The code written in C# is much simpler and easier to understand.
For a person with experience in Java and/or C++, C# won't be a difficult language to learn.
- Object oriented
Like Java and C++, C# is an object oriented programming language. It supports the features of object oriented paradigm such as objects, classes, inheritance, polymorphism, etc.
Object oriented approach is not only easier and simpler but the preferred way of writing programs.
- Type safe
One of the peculiar feature of C# is type safety. A type safe language ensures that each variable of particular type does not hold values of other type. For instance, an integer variable will not hold character values.
The advantage of type safe language is that possible errors are being checked during compile time rather than in run time.
C# is a modern language which is built based on the current trend. C# is a powerful language which allows developers to build robust application quickly and easily.
It has many advanced features which we will be discussing as we move along with this tutorial series.