Esempio n. 1
0
 public MethodDef(MethodDefinition methodDefinition, TypeDef owner, int index)
     : base(methodDefinition, owner, index)
 {
     genericParams = GenericParamDef.createGenericParamDefList(MethodDefinition.GenericParameters);
     for (int i = 0; i < methodDefinition.Parameters.Count; i++)
     {
         var param = methodDefinition.Parameters[i];
         paramDefs.Add(new ParamDef(param, i));
     }
 }
Esempio n. 2
0
 public TypeDef(TypeDefinition typeDefinition, Module module, int index)
     : base(typeDefinition, null, index)
 {
     this.module   = module;
     genericParams = GenericParamDef.createGenericParamDefList(TypeDefinition.GenericParameters);
 }