private static void *__CopyValue(IBar.__Internal native) { var ret = Marshal.AllocHGlobal(8); *(IBar.__Internal *)ret = native; return(ret.ToPointer()); }
internal IBarInternal(IBar.__Internal native, bool skipVTables = false) : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; }
internal static IBar __CreateInstance(IBar.__Internal native, bool skipVTables = false) { return(new IBarInternal(native, skipVTables)); }