private static void* __CopyValue(_Rep.Internal native) { var ret = Marshal.AllocHGlobal(24); *(_Rep.Internal*) ret = native; return ret.ToPointer(); }
private _Rep(_Rep.Internal native, bool skipVTables = false) : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; }
public static _Rep __CreateInstance(_Rep.Internal native, bool skipVTables = false) { return new _Rep(native, skipVTables); }