Tuesday, 21 January 2014

Introduction of C#

                                                                                                                                      Previous....... 
                                                                                                                                                    Next.......

C# is case sensitive language.
In this Part

1. We will learn the basic structure of a c# program. The program we used in this video is shown below.


// Namespace Declaration
using System;
class NetQube
{
    public static void Main()
    {
        // Write to console
        Console.WriteLine ("Welcome to NetQube Technologies!"); 
    }
}

2. Understand the purpose of using System declaration - The namespace declaration,using System, indicates that you are using the System namespace. If  you omit theusing System, declaration, then you have to use the fully qualified name of the Consoleclass. A namespace is used to organize your code and is collection of classes, interfaces, structs, enums and delegates. We will discuss about namespaces in detail in a later session.
3. Purpose of Main() method - Main method is the entry point into your application.


                                                                                                                                       Previous....... 
                                                                                                                                                    Next.......



No comments:

Post a Comment

C# program Selection Sorting

Selection sort is a straightforward sorting algorithm. This algorithm search for the smallest number in the elements array and then swap i...