Monday, 12 October 2015

C# Overview For Beginners


What is C#?C# (C Sharp) is a modern, object oriented programming language developed by Microsoft to create Enterprise level applications. It is built on top of .NET Framework. It is also called as Microsoft Visual C#. In the Visual Studio .NET suite, C# is called as Visual C#. C# has evolved from Microsoft C and C++.

What is a program?A program is a set of instructions given to a computer to perform a specific task. These programs are written using a programming language. C# is one such programming language.


Why you should learn C#? Where is C# used?C# is a simple language. If you learn C# then you can develop powerful applications for Mobile phones, Websites, Tablet computers, Embedded systems (including Robotics) and Desktop computers. Don't worry if you are new to the programming world or a beginner in C#. This tutorial will teach you the basics of C# programming with code examples. The tutorials have been developed in such a way that anyone can understand and learn from it.


Important features of C#Following are the important features of C#:


Type safety
Data types
Object Oriented Programming Structure (OOPS)
Auto Garbage Collection
Threading
Operators
Arrays and Collections
LINQ and Lambda expressions
Indexers.
Delegates.
Properties and events.
Exception handling.
Generics.
Versioning.

If you do not understand the above terms then don't worry about it. As you move forward in this tutorial you will gradually have an understanding of the above.


Write a program that display text on console in C# : Welcome to C# ?
 We will learn the basic structure of a c# program


using System;
class Program
{
  public static void Main(string[] args)
{
Console.WriteLine("Welcome to C#");
}

}
Output:
Welcome to C#


To Whom this Tutorial is for?
This tutorial is for people who want learn how to program in C#. So this is mainly a C# tutorials for beginners. However, people with all type of expertise can gain from these tutorials. We have provided enough examples where appropriate.


Understand the purpose of using System declaration - The namespace declaration,using System, indicates that you are using the System namespace. If you do not the using System, declaration, then you have to use the fully qualified name of the Console class. 

What is Namespace in C#?
A namespace is used to organize your code and is collection of classes, interfaces, structs, enums and delegates..

Purpose of Main() method - Main method is the entry point into your application.

No comments:

Post a Comment