appendix d: microsoft.net framework overview. overview.net framework architecture.net namespaces

11
Appendix D: Microsoft .NET Framework Overview

Upload: brittney-holland

Post on 27-Dec-2015

214 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: Appendix D: Microsoft.NET Framework Overview. Overview.NET Framework Architecture.NET Namespaces

Appendix D:Microsoft .NET

Framework Overview

Page 2: Appendix D: Microsoft.NET Framework Overview. Overview.NET Framework Architecture.NET Namespaces

Overview

.NET Framework Architecture

.NET Namespaces

Page 3: 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

Page 4: Appendix D: Microsoft.NET Framework Overview. Overview.NET Framework Architecture.NET Namespaces

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

Page 5: Appendix D: Microsoft.NET Framework Overview. Overview.NET Framework Architecture.NET Namespaces

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

Page 6: Appendix D: Microsoft.NET Framework Overview. Overview.NET Framework Architecture.NET Namespaces

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

Page 7: Appendix D: Microsoft.NET Framework Overview. Overview.NET Framework Architecture.NET Namespaces

Lesson: .NET Namespaces

What Are Namespaces?

How Are Namespaces Referenced?

Creating New Namespaces

Page 8: Appendix D: Microsoft.NET Framework Overview. Overview.NET Framework Architecture.NET 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)

Page 9: Appendix D: Microsoft.NET Framework Overview. Overview.NET Framework Architecture.NET Namespaces

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

Page 10: Appendix D: Microsoft.NET Framework Overview. Overview.NET Framework Architecture.NET Namespaces

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

Page 11: Appendix D: Microsoft.NET Framework Overview. Overview.NET Framework Architecture.NET Namespaces

Review

.NET Framework Architecture

.NET Namespaces