Type (Type)

A data type is homogeneous collection of values,effectiovely presented,equipped with a set of operations which manipulate these values.

effect:

1. variables that need to store this type of memory.

Maximum and minimum values ​​represent the range of 2. This type.

3. The members included

4. The base class can be found in

5. When the program is running, this type of variable is assigned to the memory locations

1.stack method call to the function is used, only a small trillion, a reference type on the stack, stack stackoverflow situation occur, the algorithm may be because you are not good enough, too many function calls, it could be allocated on the stack too much memory

2.Heap is used to store an object instance or more appropriate points, can reach considerable number G, the value on the type Heap, a stack address and put a point, will be a memory leak, because you forgot to be recovered due to, However, C # has an automatic recovery mechanism

 

In addition C # also can use the keyword unsafe to use the pointer

 

Guess you like

Origin www.cnblogs.com/1521681359qqcom/p/11184066.html