Beispiel #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]);
 }
Beispiel #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];
 }
Beispiel #3
0
		internal ParameterInfoImpl(MethodDefImpl method, int position, int index)
		{
			this.method = method;
			this.position = position;
			this.index = index;
		}
Beispiel #4
0
 internal ParameterInfoImpl(MethodDefImpl method, int position, int index)
 {
     this.method   = method;
     this.position = position;
     this.index    = index;
 }