internal static TypeReference ResolveParameterTypeIfNeeded(MethodReference method, ParameterReference parameter) { GenericInstanceMethod genericInstanceMethod = method as GenericInstanceMethod; GenericInstanceType declaringGenericInstanceType = method.DeclaringType as GenericInstanceType; if (genericInstanceMethod == null && declaringGenericInstanceType == null) { return(parameter.ParameterType); } return(ResolveIfNeeded(genericInstanceMethod, declaringGenericInstanceType, parameter.ParameterType)); }
public TypeReference ResolveParameterType(MethodReference method, ParameterReference parameter) { return(Resolve(GenericParameterResolver.ResolveParameterTypeIfNeeded(method, parameter))); }