0% found this document useful (0 votes)
144 views

Definitions: - Platform Is An Environment For Developing and Executing Application

The document defines key concepts related to .NET including platform, framework, language interoperability, and platform independence. It states that .NET provides an environment for developing and running software applications across multiple programming languages with common runtime services and interoperability. The core components of .NET include the framework SDK, runtime, and Visual Studio IDE. The document outlines the different versions of the .NET framework and core concepts like the common language runtime, framework class library, intermediate language, common type system, common language specification, and assemblies.

Uploaded by

shahdoli
Copyright
© © All Rights Reserved
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
144 views

Definitions: - Platform Is An Environment For Developing and Executing Application

The document defines key concepts related to .NET including platform, framework, language interoperability, and platform independence. It states that .NET provides an environment for developing and running software applications across multiple programming languages with common runtime services and interoperability. The core components of .NET include the framework SDK, runtime, and Visual Studio IDE. The document outlines the different versions of the .NET framework and core concepts like the common language runtime, framework class library, intermediate language, common type system, common language specification, and assemblies.

Uploaded by

shahdoli
Copyright
© © All Rights Reserved
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 16

Definitions

Platform is an environment for developing


and executing application.
Development Platform
Production Platform

Framework ready to use Collection of Classes


and Interfaces used for developing a
particular type of application.

Language Interoperability :
Platform Independence :

What is .NET
Its an environment for developing and
running software applications featuring ease
of development of web based services, rich
standard runtime services available to
components written in variety of
programming languages & provides inter
language & inter machine operability.

Framework Components
MS.NET Framework SDK
Mostly used for development of .NET application.

MS.NET Framework Runtime


Used for both Development and Production of .NET applications.

Visual Studio.NET

IDE and RAD tool for Developing .NET applications.


Not needed on Production machine
Common environment for multiple languages like VB.NET, C#, VC++
Can be used by any type of .NET application.
Can be used also for non .NET based applications like PHP pages. For
this we need a plug-in to be installed over Visual Studio.

MS.NET Framework Versions

Version 1.0 in Year 2002


Version 1.1 in Year 2003
Version 2.0 in Year 2005
Version 3.0 in Year 2006 wcf, wpf, wf
Version 3.5 in Year 2008 ajax, linq
Version 4.0 in Year 2010 Version 4.5 in Year 2012
4.5.1

Visual Studio 2010


Visual Studio 2012
Visual Studio 2013

Core of .NET Framework


Framework / Base Class Library
Provides the core functionality:
ASP.NET, Web Services, ADO.NET, Windows
Forms, XML, etc.

Common Language Runtime


Garbage Collection
Language Integration
Multiple Versioning Support (no more DLL hell!)
Integrated Security

.NET Architecture

Types of MS.NET Application

Console Based Application(e.g. Compiler)


Windows Application (WinForms)
ASP.NET Web Applications
Windows Services
ASP.NET Web Services (WCF)
Remoting Application
Mobile / Smart Device Applications

Introduction to .NET

Common Language Runtime (CLR)


Framework Class Library /Base Class Library
Intermediate Language (IL)
Common Type System (CTS)
Common Language System (CLS)
Assembly

CLR
The .NET Framework provides a run-time environment called the common
language runtime, which runs the code and provides services that make the
development process easier.
The common language runtime is responsible for managing the execution of
.NET programs.
The runtime provides the following benefits:
Memory management, type safety and exception handling and so on..

Managed Code
Code that you develop with a language compiler that targets the runtime is
called managed code;
it benefits from features such as cross-language integration, cross-language
exception handling, enhanced security, versioning and deployment support, a
simplified model for component interaction, and debugging and profiling
services.
Ex.: C#

Unmanaged Code
Code that does not targets the runtime is called unmanaged code.
Ex.: VB 6.0 Component.
Framework Class Library / Base 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.
For example, the .NET Framework collection classes implement a set of interfaces
that you can use to develop your own collection classes. Your collection classes will
blend seamlessly with the classes in the .NET Framework.

Common Type System (CTS)


The common type system defines how types are declared, used, and
managed in the common language runtime, and is also an important part
of the runtime's support for cross-language integration.
The common type system performs the following functions:
Defines rules that languages must follow, which helps ensure that
objects written in different languages can interact with each other.
Establishes a framework that helps enable cross-language integration,
type safety, and high-performance code execution.
Provides a library that contains the primitive data types (such as
Boolean, Byte, Char, Int32, and UInt64) used in application
development.
Ex.: It converts int to System.Int32 which is of CTS type and similarly
long to System.Int64. i.e. it converts the datatypes of respective
language to CTS type.

Common Language Specification (CLS)


To fully interact with other objects regardless of the language they
were implemented in, objects must expose to callers only those
features that are common to all the languages they must interoperate
with.
For this reason, the Common Language Specification (CLS), which is a
set of basic language features needed by many applications, has been
defined.
The CLS rules define a subset of the Common Type System; that is, all
the rules that apply to the common type system apply to the CLS,
except where stricter rules are defined in the CLS.
The CLS helps enhance and ensure language interoperability by
defining a set of features that developers can rely on to be available in
a wide variety of languages.
Ex.: Casing in VB.NET.

IL (Intermediate Language)
It is also called as Microsoft Intermediate Language (MSIL) or
Common Intermediate Language (CIL).
IL file contains a set of instructions which are independent of any
specific hardware or OS.

Assembly
Assembly can be an Exe or Dll.
Assemblies are the building blocks of .NET Framework applications;
They are compiled code libraries that form the fundamental unit of
deployment, version control, reuse, activation scoping, and security
permissions.
An assembly is a collection of types and resources that are built to
work together and form a logical unit of functionality.
An assembly provides the common language runtime with the
information it needs to be aware of type implementations.
Assemblies can be static or dynamic. Static assemblies can include
.NET Framework types (interfaces and classes), as well as resources for
the assembly (bitmaps, JPEG files, resource files, and so on). Static
assemblies are stored on disk in portable executable (PE) files.
You can also use the .NET Framework to create dynamic assemblies,
which are run directly from memory and are not saved to disk before
execution. You can save dynamic assemblies to disk after they have
executed.

Assembly Contents
In general, a static assembly can consist of four elements:

The assembly manifest, which contains assembly metadata.


Type metadata.
Microsoft intermediate language (MSIL) code that implements the types.
A set of resources.

You might also like