Chapter 3 C # Language Basics First, Type 1, the type of object to the compiler, the size and ability of the memory. 2, C # Type (1) Intrinsic, Built-in (2) User-default 3, the C # Type (1) Value (Value) Type Save its actual value in the memory allocated in the stack (2 Reference The type address is saved in the stack. The actual value is saved in the heap 4. The uncontrolled code refers to the code 5 created outside the NET platform 5, the built-in type (Intrinsic) (1) Reference type: Object, String, Struct (2) Byte, Char, Bool, Sbyte, Short, Ushort, Int, Uint, Float, Double, Decimal, long, ulong (3) C # integer variables in the BOOL value, and there is no implicit conversion 6, Stack and Heap Stack After the first out (LIFO) HEAP dynamically allocated, a memory area 7, the number of decimal points is Double 8, escape character 9, built-in type conversion
Second, constant and variables 1, C # requires variables must be initialized before use 2, constant (1) character value (Literal) (2) symbol variable const I = 32; (3) enumeration) each The enumeration has a type, which can be any integer type (int, short, long, etc.), except for char, enumeration base type default is int If not specifically set, the enumeration starts from 0, each value added than the previous one ENUM SomeValie: uint {first, 0 second, 1 third = 20, 20 fours, 21} 3, String 4, Signature (Identifier)