C# Tutorials
  • Share this blog:


C# Tutorials Overview

Welcome to C# Tutorials. The objective of these tutorials is to gain an in-depth understanding of the C# Programming Language.


Introduction to .Net Framework

.NET Framework Supports collections of languages like VC#.net, VC++.net, VB.net……… .NET Framework is a common architecture for all .net programming languages. .NET - Network-enabled Technology. Visual C#. net………..visual C# with new features called as a net.

Main objectives of  .NET Framework

Platform independent. Language independent. Supports language interoperability. Supports pure OOP's concepts

Oops -   Object-Oriented Programming Supports for network programming with .net Remoting Supports to develop background processes with the help of windows services. Developing or support to develop RICH GUI applications with WPF programming LINQ Programming  


DLL (Dynamic-link library) (Executable) files are  Executable in any OS with the help of (CLR/Common language run time ), hence .net is called “platform-independent” Screenshot_3  

CLR software is platform dependent. It is a separate version of CLR is introduced for every OS. .net is not purely platform-independent. As of new CLR, Software is not yet developed for dos and windows operating systems.  





net application logic can be developed in any .net framework compatible languages, hence .net is called as    “LANGUAGE INDEPENDENT”. As of now. net framework is supporting 11 languages + 1 specification. Visual C # . net

Visual Basic .net

Visual J #.net

Visual C++ .net

VB Script.net

J Script .net

PHP .net

Python .net



Small Talk .Net

.net support one specification called “ASP.net” Specification provides a set of rules which need to be followed while integrating with a code-behind language.

What is a DLL file?

As per VB 6.0 or VC ++6.0 Windows OS


As per VB 6.0 or VC, ++6.0 DLL’s are called as COH Components. COM is used to develop reusable programs. Every COM Component must be registered for a class ID. Class ID represents a unique identifier, which is a part of the Registry. As Registry is under control of window OS, hence Com is “Platform-independent”.

As per.net As per .net, DLL’S Contain   Platform independent code in the format of byte code. net DLL is also called as Managed code, Assembly or MSIL (Microsoft intermediate language ) The code written in .net is called as “managed code” If COM is used in .net then COM is called as   “unmanaged code” .net framework is introduced as a development platform

C  language

Main ()


Int I, * p;

P = &I;



As per memory management is under control of CLR  with the help of a Garbage collector (GC), hence the .net framework is called as “Development platform”. .net framework is derived into the platform   Screenshot_9  

Framework class library A collection of classes is called as “Namespace” A collection of Namespace is called as  “Assembly” A collection of Assembly is called as “FCL” (Framework class library) FCL contains –6000 predefined class 6500 Methods 1,00,000 properties  

Assembly Architecture

The internal organization of a DLL file is called “Assembly Architecture”. Assembly is derived into three layers Main fest Information holds the summary of the project. Type Info holds the data type information of the languages. MSIL holds the competed code in the format of the BYTE Code.   How CLR EXECUTES an ASSEMBLY?


CLR will be loaded into the memory. CLR loads the Main fest to understand the summary CLR loads type Info to understand the behavior of the language. CLR generates CTS (common type system) of CLS (Common language specifications)  


Software Requirements Windows OS (XP, 2000p, 2005, 2003s, vista) Visual studio .net 2008 professional Edition IIS Server Oracle / SQL Server MS – office

Visual C # .net 3.5 2008 

A collection of programs is called as a  “Software” Software is derived into two types

Packages  Languages 11A software which is developed for a specific purpose is called as 

package”. Ex:-   MS – office, oracle, SQL server, operating system.   11A software that is developed for a general-purpose is called a

language”. Ex:- C, C ++, VC ++, Java, C #. Net, etc……… 11       c- family Languages are derived into three types High-level language Assembly language Machine language A = 10       more 10 to Ax 11 register 11 flip flop 11 gates High-level language are easier to learn as these are syntactically similar to English Assembly language are required while developing device driver programming Which provides communication between hardware and software Device drivers properties the communication than between the hardware and software

Visual C#.net basics

VC#.net language is architected by ANDREN HEZLSIBERG. VC#.net belongs to the 'C' family. All the rules of ‘C’ language are applicable to VC#.net also. C#.net is a high-level compiler-based programming language. .net is case sensitive. C#.net is a highly type-safe language. In C#, always Execution starts from main ().  

Writing First Example in C # .NET

Open.net software (Start 11programs micro soft visual studio 2008 11  micro soft visual studio 2008) (or) (Start 11 run11Devenv) File menu11new 11project   Screenshot_12  

Observation 11For every project a new folder will be created. by default, this folder name will be the same as the project name.

Default folder structure D:/C194 11FIRST11BIN11DEBUGS11 DLL, EXE files will be sorted here. 11Default folder structure (view11menu11solution explorer) Screenshot_13

Open program. cs file and write the following inside of main () Namespace FIRST

{ Class program { Static void Main (Strings [] args) { Console . Write Line (“Welcome”); Console . Write Line (“Date Time. Now”); Console . Read line ();   Execute the project  (F5) 11Start Debugging  


When the above project is executed then the first.exe file will be created under the D:/c194/first/bin/debug folder. If you want to compile an application, print a message. Console. Write Line (“Welcome”); Syntax is required. Screenshot_14

Date Time. Now the returns system date and time. Console. Read line () reads a string from the keyboard.

You liked the article?

Like : 0

Vote for difficulty

Current difficulty (Avg): Medium

Recommended Courses


About Author
Author Bio

TekSlate is the best online training provider in delivering world-class IT skills to individuals and corporates from all parts of the globe. We are proven experts in accumulating every need of an IT skills upgrade aspirant and have delivered excellent services. We aim to bring you all the essentials to learn and master new technologies in the market with our articles, blogs, and videos. Build your career success with us, enhancing most in-demand skills in the market.

Stay Updated

Get stories of change makers and innovators from the startup ecosystem in your inbox