Monday, January 14, 2019

Learn C# from BASIC to ADVANCE

“There are two ways to write error-free programs; only the third one works.” - Alan J. Perlis

If you are new in the development environment or want to learn your first programming language then C# is the best choice for you. And if you are familiar with C and C++ then this is gonna be very easy for you to learn C#. C# is one of the most popular and readily updated programming languages because MICROSOFT supports this greatly. One more advantage of using this language is that it has a really huge community with active users that can help you if you stuck in between.

.NET is a Framework developed by Microsoft and runs on Microsoft Windows. It has a large class library FCL (Framework Class Library) and offers language interoperability across different programming languages, which means a language can use code written in other languages. NET Framework run in a software environment and independent from the hardware environment and this software environment is called CLR (Common Language Runtime). .NET Framework programming code is called “Managed Code”.

Components of.Net Framework −

  • CLR (Common Language Runtime)
  • FCL (Framework Class Library)
  • Windows Forms
  • ASP.Net and ASP.Net AJAX
  • ADO.Net
  • WF (Windows Workflow Foundation)
  • Windows Presentation Foundation
  • WCF (Windows Communication Foundation)
  • LINQ

If you are looking for the dot net training in delhi then you can come to zenitech, the Best Embedded & Software Training Institute Delhi.

C# and .NET Framework

.NET is a framework uses the programming languages to develop the program, these programming languages are C#, VB etc.

Let’s Start C#

C# is a general-purpose, OOP’s (Object Oriented Programming) language developed by Microsoft. Here we will try to understand the basics of C# programming and then walk through some advanced concepts of C# programming language.

Basic Features of C#:-

  • It is a General Purpose Programming Language.
  • It is Object and Component-Oriented.
  • Easy to learn and structured language.
  • Can be compiled on different platforms.
  • IDE (Integrated Development Environment) for C#.

Microsoft offers development tools for C# programming as follows−

  • VS (Visual Studio 2010)
  • VCE (Visual C# 2010 Express)
  • Visual Web Developer
The last two are free to use and you can download them from the Microsoft official website. You can write a C# program using a simple text editor too like notepad. VCE and Visual Web Developer are the trimmed version of VS.

The structure of a C# Program

A C# program has the following parts:-
  • Namespace declaration
  • A class
  • Class methods
  • Class attributes
  • The Main method
  • Statements & Expressions
  • Comments when necessary
Example:-














NOTE:

  • C# is case sensitive language.
  • All your statements and expression must end with a semicolon (;).
  • The program execution starts from the Main method.
  • Filename could be saved differently from the class name.
C# is a programming language that the .NET Framework can use to develop a web application, windows application or web services.

For more information, you can contact us @ 9650657070 or WhatsApp on 9205839032. We (ZENITECH) offer a wide variety of software, hardware, embedded system courses or c++ training in delhi

1 comment: