Friday 11 October 2013

C# Language


C# (pronounced see sharp) is a multi-paradigm programming language encompassing strong typing, imperative, declarative, functional, procedural, generic, object-oriented (class-based), and component-oriented programming disciplines. It was developed by Microsoft within its .NET initiative and later approved as a standard by Ecma and ISO. C# is one of the programming languages designed for the Common Language Infrastructure.
The name "C sharp" was inspired by 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.

Versions of C#:-

  • C# 2.0
  • C# 3.0
  • C# 4.0
  • C# 5.0 


Syntax:

  1. Semicolons are used to denote the end of a statement.
  2. Curly braces are used to group statements. Statements are commonly grouped into methods (functions), methods into classes, and classes into namespaces.
  3. Variables are assigned using an equals sign, but compared using two consecutive equals signs.
  4. Square brackets are used with arrays, both to declare them and to get a value at a given index in one of them.

No comments:

Post a Comment