Introduction to C#

In this tutorial you will learn about the basic of C#, what is C# and it will help the beginners as well as professionals in learning C#, a programming language developed by Micorsoft.

What is C#?

C# (Pronounced as see-sharp) is a simple, type-safe, object oriented, general purpose object oriented programming language developed by Microsoft in the year of 2000.

C# is approved by ECMA, ISO as a standard . C# is designed for CLI which stands for common language infrastructure (Executable code and run time environment ).

C# bears a strong resemblance to the C++ and Java programming languages, having borrowed (or improved) features provided by these languages.The origins of both Java and C++ can be traced back to a language called C.

With C#, we can develop web application, dekstop applications, web-services and now even mobile application using Xamarin and C#.

Why to learn C#?

Some important reasons that makes people to learn C# programming is listed here:

  • simple and easy to learn
  • modern and for general purpose
  • structured language
  • object oriented
  • component oriented
  • produces an efficient programs
  • part of .Net framework
  • Type Safe
  • Automatic Garbage Collection
  • Fast speed
  • Scalable
  • and many more

Simple C# program

using System;
namespace SimpleCsharpApplication
{
   public class SimpleCsharp
   {
      public static void Main(string[] args)
      {
         Console.WriteLine("C# Tutorial at qawithexperts.com");
       
      }
   }
}

Output:

C# Tutorial at qawithexperts.com

In the above program,we are simply printing "C# Tutorial at qawithexperts.com" using Console.WriteLine command, to get in-depth knowledge of the above code, keep-reading the next post on tutorial.

Features of C#

Following is the list of few important features of C# −

  • Automatic Garbage Collection
  • Standard Library
  • Boolean Conditions
  • Assembly Versioning
  • Properties and Events
  • Delegates and Events Management
  • Easy-to-use Generics
  • Indexers
  • Conditional Compilation
  • Simple Multithreading
  • Integration with Windows
  • LINQ and Lambda Expressions
  • Interoperability.
  • Compatible with other Language

Share Tweet