Пример #1
0
        private static void *__CopyValue(IBar.__Internal native)
        {
            var ret = Marshal.AllocHGlobal(8);

            *(IBar.__Internal *)ret = native;
            return(ret.ToPointer());
        }
Пример #2
0
 internal IBarInternal(IBar.__Internal native, bool skipVTables = false)
     : this(__CopyValue(native), skipVTables)
 {
     __ownsNativeInstance           = true;
     NativeToManagedMap[__Instance] = this;
 }
Пример #3
0
 internal static IBar __CreateInstance(IBar.__Internal native, bool skipVTables = false)
 {
     return(new IBarInternal(native, skipVTables));
 }