Empty input
Last updated 2017-08-24

C#

Learn C# for web development

C# (pronounced "C sharp") is a programming language that is designed for building a variety of applications that run on the .NET Framework.

C# is simple, powerful, type-safe, and object-oriented. The many innovations in C# enable rapid application development while retaining the expressiveness and elegance of C-style languages.

If you don't already have C#, you can acquire a version of Visual Studio that includes C# for free from the Visual Studio site.

MAIN FEATURES OF C#

1. SIMPLE

  1. Pointers are missing in C#.
  2. Unsafe operations such as direct memory manipulation are not allowed.
  3. In C# there is  no usage of "::" or "->" operators.
  4. Since it's on .NET, it inherits the features of automatic memory management and garbage collection.
  5. Varying ranges of the primitive types like Integer,Floats etc.
  6. Integer values  of 0 and 1 are no longer accepted as boolean values.Boolean values are pure true or false values in C# so no more errors of "="operator and "=="operator.
  7. "==" is used for comparison operation and "=" is used for assignment operation.

2. MODERN

  1. C# has been based according to the current trend and is very powerful and simple for building interoperable, scable, robust applications.
  2. C# includes built in support to turn any component into a web service that can be invoked over the internet from any application running on any platform.

3. OBJECT ORIENTED

  1. C# supports Data Encapsulation, inheritance,polymorphism, interfaces.
  2. (int,float, double) are not objects in java but C# has introduces structures(structs) which enable the primitive types to become objects.

    int i=1;
    string a=i Tostring(); //conversion (or) Boxing

4. TYPE SAFE

  1. In C# we cannot perform unsafe casts like convert double to a boolean.
  2. Value types (priitive types) are initialized to zeros and reference types (objects and classes) are initialized to null by the compiler automatically.
  3. arrays are zero base indexed and are bound checked.
  4. Overflow of types can be checked.

5. INTEROPERABILITY

  1. C# includes native support for the COM and windows based applications.
  2. Allowing restriced use of native pointers.
  3. Users no longer have to explicityly implement the unknown and other COM interfacers, those features are built in.
  4. C# allows the users to use pointers as unsafe code blocks to manipulate your old code.
  5. Components from VB NET and other managed code languages and directlyt be used in C#.

6. SCALABLE AND UPDATEABLE

  1. .NET has introduced assemblies which are self describing by means of their manifest. manifest establishes the assembly identity, version, culture and digital signature etc. Assemblies need not to be register anywhere.
  2. To scale our application we delete the old files and updating them with new ones. No registering of dynamic linking library.
  3. Updating software components is an error prone task. Revisions made to the code. can effect the existing program C# support versioning in the language. Native support for interfaces and method overriding enable complex frame works to be developed and evolved over time.

Learn more on