internal ParameterInfo(ParameterInfo accessor, MethodBuilderInstantiation method) : this(accessor, (MemberInfo) method) { this.m_signature = accessor.m_signature; if (this.ClassImpl.IsGenericParameter) { this.ClassImpl = method.GetGenericArguments()[this.ClassImpl.GenericParameterPosition]; } }
public override MethodInfo MakeGenericMethod(params Type[] typeArgs) { if (!IsGenericMethodDefinition) { throw new InvalidOperationException(SR.Format(SR.Arg_NotGenericMethodDefinition, this)); } return(MethodBuilderInstantiation.MakeGenericMethod(this, typeArgs)); }
public override MethodInfo MakeGenericMethod(params Type[] typeArgs) { if (!IsGenericMethodDefinition) { throw new InvalidOperationException(Environment.GetResourceString("Arg_NotGenericMethodDefinition")); } return(MethodBuilderInstantiation.MakeGenericMethod(this, typeArgs)); }
public override MethodInfo MakeGenericMethod(params Type[] typeArgs) { if (!IsGenericMethodDefinition) { throw new InvalidOperationException(SR.Arg_NotGenericMethodDefinition); } Contract.EndContractBlock(); return(MethodBuilderInstantiation.MakeGenericMethod(this, typeArgs)); }
public override MethodInfo MakeGenericMethod(params Type[] typeArguments) { return(MethodBuilderInstantiation.MakeGenericMethod(this, typeArguments)); }