Welcome to
Menporul
New way to learn
Introduction
C#
By
Vignesh Nethaji
C# Overview And Environment
• .Net Framework
• MSIL(Microsoft Intermediate Language)
• CLR(Common Language Runtime)
• CLS(Common Language Specification)
• CTS (Common Type System)
.Net Framework Overview
• Managed Code
• Two Components Of Framework
FCL(Framework Class Library)
CLR(Common Language Runtime)
.Net FCL(Framework Class Library)
• Provides the core functionality.
• Collection of reusable codes.
• Object oriented and easy to use in program developments.
• Third-party components can integrate .
• Hierarchical tree structure and it is divided into Namespaces.
• Namespaces
Namespaces are logical grouping of types
System Namespace is the root for types in the .NET Framework
Common Language Runtime
Overview
• Execution Environment between OS and Applications
• Managed Code into native code
• Just in Time(JIT)Compiler
MSIL to native code on demand at application run time.
Common Language Runtime
Execution Time
• Thread executions
Run based on schedule
• Memory Management
Allocation of Objects and Buffers
• Garbage Collection(GC)
Clean up the unused Objects and buffers
• Exception Handling
Source
code
C#
Source
code
Compiler
C#
Source
code
Managed
Code or MSIL
Assembly IL
Code
Compiler
C#
Source
code
Common Language Runtime
Managed
Code or MSIL
Assembly IL
Code
Compiler
C#
Source
code
Common Language Runtime
Managed
Code or MSIL
JIT Compiler
Assembly IL
Code
Compiler
C#
Source
code
Common Language Runtime
Native Code
Managed
Code or MSIL
JIT Compiler
Assembly IL
Code
Compiler
C#
Source
code
Operating System
Common Language Runtime
Native Code
Managed
Code or MSIL
JIT Compiler
Assembly IL
Code
Compiler
C#
Common Type System(CTS)
• Describes the datatypes in .Net Language
• Datatypes are two types
1.Value Types
int
Enum
Struct
2.Reference Type
Classes
Interfaces
Arrays
Thanks For watching this
Video

C#