. NET Framework Platform Construction Basics

Source: Internet
Author: User
CLR common language runtime
     A collection of external services required to execute a given compiled code unit. It provides a well-defined runtime layer that can be shared by all languages and platforms that support .NET.

Library
mscoree.dll: public object runtime execution engine
     When a user program references an assembly, the library is automatically loaded first, and then it is responsible for importing the required assembly into memory.

work process


 
CTS common type system
     CTS is a formal specification that specifies how types must be defined to be carried by the CLR.

Class type
     This is the basis of OOP and consists of members and data

feature
Whether sealed
Whether to implement the interface
Is it concrete or abstract
Visibility
grammar
class Calc {……}
Interface Type
     A named collection of abstract member definitions, implemented by a specific class or structure.

grammar
public interface IDraw {void Draw ()}
structure type
     Can be considered as a lightweight class type with semantics, suitable for modeling geometric and mathematical data

grammar
struct Point {……}
Enumerated type
     Is a convenient programming structure for composing name / value pairs.

grammar
enum CharacterType
{Wizard = 100, Thief = 200}
Delegate Type
     Equivalent to type-safe C-style function pointers. Derived from the System.MulticastDelegate class, rather than simply a pointer to the original memory address, provides the basis for the .NET event architecture.

grammar
delegate int BinaryOp (int x, int y);
Type member
     Type members are collections

composition
Constructor
Terminator
Static constructor
Nested type
Operator
method
Attributes
Indexer
Field
Read-only field
constant
event
Visibility
public
private
be protected
Built-in data types
CTS data type C # keyword CLI keyword Remarks
System.Byte
byte unsigned char
System.SByte
sbyte signed char
System.Int16
short short
System.Int32
int int or long
System.Int64
long _int64
System.UInt16
ushort
unsigned short
 
System.UInt32
uint
unsigned int or unsigned long
 
System.UInt64
ulong
unsigned _int64
 
System.Single
float Float
System.Double
double Double
System.Object
object object ^
System.Char
char wchar_t
System.String
string String ^
System.Decimal
decimal Decimal
System.Boolean
bool Bool
 
CLS Common Language Specification
     It clearly describes the minimum and complete feature set that a compiler that supports .NET must support, and can be accessed in a uniform manner by other languages based on the .NET platform.

rule
Rule 1: CLS rules apply only to the part of the type that is exposed outside the assembly that defines it.
BCL Basic Class Library
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.