C # day1-. NET first knowledge,
1... NET platform features
1) supports multiple programming languages (C #, VB, F #, JavaScript, C ++/CLI)-managed languages, in addition to Smaltalk, Ruby, Python, COBOL and Pascal.. NET compiler, etc. After compilation, the platform-independent IL (CEL) (Intermediate language, Intermediate language) and type metadata are generated.
2) supports cross-language inheritance, exception handling, and code debugging. For example, the basic classes defined in c # can be extended in VB.
3) Comprehensive basic libraries (database access, GUI desktop APIs, security, remote processing APIs, threads, file input and output, and web APIs ).
2... NET public Type System (CTS)
1) type: {class, interface, structure, enumeration, delegation} definition specification.
For example, CTS type
1 class Calc2 {3 public int... 4 {5... 6} 7}
Class
2) type members: {constructor, Terminator, static constructor, nested type, operator, method, attribute, indexer, field, read-only field, constant, event}, member modifier.
3... NET public language specification CLS
Different programming languages and compilers have different Syntax structures. CLS describes the support. NET compiler must support the smallest and complete feature set, so that the intermediate language generated by compilation has a similar structure.
4... NET public Language Runtime Library CLR
Similar to the Java runtime, the Java Virtual Machine and. NET platform also provide a Runtime Library System-mscoree. dll.