Exemple #1
0
        private static void *__CopyValue(__Internal native)
        {
            var ret = Marshal.AllocHGlobal(sizeof(__Internal));

            *(__Internal *)ret = native;
            return(ret.ToPointer());
        }
Exemple #2
0
 private XmlTextWriter(__Internal native, bool skipVTables = false)
     : this(__CopyValue(native), skipVTables)
 {
     __ownsNativeInstance           = true;
     NativeToManagedMap[__Instance] = this;
 }
Exemple #3
0
 internal static XmlTextWriter __CreateInstance(__Internal native, bool skipVTables = false)
 {
     return(new XmlTextWriter(native, skipVTables));
 }
Exemple #4
0
 internal static Foo __CreateInstance(__Internal native, bool skipVTables = false)
 {
     return(new Foo(native, skipVTables));
 }
Exemple #5
0
 internal IBarInternal(__Internal native, bool skipVTables = false)
     : this(__CopyValue(native), skipVTables)
 {
     __ownsNativeInstance           = true;
     NativeToManagedMap[__Instance] = this;
 }
Exemple #6
0
 internal static IBar __CreateInstance(__Internal native, bool skipVTables = false)
 {
     return(new IBarInternal(native, skipVTables));
 }
 private RuminoidImageT(__Internal native, bool skipVTables = false)
     : this(__CopyValue(native), skipVTables)
 {
     __ownsNativeInstance           = true;
     NativeToManagedMap[__Instance] = this;
 }
 internal static RuminoidImageT __CreateInstance(__Internal native, bool skipVTables = false)
 {
     return(new RuminoidImageT(native, skipVTables));
 }