Table of Contents

Method Clone

Namespace
Microsoft.Samples.Debugging.Native
Assembly
NativeDebugWrappers.dll

Clone()

Create a new deep copy of this context. The copies are independent and can be modified without interfering with each other.

public INativeContext Clone()

Returns

INativeContext

copy of this context

Examples

INativeContext c1 = ... INativeContext c2 = c1.Clone();

Assert(c1 != c2); // true, Clone gives different instances Assert(c1.Equals(c2)); // true Assert(c2.Equals(c1)); // true

Remarks

Contexts can be large, so copying excessively would be expensive.