Ejemplo n.º 1
0
        private static void *__CopyValue(Bar.__Internal native)
        {
            var ret = Marshal.AllocHGlobal(8);

            *(Bar.__Internal *)ret = native;
            return(ret.ToPointer());
        }
Ejemplo n.º 2
0
 private Bar(Bar.__Internal native, bool skipVTables = false)
     : this(__CopyValue(native), skipVTables)
 {
     __ownsNativeInstance           = true;
     NativeToManagedMap[__Instance] = this;
 }
Ejemplo n.º 3
0
 internal static Bar __CreateInstance(Bar.__Internal native, bool skipVTables = false)
 {
     return(new Bar(native, skipVTables));
 }