/// <summary> /// Pins an object on the heap, so its address will not be changed by GC. /// </summary> /// <param name="o">The object to pin.</param> /// <param name="act">The action during which the object will stay pinned.</param> public static void Pin(object o, Action <object> act) { PinHelper.Pin(o, act); }
public static void Pin(this TypedReference tr, TypedReferenceTools.TypedRefAction act) { PinHelper.Pin(tr, act); }