C Sharp (C#) Programming Language

C Sharp (C#) Programming Language

C Sharp (C#) Programming LanguageC Sharp (C#) Programming Language – C# or C Sharp is a programming language known as hybrid of C and C++ language. It is a multi-paradigm programming language supports the concept of encapsulation, inheritance and polymorphism. It simplifies some of the complexities in C++ and provides features such as nullable value types, enumerations, delegates and direct memory access, which are not found in Java. C# was created as an object-oriented programming (OOP) language. The syntax of C# is mostly expressive making it simple and easy to learn. It was designed and developed by Microsoft. It comes under the family of C language. It was created by a team headed by Anders Hejlsberg. The syntax used in C# is similar to C-style languages like C, C++ and Java. C# language contains advance features respect to C and C++ like Boolean data variables (bool), Use of Garbage collector which manages inaccessible object memory.

Which is the most recent version of C#?

The most recent version of C Sharp is C# 7.1 which was released in 2017 along with Visual Studio 2017. The C# 5.0 version is in progress.

What are the known versions of C#?

C Sharp consists of many versions where each version contains unique properties. Some of them are C#2.0, C# 3.0, C# 4.0, C# 5.0, C# 6.0, C# 7.0 and C# 7.1.

What are the important features of C#?

  1. Polymorphism – It contains the features of polymorphism, where implementation of multiple interfaces takes place.
  2. Portability – The C# compiler could generate machine code which is similar to C++/ FORTRAN generate machine code. Which made it portable from one to another.
  3. Meta Programming is done via C# attributes exhibiting as part of the language.
  4. Method and Functions – It consists of advanced method and function than C++ language.
  5. Namespace – C# namespace provides the same level of code isolation, similar to Java package or C++ namespace containing similar rules and features.
  6. Memory access – C# memory access need appropriate permission to run. The object access is done through safe object reference.

Leave a Reply