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