Esempio n. 1
0
 internal MethodBase GetMethodAt(TypeDefImpl owner, int index)
 {
     if (methods == null)
     {
         methods = new MethodBase[MethodDef.records.Length];
     }
     if (methods[index] == null)
     {
         MethodDefImpl method = new MethodDefImpl(this, owner ?? FindMethodOwner(index), index);
         methods[index] = method.IsConstructor ? new ConstructorInfoImpl(method) : (MethodBase)method;
     }
     return(methods[index]);
 }
Esempio n. 2
0
 internal MethodBase GetMethodAt(TypeDefImpl owner, int index)
 {
     if (methods == null)
     {
         methods = new MethodBase[MethodDef.records.Length];
     }
     if (methods[index] == null)
     {
         MethodDefImpl method = new MethodDefImpl(this, owner ?? FindMethodOwner(index), index);
         methods[index] = method.IsConstructor ? new ConstructorInfoImpl(method) : (MethodBase)method;
     }
     return methods[index];
 }
Esempio n. 3
0
		internal ParameterInfoImpl(MethodDefImpl method, int position, int index)
		{
			this.method = method;
			this.position = position;
			this.index = index;
		}
Esempio n. 4
0
 internal ParameterInfoImpl(MethodDefImpl method, int position, int index)
 {
     this.method   = method;
     this.position = position;
     this.index    = index;
 }