1. CLR-Common Language Runtime
For. Net ApplicationsProgramProvides the runtime environment. Locates, loads, and manages. Net types, and is also responsible for some underlying details, such as memory management, application domain creation, thread and object context boundaries, and security checks.
2. Cts-Common Type System
A complete description of all possible data types and programming structures supported by the runtime, specifying how these entities interact, and specifying their representation in the. NET metadata format.
CTS includes five basic types: Class, interface, Enum, delegate and struct
Possible CTS members: constructor, Terminator, static constructor, nested type, operator, method, attribute, indexer, field, read-only field, constant, event
3. CLs-Common Language Specification
Defines a subset of common types and programming structures supported by all. NET languages. This is a subset of all language features, while CTS is a collection of all language features.
CLS defines a set of rules. When the program fully complies with this set of rules, you can ensure that your program can be correctly called by all other. NET languages. You can use the [Assembly: system. clscompliant (true)] feature to verify CLS rules.
4. Bcl-basic class library
A set of public class libraries that can be called by all. NET languages encapsulate many of the most basic types and services.
5. Managed/unmanaged code
Running in CLRCodeIt is called the managed code, and the opposite is called the unmanaged code.
6. Advantages of C #
- No pointer required
- Automatic Memory Management-garbage collection mechanism
- Object-oriented language
- Operator overload
- Supports attribute
- More secure generic programming
- Support for anonymous Functions
- Simplified Delegate/event model
- Partial class
3.5. The following features are supported:
- LINQ
- Support for anonymous types
- Extension Method to extend existing types
- Lambda syntax
- New initialization object syntax
7. Il, pencil or msil
Or become a common intermediate language. All. NET language codes are converted into intermediate languages after compilation. The objective is to support multiple languages.
8. Assembly content
It mainly includes compiled il instruction sets, metadata types, and manifest (metadata of the Assembly itself ). Metadata is mainly used for reflection, Object serialization, late binding, and intelligent perception of WCF and. In addition to recording the version and module number of the current Assembly, manifest also records information about the external assembly that allows the Assembly to run normally.
9. jit-just in time
Instant compiler. Running a program is to compile the Il command, generate a machine code that can be recognized by the machine, and save the compilation result. The next time you call the same code, you do not need to re-compile it.
10. namespace
In short, it is a grouping mechanism for. Net types. The most common system namespaces include system. Data, system. Io, and so on. In addition to the system headers namespace, the most useful namespace starts with Microsoft. The types contained in the namespace are generally related to Microsoft operating system services and cannot run on other operating systems, such as MAC and Linux.
11. View Il and decompile
Use the. NET built-in tool ildasm to view the Assembly Il. Use reflector to decompile the Assembly. You can download it from http://www.red-gate.com/products/reflector.
12.. Net cross-platform
In short,. Net is a cross-language platform and supports cross-platform languages. A cross-Language Platform supports multipleProgramming Language. Supports cross-platform languages. In theory,. Net can run on a non-Windows OS. However, for the latter, Ms itself did not do this, and only two open-source architectures are providing limited support:
Http://www.mono-project.com-supports various versions of Linux, Win32, and Mac OS X
Http://www.dotgnu.org/-Support for Win32, Aix, BEOs, Mac OS X, Solaris and Linux