1. C # relationship with. net
C # is an independent language used to generate a. Net-oriented environment.Code. But it is not part of. Net itself .. Some of the features supported by net are not supported by C. Other features supported by C # are not supported by. net. C # is used with. net, so if you want to use C # to develop applications efficientlyProgramIt is very important to understand the framework.
2. CLR, Il, JIT
The core of. NET is the Common Language Runtime Library (CLR for short.
First, C # code is compiled into an intermediate language-il. features:
1. object-oriented and Interface Support
2. Strongly typed data
3. differentiate applications and value types
Advantages:
1. cross-platform and Performance Optimization
After the code is compiled into Il, the local machine-related executable code is generated through JIT (instant compilation) when the code is called. You can optimize the performance based on different hardware.
2. language interoperability
Because of the strong data type of Il, the Data Type of each variable is determined. Therefore,. net uses CTS (general type system) and CLS (Common Language Specification) to correspond to data types of different languages.
3. Garbage Collection
4. Application domain
5. Assembly