Пример #1
0
        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));
        }
Пример #2
0
 public TypeReference ResolveParameterType(MethodReference method, ParameterReference parameter)
 {
     return(Resolve(GenericParameterResolver.ResolveParameterTypeIfNeeded(method, parameter)));
 }