appendix d: microsoft.net framework overview. overview.net framework architecture.net namespaces
TRANSCRIPT
Appendix D:Microsoft .NET
Framework Overview
Overview
.NET Framework Architecture
.NET Namespaces
Lesson: .NET Framework Architecture
Architecture of the .NET Framework
Object-Oriented Programming
The Common Language Runtime
Architecture of the .NET Framework
Architecture of the .NET Framework
OthersOthersVB C#
VB compiler C# compiler
Microsoft Intermediate Language (MSIL)
ADO.NET
Common Language Runtime (CLR)
Win32 API
MyClass
Source Code
Compiler
Operating System
Base Class Libraries
Object-Oriented Programming
Object Oriented Programming
Define classes to represent the main concepts
Each class can comprise data, constructors, and methods
Create objects by using the new operator
VB exampleVB example C# exampleC# example
The Common Language Runtime
The common language runtime provides an execution environment for .NET Framework applications
The common language runtime includes these features:
Common type system Just-in-time compiler Security support Garbage collection and memory management Class loader COM interoperability
Lesson: .NET Namespaces
What Are Namespaces?
How Are Namespaces Referenced?
Creating New Namespaces
What Are Namespaces?
What Are Namespaces?
Namespaces are collections of names that are organized in functional groupings, such as classes, interfaces, and enumerators
Namespaces are used in everyday life and in computing
VB.NET codeVB.NET code(this will be combo slide that will build and show a graphic)
How Are Namespaces Referenced?
Classes and types are packaged as assemblies
A namespace can be partitioned over several assemblies
An assembly can contain types from several namespaces
Assemblies are an important part of the .NET Framework
To add a reference to an assembly in your project:
In Solution Explorer, right-click the References folder Select the assembly you require
Creating New Namespaces
You can create new namespaces for your classes
For example, create a new namespace for the implementation of a .NET data provider for Microsoft FoxPro®
To create a new namespace:
Define the namespace
Define your classes in the namespace
Create an assembly to hold the compiled code
Review
.NET Framework Architecture
.NET Namespaces