SlideShare a Scribd company logo
Introduction to Microsoft .Net Framework
Introduction to .Net Platform
The Microsoft’s .Net platform encompasses a virtual
machine that abstracts away much of the windows API
from development.
It includes a class library with more functionality than
any other created to date, and a development
environment that spans multiple languages. I
t provides an architecture that makes multiple
language integration simple and straightforward.
This is the first development platform designed from
the ground up with Internet in mind.
.Net is designed and intended for highly distributed
software, making Internet functionality and
interoperability easier and more transparent to include
in systems than ever before.
Microsoft has taken many of the best ideas from the
industry, combined with some ideas of their own, and
brought them altogether into one coherent package.
 Features of .Net Platform
 The .NET Framework is an integral Windows
component that supports building and running the
next generation of applications and XML Web services.
The .NET Framework is designed to fulfill the following
objectives:
 To provide a consistent object-oriented programming
environment whether object code is stored and
executed locally, executed locally but Internet-
distributed, or executed remotely.
 To provide a code-execution environment that
minimizes software deployment and versioning
conflicts.
 To provide a code-execution environment that
promotes safe execution of code, including code
created by an unknown or semi-trusted third party.
 To provide a code-execution environment that
eliminates the performance problems of scripted or
interpreted environments.
 To make the developer experience consistency across
widely varying types of applications, such as
Windows-based applications and Web-based
applications.
 .NET Framework Class Library
The .NET Framework class library is a collection of
reusable types that tightly integrate with the common
language runtime. The class library is object
oriented, providing types from which your own
managed code can derive functionality. This not only
makes the .NET Framework types easy to use, but
also reduces the time associated with learning new
features of the .NET Framework. In addition, third-
party components can integrate seamlessly with
classes in the .NET Framework.
 As you would expect from an object-oriented class
library, the .NET Framework types enable you to
accomplish a range of common programming
tasks, including tasks such as string
management, data collection, database
connectivity, and file access. In addition to these
common tasks, the class library includes types that
support a variety of specialized development
scenarios. For example, you can use the .NET
Framework to develop the following types of
applications and services:
 Console applications.
 Windows GUI applications (Windows Forms).
 Windows Presentation Foundation (WPF)
applications.
 ASP.NET applications.
 Web services.
 Windows services.
 Service-oriented applications using Windows
Communication Foundation (WCF).
 Workflow-enabled applications using
Windows Workflow Foundation (WF).
 For example, the Windows Forms classes are
a comprehensive set of reusable types that
vastly simplify Windows GUI development.
 Garbage Collection: The .NET Framework's garbage
collector manages the allocation and release of
memory for your application. Each time you use the
new operator to create an object, the runtime
allocates memory for the object from the managed
heap
 Stack Walk: This concept is helpful to anyone
interested in building a profiler to examine managed
applications
 Class Loader: Normally, the Java Virtual Machine
loads classes from the local file system in a platform-
dependent manner. For example, on UNIX
systems, the Virtual Machine loads classes from the
directory defined by the CLASSPATH environment
variable.
Assemblies Overview
 Assemblies are a fundamental part of
programming with the .NET Framework.
An assembly performs the following
functions:
It contains code that the common
language runtime executes. Microsoft
intermediate language (MSIL) code in a
portable executable (PE) file will not be
executed if it does not have an
associated assembly manifest. Note that
each assembly can have only one entry
point (that is, DllMain, WinMain, or
Main).
 It forms a security boundary. An
assembly is the unit at which
permissions are requested and granted.
 It forms a type boundary. Every type's
identity includes the name of the
assembly in which it resides. A type
called MyType loaded in the scope of one
assembly is not the same as a type
called MyType loaded in the scope of
another assembly.
 Benefits of Assemblies
 Assemblies are designed to simplify application
deployment and to solve versioning problems that can
occur with component-based applications.
 Versioning Problems
 Currently two versioning problems occur with Win32
applications:
 1. Versioning rules cannot be expressed between
pieces of an application and enforced by the operating
system.
 2. There is no way to maintain consistency between
sets of components that are built together and the set
that is present at run time.
 Introducing C# Programming
 The C# language (pronounced as “C Sharp” or “see
Sharp”) is an Object Oriented Programming Language
developed by Microsoft to become a key part of their
.Net software development platform.
 The .NET Framework defines a "Common Language
Specification" (CLS), a sort of lingua franca that
ensures seamless interoperability between CLS-
compliant languages and class libraries. For C#
developers, this means that even though C# is a new
language, it has complete access to the same rich
class libraries that are used by seasoned tools such as
Visual Basic .NET and Visual C++ .NET. C# itself does
not include a class library.
 The Cornerstone components of .Net Platform:
 There are four major cornerstone components of .Net
platform as follows:
 1. .Net Building Block services such as Passport
 2. .Net Compact Framework that runs on devices such
as mobile phones
 3. .Net through XML integration
 4. .Net infrastructure such as the .Net framework CLR
and .Net framework class libraries and application
developments such as Microsoft Visual Studio.Net
 Sample Program: This is just a basic program that
illustrates how a C# program looks like.
public class Class1 {
public static void Main() {
System.Console.WriteLine(“ Welcome to C#”);
}
}
Compiling and Executing
 The minimum requirements for getting started with C#
programming are:
 1. A text editor (like Windows Notepad)
 2. The Microsoft .NET Framework
 The text editor allows you to type in the C# code that will be
compiled.
 The syntax for compiling the sample C# program is:
csc.exe <filename>.cs
 The name of our C# program is hello.cs.
 The syntax for compilation of the above program file is:
csc.exe hello.cs
Defining a Class:
C# is an object-oriented programming language and uses
classes and structs to implement types such as Windows
Forms, user interface controls, and data structures.
A typical C# application consists of classes defined by the
programmer, combined with classes from the .NET
Framework.
Customer obj1 = new Customer();
 Classes enable you to develop applications using object-
oriented programming (OOP) techniques. Classes are
templates that define objects.
 Declaring Classes:
 Classes are defined by using the class keyword, as
shown in the following example:
 Public class Custormer{
 //Fields,properties,methods and events …
 }
 Creating Objects
 A class defines a type of object, but it is not an object
itself. An object is a concrete entity based on a class,
and is sometimes referred to as an instance of a
class.
 Introducing Data Types:
 A Type is how a programming language
classifies different values and expressions.
Since the computer stores all the data
internally in the form of zeros and
ones, the data needs to have a context or
meaning. In order to preserve this
meaning, Types are used in a programming
language.
 Since C# is a strongly typed language; every
variable and object used as part of the
programs must have a declared type.
 In any programming language, it's critical
that the compiler, the part of the Visual
Studio framework that interprets the code
you write into a language the computer can
understand, fully understands the type of
data you're manipulating in code. For
example, if you ask the compiler to add the
following values, it would get confused:
 Overview of C# Data Types :
 A Data Type can be described as being either:
 A built-in numeric type, such as an int or char, or
 A user-defined type, such as a class or interface.
 An anonymous type, which consists of a set of public
properties encapsulated in a nameless reference type.
 Types can also be defined as being either:
 Value Types (C# Reference), which store values. These
include the primitive numeric types, enums and structs,
and also nullable versions of these types.
 Reference Types (C# Reference), which store
references to the actual data. These include classes,
interfaces, arrays and delegates.

More Related Content

What's hot (19)

PPTX
.Net slid
pacatarpit
 
PPT
Module 1: Introduction to .NET Framework 3.5 (Slides)
Mohamed Saleh
 
PPTX
Introduction to vb.net
suraj pandey
 
PPTX
Net Fundamentals
Ali Taki
 
PPTX
.Net framework
Arun Pal
 
PDF
Lesson 1 Understanding Dot Net Framework
nbaveja
 
DOC
.Net framework interview questions
Mir Majid
 
PPTX
C# .NET: Language Features and Creating .NET Projects, Namespaces Classes and...
yazad dumasia
 
PDF
BCA IPU VB.NET UNIT-I
Vaibhavj1234
 
PPT
Visual Studio.NET
salonityagi
 
PPTX
Introduction to vb.net
Jaya Kumari
 
PPTX
6.origins genesis of .net technology
Pramod Rathore
 
PPTX
Vb6 vs vb.net....(visual basic) presentation
Iftikhar Ahmad
 
PDF
Dot net
public
 
PPT
Introduction to .net
Karthika Parthasarathy
 
DOCX
The seven pillars of aspnet
Nethaji Naidu
 
PPT
.Net framework
Om Vikram Thapa
 
PDF
The .NET Platform - A Brief Overview
Carlos Lopes
 
PPT
DotNet Introduction
Wei Sun
 
.Net slid
pacatarpit
 
Module 1: Introduction to .NET Framework 3.5 (Slides)
Mohamed Saleh
 
Introduction to vb.net
suraj pandey
 
Net Fundamentals
Ali Taki
 
.Net framework
Arun Pal
 
Lesson 1 Understanding Dot Net Framework
nbaveja
 
.Net framework interview questions
Mir Majid
 
C# .NET: Language Features and Creating .NET Projects, Namespaces Classes and...
yazad dumasia
 
BCA IPU VB.NET UNIT-I
Vaibhavj1234
 
Visual Studio.NET
salonityagi
 
Introduction to vb.net
Jaya Kumari
 
6.origins genesis of .net technology
Pramod Rathore
 
Vb6 vs vb.net....(visual basic) presentation
Iftikhar Ahmad
 
Dot net
public
 
Introduction to .net
Karthika Parthasarathy
 
The seven pillars of aspnet
Nethaji Naidu
 
.Net framework
Om Vikram Thapa
 
The .NET Platform - A Brief Overview
Carlos Lopes
 
DotNet Introduction
Wei Sun
 

Similar to .Net framework (20)

PDF
Unit I- Introduction to .NET Framework.pdf
Ujwala Junghare
 
PPT
dotNET frameworks
nawal saad
 
DOCX
The Seven Pillars Of Asp.Net
Anand Kumar Rajana
 
PPTX
c#.pptx
GokulPadmakumar3
 
PDF
Chapter1
guest9ccd0e
 
PDF
Dot net interview_questions
9292929292
 
PPTX
1-.NET Introduction.pptx
RKAggarwal6
 
PPS
dot NET Framework
Roy Antony Arnold G
 
PPTX
Session i
DrUjwala1
 
PPTX
Dotnet Basics Presentation
Sudhakar Sharma
 
PDF
Unit -II Introduction to visual programming.pdf
Ujwala Junghare
 
PPS
Asp.net new
Ganesh Jaya
 
DOCX
Automatic answer checker
Yesu Raj
 
PPTX
Session2 (3)
DrUjwala1
 
PPT
Microsoft dot net framework
Instantenigma
 
PPT
Part i
Mohamed Ebrahim
 
DOCX
Online lg prodect
Yesu Raj
 
PDF
Dotnet interview qa
abcxyzqaz
 
PDF
C# chap 2
Shehrevar Davierwala
 
Unit I- Introduction to .NET Framework.pdf
Ujwala Junghare
 
dotNET frameworks
nawal saad
 
The Seven Pillars Of Asp.Net
Anand Kumar Rajana
 
Chapter1
guest9ccd0e
 
Dot net interview_questions
9292929292
 
1-.NET Introduction.pptx
RKAggarwal6
 
dot NET Framework
Roy Antony Arnold G
 
Session i
DrUjwala1
 
Dotnet Basics Presentation
Sudhakar Sharma
 
Unit -II Introduction to visual programming.pdf
Ujwala Junghare
 
Asp.net new
Ganesh Jaya
 
Automatic answer checker
Yesu Raj
 
Session2 (3)
DrUjwala1
 
Microsoft dot net framework
Instantenigma
 
Online lg prodect
Yesu Raj
 
Dotnet interview qa
abcxyzqaz
 
Ad

More from Raghu nath (20)

PPTX
Mongo db
Raghu nath
 
PDF
Ftp (file transfer protocol)
Raghu nath
 
PDF
MS WORD 2013
Raghu nath
 
PDF
Msword
Raghu nath
 
PDF
Ms word
Raghu nath
 
PDF
Javascript part1
Raghu nath
 
PDF
Regular expressions
Raghu nath
 
PDF
Selection sort
Raghu nath
 
PPTX
Binary search
Raghu nath
 
PPTX
JSON(JavaScript Object Notation)
Raghu nath
 
PDF
Stemming algorithms
Raghu nath
 
PPTX
Step by step guide to install dhcp role
Raghu nath
 
PPTX
Network essentials chapter 4
Raghu nath
 
PPTX
Network essentials chapter 3
Raghu nath
 
PPTX
Network essentials chapter 2
Raghu nath
 
PPTX
Network essentials - chapter 1
Raghu nath
 
PPTX
Python chapter 2
Raghu nath
 
PPTX
python chapter 1
Raghu nath
 
PPTX
Linux Shell Scripting
Raghu nath
 
PPTX
Perl
Raghu nath
 
Mongo db
Raghu nath
 
Ftp (file transfer protocol)
Raghu nath
 
MS WORD 2013
Raghu nath
 
Msword
Raghu nath
 
Ms word
Raghu nath
 
Javascript part1
Raghu nath
 
Regular expressions
Raghu nath
 
Selection sort
Raghu nath
 
Binary search
Raghu nath
 
JSON(JavaScript Object Notation)
Raghu nath
 
Stemming algorithms
Raghu nath
 
Step by step guide to install dhcp role
Raghu nath
 
Network essentials chapter 4
Raghu nath
 
Network essentials chapter 3
Raghu nath
 
Network essentials chapter 2
Raghu nath
 
Network essentials - chapter 1
Raghu nath
 
Python chapter 2
Raghu nath
 
python chapter 1
Raghu nath
 
Linux Shell Scripting
Raghu nath
 
Ad

Recently uploaded (20)

PPTX
AVL ( audio, visuals or led ), technology.
Rajeshwri Panchal
 
PDF
NewMind AI Weekly Chronicles – July’25, Week III
NewMind AI
 
PDF
OFFOFFBOX™ – A New Era for African Film | Startup Presentation
ambaicciwalkerbrian
 
PDF
Researching The Best Chat SDK Providers in 2025
Ray Fields
 
PDF
Make GenAI investments go further with the Dell AI Factory
Principled Technologies
 
PDF
MASTERDECK GRAPHSUMMIT SYDNEY (Public).pdf
Neo4j
 
PDF
Generative AI vs Predictive AI-The Ultimate Comparison Guide
Lily Clark
 
PDF
Build with AI and GDG Cloud Bydgoszcz- ADK .pdf
jaroslawgajewski1
 
PDF
RAT Builders - How to Catch Them All [DeepSec 2024]
malmoeb
 
PDF
GDG Cloud Munich - Intro - Luiz Carneiro - #BuildWithAI - July - Abdel.pdf
Luiz Carneiro
 
PPTX
Farrell_Programming Logic and Design slides_10e_ch02_PowerPoint.pptx
bashnahara11
 
PPTX
What-is-the-World-Wide-Web -- Introduction
tonifi9488
 
PDF
Research-Fundamentals-and-Topic-Development.pdf
ayesha butalia
 
PDF
Brief History of Internet - Early Days of Internet
sutharharshit158
 
PDF
Presentation about Hardware and Software in Computer
snehamodhawadiya
 
PPTX
Agile Chennai 18-19 July 2025 Ideathon | AI Powered Microfinance Literacy Gui...
AgileNetwork
 
PPTX
Introduction to Flutter by Ayush Desai.pptx
ayushdesai204
 
PDF
Peak of Data & AI Encore - Real-Time Insights & Scalable Editing with ArcGIS
Safe Software
 
PDF
The Future of Mobile Is Context-Aware—Are You Ready?
iProgrammer Solutions Private Limited
 
PPTX
Agile Chennai 18-19 July 2025 | Emerging patterns in Agentic AI by Bharani Su...
AgileNetwork
 
AVL ( audio, visuals or led ), technology.
Rajeshwri Panchal
 
NewMind AI Weekly Chronicles – July’25, Week III
NewMind AI
 
OFFOFFBOX™ – A New Era for African Film | Startup Presentation
ambaicciwalkerbrian
 
Researching The Best Chat SDK Providers in 2025
Ray Fields
 
Make GenAI investments go further with the Dell AI Factory
Principled Technologies
 
MASTERDECK GRAPHSUMMIT SYDNEY (Public).pdf
Neo4j
 
Generative AI vs Predictive AI-The Ultimate Comparison Guide
Lily Clark
 
Build with AI and GDG Cloud Bydgoszcz- ADK .pdf
jaroslawgajewski1
 
RAT Builders - How to Catch Them All [DeepSec 2024]
malmoeb
 
GDG Cloud Munich - Intro - Luiz Carneiro - #BuildWithAI - July - Abdel.pdf
Luiz Carneiro
 
Farrell_Programming Logic and Design slides_10e_ch02_PowerPoint.pptx
bashnahara11
 
What-is-the-World-Wide-Web -- Introduction
tonifi9488
 
Research-Fundamentals-and-Topic-Development.pdf
ayesha butalia
 
Brief History of Internet - Early Days of Internet
sutharharshit158
 
Presentation about Hardware and Software in Computer
snehamodhawadiya
 
Agile Chennai 18-19 July 2025 Ideathon | AI Powered Microfinance Literacy Gui...
AgileNetwork
 
Introduction to Flutter by Ayush Desai.pptx
ayushdesai204
 
Peak of Data & AI Encore - Real-Time Insights & Scalable Editing with ArcGIS
Safe Software
 
The Future of Mobile Is Context-Aware—Are You Ready?
iProgrammer Solutions Private Limited
 
Agile Chennai 18-19 July 2025 | Emerging patterns in Agentic AI by Bharani Su...
AgileNetwork
 

.Net framework

  • 1. Introduction to Microsoft .Net Framework Introduction to .Net Platform The Microsoft’s .Net platform encompasses a virtual machine that abstracts away much of the windows API from development. It includes a class library with more functionality than any other created to date, and a development environment that spans multiple languages. I t provides an architecture that makes multiple language integration simple and straightforward. This is the first development platform designed from the ground up with Internet in mind. .Net is designed and intended for highly distributed software, making Internet functionality and interoperability easier and more transparent to include in systems than ever before. Microsoft has taken many of the best ideas from the industry, combined with some ideas of their own, and brought them altogether into one coherent package.
  • 2.  Features of .Net Platform  The .NET Framework is an integral Windows component that supports building and running the next generation of applications and XML Web services. The .NET Framework is designed to fulfill the following objectives:  To provide a consistent object-oriented programming environment whether object code is stored and executed locally, executed locally but Internet- distributed, or executed remotely.  To provide a code-execution environment that minimizes software deployment and versioning conflicts.  To provide a code-execution environment that promotes safe execution of code, including code created by an unknown or semi-trusted third party.  To provide a code-execution environment that eliminates the performance problems of scripted or interpreted environments.  To make the developer experience consistency across widely varying types of applications, such as Windows-based applications and Web-based applications.
  • 3.  .NET Framework Class Library The .NET Framework class library is a collection of reusable types that tightly integrate with the common language runtime. The class library is object oriented, providing types from which your own managed code can derive functionality. This not only makes the .NET Framework types easy to use, but also reduces the time associated with learning new features of the .NET Framework. In addition, third- party components can integrate seamlessly with classes in the .NET Framework.
  • 4.  As you would expect from an object-oriented class library, the .NET Framework types enable you to accomplish a range of common programming tasks, including tasks such as string management, data collection, database connectivity, and file access. In addition to these common tasks, the class library includes types that support a variety of specialized development scenarios. For example, you can use the .NET Framework to develop the following types of applications and services:
  • 5.  Console applications.  Windows GUI applications (Windows Forms).  Windows Presentation Foundation (WPF) applications.  ASP.NET applications.  Web services.  Windows services.  Service-oriented applications using Windows Communication Foundation (WCF).  Workflow-enabled applications using Windows Workflow Foundation (WF).  For example, the Windows Forms classes are a comprehensive set of reusable types that vastly simplify Windows GUI development.
  • 6.  Garbage Collection: The .NET Framework's garbage collector manages the allocation and release of memory for your application. Each time you use the new operator to create an object, the runtime allocates memory for the object from the managed heap
  • 7.  Stack Walk: This concept is helpful to anyone interested in building a profiler to examine managed applications
  • 8.  Class Loader: Normally, the Java Virtual Machine loads classes from the local file system in a platform- dependent manner. For example, on UNIX systems, the Virtual Machine loads classes from the directory defined by the CLASSPATH environment variable.
  • 9. Assemblies Overview  Assemblies are a fundamental part of programming with the .NET Framework. An assembly performs the following functions: It contains code that the common language runtime executes. Microsoft intermediate language (MSIL) code in a portable executable (PE) file will not be executed if it does not have an associated assembly manifest. Note that each assembly can have only one entry point (that is, DllMain, WinMain, or Main).  It forms a security boundary. An assembly is the unit at which permissions are requested and granted.  It forms a type boundary. Every type's identity includes the name of the assembly in which it resides. A type called MyType loaded in the scope of one assembly is not the same as a type called MyType loaded in the scope of another assembly.
  • 10.  Benefits of Assemblies  Assemblies are designed to simplify application deployment and to solve versioning problems that can occur with component-based applications.  Versioning Problems  Currently two versioning problems occur with Win32 applications:  1. Versioning rules cannot be expressed between pieces of an application and enforced by the operating system.  2. There is no way to maintain consistency between sets of components that are built together and the set that is present at run time.
  • 11.  Introducing C# Programming  The C# language (pronounced as “C Sharp” or “see Sharp”) is an Object Oriented Programming Language developed by Microsoft to become a key part of their .Net software development platform.  The .NET Framework defines a "Common Language Specification" (CLS), a sort of lingua franca that ensures seamless interoperability between CLS- compliant languages and class libraries. For C# developers, this means that even though C# is a new language, it has complete access to the same rich class libraries that are used by seasoned tools such as Visual Basic .NET and Visual C++ .NET. C# itself does not include a class library.  The Cornerstone components of .Net Platform:
  • 12.  There are four major cornerstone components of .Net platform as follows:  1. .Net Building Block services such as Passport  2. .Net Compact Framework that runs on devices such as mobile phones  3. .Net through XML integration  4. .Net infrastructure such as the .Net framework CLR and .Net framework class libraries and application developments such as Microsoft Visual Studio.Net
  • 13.  Sample Program: This is just a basic program that illustrates how a C# program looks like. public class Class1 { public static void Main() { System.Console.WriteLine(“ Welcome to C#”); } } Compiling and Executing  The minimum requirements for getting started with C# programming are:  1. A text editor (like Windows Notepad)  2. The Microsoft .NET Framework  The text editor allows you to type in the C# code that will be compiled.
  • 14.  The syntax for compiling the sample C# program is: csc.exe <filename>.cs  The name of our C# program is hello.cs.  The syntax for compilation of the above program file is: csc.exe hello.cs Defining a Class: C# is an object-oriented programming language and uses classes and structs to implement types such as Windows Forms, user interface controls, and data structures. A typical C# application consists of classes defined by the programmer, combined with classes from the .NET Framework.
  • 15. Customer obj1 = new Customer();  Classes enable you to develop applications using object- oriented programming (OOP) techniques. Classes are templates that define objects.  Declaring Classes:  Classes are defined by using the class keyword, as shown in the following example:  Public class Custormer{  //Fields,properties,methods and events …  }  Creating Objects  A class defines a type of object, but it is not an object itself. An object is a concrete entity based on a class, and is sometimes referred to as an instance of a class.
  • 16.  Introducing Data Types:  A Type is how a programming language classifies different values and expressions. Since the computer stores all the data internally in the form of zeros and ones, the data needs to have a context or meaning. In order to preserve this meaning, Types are used in a programming language.  Since C# is a strongly typed language; every variable and object used as part of the programs must have a declared type.  In any programming language, it's critical that the compiler, the part of the Visual Studio framework that interprets the code you write into a language the computer can understand, fully understands the type of data you're manipulating in code. For example, if you ask the compiler to add the following values, it would get confused:
  • 17.  Overview of C# Data Types :  A Data Type can be described as being either:  A built-in numeric type, such as an int or char, or  A user-defined type, such as a class or interface.  An anonymous type, which consists of a set of public properties encapsulated in a nameless reference type.  Types can also be defined as being either:  Value Types (C# Reference), which store values. These include the primitive numeric types, enums and structs, and also nullable versions of these types.  Reference Types (C# Reference), which store references to the actual data. These include classes, interfaces, arrays and delegates.