1
Reply

How we adjust multiple object memory in one place?

Navin Malik

Navin Malik

11y
529
0
Reply

    One of the method of the Object is MemberwiseClone()  method. Through this we can create a shallow copy by creating a new object and then copying the nonstatic field of current object to the new field.

    If a field is a value type,a bit by bit copy of the field is performed
    If a field is a reference type, the reference is copied but the reference object is not, therefore, the original object and its clone refer to the same object.