private static void *__CopyValue(global::CppSharpTestNative.dll.Derived.__Internal native) { var ret = Marshal.AllocHGlobal(sizeof(global::CppSharpTestNative.dll.Derived.__Internal)); global::CppSharpTestNative.dll.Derived.__Internal.cctor_1(ret, new global::System.IntPtr(&native)); return(ret.ToPointer()); }
private Derived(global::CppSharpTestNative.dll.Derived.__Internal native, bool skipVTables = false) : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; }
internal static global::CppSharpTestNative.dll.Derived __CreateInstance(global::CppSharpTestNative.dll.Derived.__Internal native, bool skipVTables = false) { return(new global::CppSharpTestNative.dll.Derived(native, skipVTables)); }