Ejemplo n.º 1
0
 public unsafe SafeCorMethodInfo(CorMethodInfo *other)
 {
     this.args    = other->args;
     this.EHCount = other->EHCount;
     this.ftn     = other->ftn;
     this.ilCode  = new byte[other->ilCodeSize];
     Marshal.Copy((IntPtr)other->ilCode, ilCode, 0, ilCode.Length);
     this.ilCodeSize = other->ilCodeSize;
     this.locals     = other->locals;
     this.maxStack   = other->maxStack;
     this.options    = other->options;
     this.scope      = other->scope;
 }
Ejemplo n.º 2
0
 public unsafe SafeCorMethodInfo(CorMethodInfo *other)
 {
     args    = other->args;
     EHCount = other->EHCount;
     ftn     = other->ftn;
     ilCode  = new byte[other->ilCodeSize];
     Marshal.Copy((IntPtr)other->ilCode, ilCode, 0, ilCode.Length);
     ilCodeSize = other->ilCodeSize;
     locals     = other->locals;
     maxStack   = other->maxStack;
     options    = other->options;
     scope      = other->scope;
 }