Tuesday, August 9, 2016

.NET Framework

.NET framework help when you Write and Execute code, by set of libraries and compliers to developing, building and deploying into different c# application like (windows, web, wcf, web services)
  • Writing Programs - prewritten code (Base Class Lib (e.g. System, System.Data, System.IO) + Class Lib) [e.g. Data Structure Lib, Mathematics Lib]
  • Executing Programs – execute different platform (PC, Mobile) (CLR – memory, different platform)
.NET Framework
CLR Version
Visual Studio Version
1.1
1.1
2003
2.0
2.0
2005
3.0 (WPF,WCF,WWF)
2.0
2005
3.5
2.0
2008
4.0
4.0
2010


C#/VB ------ Compiler -----> IL ------ (JIT)--------> MC, so OS can understand and run

C/C++ is straight using compiler compile to machine code.
However C#/VB is compile to MSIL (Intermediate Language) and CLR convert to machine code, different OS will have different CLR, so no need headache different Compiler for different OS

Base Class
System
Int, string, Datetime, bool, garbage collection
System.Data
SQL Server
System.Diagnostics
Process Management, event logging, performance counter
System.Globalization
Multiple locales
System.IO
Stream, moving data from 1 place to another
System.Text
StringBuilder class
System.Text.RegularExpression


IL(Intermediate Language) 
half compile code

CLR (Common Language Runtime)
  • Garbage Collection, Memory Management
  • Convert to IL to Machine Code by JIT
  • Exception Handling
  • Debugging
  • Thread execution
CTS (Common Type System)
Describe how data type work together with different language  and match(C#, VB)

CLS (Common Language Specification)
Define rules of .NET language to work together 

Common Language Infrastructure (CLI)
  • CLI is a developed by Microsoft that describes the executable code and run time environment. 
  • It allows us to use various high level languages on various machines without rewriting the code.

No comments:

Post a Comment