Wednesday, September 3, 2014

A Word About C# dotnet

C# is a programming language designed for building a wide range of enterprise applications that run on the .NET Framework. Visual C# .NET enables developers to build solutions for the broadest range of clients, including Web applications, Microsoft Windows Forms based applications, and smart devices. C# developers can leverage their existing C++ and Java skills and knowledge to be successful in the Microsoft .NET development environment.C# is the language and dotnet is the library that the language uses to manipulate things on the computer. Specific libraries contains the functionalities to complete the particular task.

Installation


Download and install Visual Studio Express 2013 for Windows Desktop from the link








Creating new Project


You have lots of options. But everything we are going to do here is on C# dotnet. We want to create Windows application. There are diff templates. All these templates are different project type. They are stored with foundations already built for you. You don’t have to start from the scratch everytime you create an application. Easiest type of application is the Console Application.


Console Application

Console Application is the text based application that runs from the command concept.




Example 1



  • ·        On the right hand side you will see Solution Explorer which contains all the files  of your project
  • ·     Program.cs in the Solution Explorer is the Source code file. It contains all the  source code in the program.
  • ·        AssemblyInfo.cs contains information about your program.
  • ·        The class ‘Program’ contains the function called ‘Main’.
  • ·        The WriteLine is one among the functions available in class Console.
  • ·        // says the compiler to ignore this, its only a comment. 
   
    Save your program


    Run your program


   
   Output






















No comments:

Post a Comment