Programming in C #: .NET Architecture · C# Language Page 1 of 6 Advanced Programming Language...

6
C# Language Page 1 of 6 Adva Fal Program Outline of the Lecture .NET Architecture Compilation and Executi The .NET Framework Li Base Framework The architecture of o The .NET Frame The .NET Framew The .NET Frame The .NET Framew o The Common Lan The Common Lan The Common Lan The Common Lan o The Common Lan The Common Lan The Common Lan The Common Lan o Microsoft Interme Microsoft Interme Microsoft Interme Microsoft Interme o The Base Class L The Base Class L The Base Class L The Base Class L Dr. Overview o 1 anced Programming Language (630501) ll 2011/2012 – Lectures Notes # 11-12 mming in C#: .NET Architectur ion ibrary .NET Architecture the .NET platform, which is made up of ework ework ework ework nguage Specifications (CLS) nguage Specifications (CLS) nguage Specifications (CLS) nguage Specifications (CLS) nguage Runtime (CLR), nguage Runtime (CLR), nguage Runtime (CLR), nguage Runtime (CLR), ediate Language (MSIL), ediate Language (MSIL), ediate Language (MSIL), ediate Language (MSIL), Library (BCL). Library (BCL). Library (BCL). Library (BCL). .Qadri Hamarsheh of C# re

Transcript of Programming in C #: .NET Architecture · C# Language Page 1 of 6 Advanced Programming Language...

Page 1: Programming in C #: .NET Architecture · C# Language Page 1 of 6 Advanced Programming Language (630501) Fall 2011/2012 Programming in C Outline of the Lecture .NET Architecture ...

C# Language

Page 1 of 6

Advanced Programming Language (630501)

Fall 2011/2012

Programming in C

Outline of the Lecture

� .NET Architecture

� Compilation and Execution

� The .NET Framework Library

� Base Framework

� The architecture of the .NET platform, which is made up of

o The .NET FrameworkThe .NET FrameworkThe .NET FrameworkThe .NET Framework

o The Common Language Specifications (CLS)The Common Language Specifications (CLS)The Common Language Specifications (CLS)The Common Language Specifications (CLS)

o The Common Language Runtime (CLR), The Common Language Runtime (CLR), The Common Language Runtime (CLR), The Common Language Runtime (CLR),

o Microsoft Intermediate Language (MSIL), Microsoft Intermediate Language (MSIL), Microsoft Intermediate Language (MSIL), Microsoft Intermediate Language (MSIL),

o The Base Class Library (BCL). The Base Class Library (BCL). The Base Class Library (BCL). The Base Class Library (BCL).

Dr.Qadri Hamarsheh

Overview of

1

Advanced Programming Language (630501)

Fall 2011/2012 – Lectures Notes # 11-12

Programming in C#: .NET Architecture

Execution

The .NET Framework Library

.NET Architecture

of the .NET platform, which is made up of

The .NET FrameworkThe .NET FrameworkThe .NET FrameworkThe .NET Framework

The Common Language Specifications (CLS)The Common Language Specifications (CLS)The Common Language Specifications (CLS)The Common Language Specifications (CLS)

The Common Language Runtime (CLR), The Common Language Runtime (CLR), The Common Language Runtime (CLR), The Common Language Runtime (CLR),

Microsoft Intermediate Language (MSIL), Microsoft Intermediate Language (MSIL), Microsoft Intermediate Language (MSIL), Microsoft Intermediate Language (MSIL),

The Base Class Library (BCL). The Base Class Library (BCL). The Base Class Library (BCL). The Base Class Library (BCL).

Dr.Qadri Hamarsheh

Overview of C#

.NET Architecture

Page 2: Programming in C #: .NET Architecture · C# Language Page 1 of 6 Advanced Programming Language (630501) Fall 2011/2012 Programming in C Outline of the Lecture .NET Architecture ...

C# Language Dr.Qadri Hamarsheh

Overview of C#

Page 2 of 6 2

� Common Language Specifications (CLS): The minimum requirements that a

.NET language must support. In order to create components that are accessible from

every .NET implementation, the code must follow the CLS.

� .NET Framework: The platform for building and deploying .NET applications. These

applications include:

o Web servicesWeb servicesWeb servicesWeb services

o Windows formsWindows formsWindows formsWindows forms

o Web formsWeb formsWeb formsWeb forms

o Console applicationsConsole applicationsConsole applicationsConsole applications

o Mobile applications and so forth.Mobile applications and so forth.Mobile applications and so forth.Mobile applications and so forth.

� Common Type System (CTS) defines a set of rules that all .NET language compilers

must follow. These rules specify information about reference and value types.

� .NET Framework class library (FCL) is a collection of prebuilt classes that

can be used by any application. These classes provide the developer with reusable

components.

Page 3: Programming in C #: .NET Architecture · C# Language Page 1 of 6 Advanced Programming Language (630501) Fall 2011/2012 Programming in C Outline of the Lecture .NET Architecture ...

C# Language

Page 3 of 6

Compilation

� Common Language Runtime

services for .NET code, such as object lifetime, debugging, and code

o Microsoft Intermediate

when a program is compiled using the

o Metadata Informationdata. Metadata can supply information to the runtime about security, binding,

debugging, and the like.

o just-in-time compilation

Intermediate Language

o Managed code: Code that supplies

provides information about memory management, code access, security, and so

forth. Any code that is created using Microsoft Intermediate Langua

as managed code.

o Native code: The code that is created when MSIL code is compiled to be

machine specific.

Dr.Qadri Hamarsheh

Overview of

3

Compilation and Execution

Common Language Runtime (CLR): The runtime environment that supplies

services for .NET code, such as object lifetime, debugging, and code

Microsoft Intermediate Language (MSIL): The language created

when a program is compiled using the .NET Framework.

Metadata Information that describes the underlying data. It is data about

data. Metadata can supply information to the runtime about security, binding,

debugging, and the like.

compilation (JIT): The process by which

Intermediate Language is converted into machine code when the code is run.

: Code that supplies metadata that is read by the runtime and

provides information about memory management, code access, security, and so

forth. Any code that is created using Microsoft Intermediate Langua

The code that is created when MSIL code is compiled to be

Dr.Qadri Hamarsheh

Overview of C#

The runtime environment that supplies

services for .NET code, such as object lifetime, debugging, and code-access security.

The language created

that describes the underlying data. It is data about

data. Metadata can supply information to the runtime about security, binding,

The process by which Microsoft

when the code is run.

that is read by the runtime and

provides information about memory management, code access, security, and so

forth. Any code that is created using Microsoft Intermediate Language is executed

The code that is created when MSIL code is compiled to be

Page 4: Programming in C #: .NET Architecture · C# Language Page 1 of 6 Advanced Programming Language (630501) Fall 2011/2012 Programming in C Outline of the Lecture .NET Architecture ...

C# Language

Page 4 of 6

Execution scheme under .NET

The .NET Framework Library

Dr.Qadri Hamarsheh

Overview of

4

Execution scheme under .NET

The .NET Framework Library

Dr.Qadri Hamarsheh

Overview of C#

Page 5: Programming in C #: .NET Architecture · C# Language Page 1 of 6 Advanced Programming Language (630501) Fall 2011/2012 Programming in C Outline of the Lecture .NET Architecture ...

C# Language

Page 5 of 6

Dr.Qadri Hamarsheh

Overview of

5

Base Framework

Dr.Qadri Hamarsheh

Overview of C#

Page 6: Programming in C #: .NET Architecture · C# Language Page 1 of 6 Advanced Programming Language (630501) Fall 2011/2012 Programming in C Outline of the Lecture .NET Architecture ...

C# Language

Page 6 of 6

Dr.Qadri Hamarsheh

Overview of

6

Data and XML

ASP.NET

Windows Forms

Dr.Qadri Hamarsheh

Overview of C#