Wednesday 8 May 2013

.NET Training on day 4

C# 5.0: 
        It is a  new language with all the greatest features of all the latest languages such as c++,VB,java etc and also this language consists of the features which are required for the next generation application development

Types of Application that can be developed using C#:
>Console application
>Windows forms application
>Windows Services
>Windows Forms control library
>Class library
>ASP.NET websites
>ASP.NET Web services
>WCF services
>WPF application
>Silver Light application
>Work Flow etc

Console Applications:
                           When ever an application accepts the input from the console and provides the output on the console then such type of application are said to be console application.

Where a console is a device which has a capability to accept the information & to display the result.

NOTE:
          Console application are also called as "Command Line Argument" applications.

* C# is a case sensitive application but it is not a line sensitive language

* Every statement should be terminated using ";"

Structure Of C# console Application:
                 // Comments
          Using NamespaceHierarchy
           ..............................
              namespace NamespaceName

              {

                     class ClassName
                           {
                               [public]static void Main([string []args)
                                       {
                                              // statements (s)
                                                 ..................
                                        }
                             }
                  }



Namespace:
                   It is used to maintain the classes in a hierarchy such that the class definitions can be accessed easily & also namespaces help in resolving class name ambiguity.



Observation:
              System is the root or base namespace for any .NET application developed using any language.

Console:
                It is a class which provides the members for accepting the input and to project the output

Write:   It is a method which is used to write the information on the console

WriteLine: It is a method which is used to write the information on the console by  appending a new line character at the end of the information.

Read: It is used to read Single Char

ReadLine: It is used to read a string.


Developing a C# Console Application Using Visual Studio .NET:

Program:

// My First C# program in .NET
        Using System;
        namespace CSintro
             {
                class FirstProgram
                 {
                      public static void Main()
                        {
                          Console.WriteLine("Welcome Freshers Like Website");
                          Console.WriteLine(".NET is very easy to learn");
                          Console.WriteLine("Thanks for visiting Freshers like");
                          Console.WriteLine("Like us on facebook");
                         }
                   }
              }

To Execute:

<<PREVIOUS                                                                                                             NEXT>>

2 comments:

  1. Hey... You have nice Blog.. Keep follow this excellent work.
    Dot Net Training in Chennai

    ReplyDelete

  2. My cousin recommended this blog and she was totally right keep up the fantastic work!
    Dot Net Training in Chennai

    ReplyDelete