Definitions: - Platform Is An Environment For Developing and Executing Application
Definitions: - Platform Is An Environment For Developing and Executing 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.
Visual Studio.NET
.NET Architecture
Introduction to .NET
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.
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: