Introduction To The Microsoft .NET Framework
Introduction To The Microsoft .NET Framework
Chris Wastchak
Student Ambassador to Microsoft
What is the .NET Framework
• A new computing platform designed to
simplify application development
• A consistent object-oriented programming
environment
• A code-execution environment that:
– Minimizes software deployment and versioning
conflicts
– Eliminates the performance problems of scripted
or interpreted environments
Primary Components of .NET
• .NET Framework Class Libraries
– Object-oriented collection of reusable types
– Sits on-top of the Common Language Runtime
• Common Language Runtime (CLR)
– Manages code execution at runtime
– Memory management, thread management, etc.
– Code designed for the CLR is referred to as
“Managed Code”
Managed execution in the Common Language Runtime (CLR)
Managed Code
Common Language
Runtime (CLR)
Win32 OS
Inside the .NET Framework
VB C++ C# J# Python …
ASP.NET
Web Services User Interface
High-productivity environment for
ASP.NET building and running Web
services
Data and XML
Base Framework
Secure, integrated class
Common Language Runtime (CLR) libraries
•Unifies programming models
Operating System across languages
•Enables cross-language
integration
Common Language
Runtime •Factored for extensibility
MSIL
Microsoft Intermediate Language
• Managed code is compiled to MSIL
• CPU-independent set of instructions
– Loading, storing, initializing and calling methods
– Arithmetic and logical operations, etc.
– Control flow, exception handling, direct memory
access
Just-In-Time Compiling
• Assemblies are compiled to native code by a
Just-In-Time compiler (JITer)
• Compiled assemblies include metadata
• No Type Libraries or Interface Definition
Language (IDL)
Compilation And Execution
Compilation
Native JIT
Code Compiler Before installation or
the first time each
Execution method is called
Just-In-Time Compiling
• All assemblies must be compiled to native
code before executing
• JIT compilers are built into the CLR for every
supported CPU architecture
• JIT compilers convert MSIL to native on
demand
• Resulting native code is stored for reuse
• JIT compiling occurs for each method after
the application is restarted
Summary
• .NET Framework is a code execution platform
• .NET Framework consists of two primary parts: .NET
Class Libraries, Common Language Runtime
• All CLR-compliant compilers support the common
type system
• Managed code is object oriented
• Managed code is compiled to an assembly (MSIL) by
language specific compiler
• Assemblies are compiled to native code by JIT
compiler
Questions?