Total Pageviews

31 March 2012

What is c# ?

What is c# ?

A multi-paradigm programming language encompassing strong typing, imperative, declarative, functional, generic, object-oriented language.

A C# program consists of the following parts −
  • Namespace declaration
  • A class
  • Class methods
  • Class attributes
  • A Main method
  • Statements and Expressions
  • Comments
Let us look at a simple code that prints the words "AMRIT" –

using System;

namespace HelloWorldApplication {
   class HelloWorld {
      static void Main(string[] args) {
         /* my first program in C# */
         Console.WriteLine("AMRIT");
         Console.ReadKey();
      }
   }
}


Contact Form

Name

Email *

Message *