About the value types and reference types

  And a friend discussed in reference types and value types with almost biased, so I plan to write a blog in order to alert yourself, anything else on their own judgment, to have a clear mind. View:

 :

 

  Now I understand myself talk about it

 

 

 But if b is an object, then a point on the b address has not been assigned a, worth just changed to a point, only a point b of address, a change will affect b, so we moved to a eliminate this effect, a reference to the type will do a deep copy

Guess you like

Origin www.cnblogs.com/dwenz/p/11441732.html