Microsoft.CSharp.RuntimeBinder.Semantics.MethodTypeInferrer.UpperBoundTypeParameterInference C# (CSharp) Метод

UpperBoundTypeParameterInference() приватный Метод

private UpperBoundTypeParameterInference ( CType pSource, CType pDest ) : bool
pSource CType
pDest CType
Результат bool
        private bool UpperBoundTypeParameterInference(CType pSource, CType pDest)
        {
            // SPEC:  If V is one of the unfixed Xi then U is added to the set of upper bounds
            // SPEC:   for Xi.
            if (pDest.IsTypeParameterType())
            {
                TypeParameterType pTPType = pDest.AsTypeParameterType();
                if (pTPType.IsMethodTypeParameter() && IsUnfixed(pTPType))
                {
                    AddUpperBound(pTPType, pSource);
                    return true;
                }
            }
            return false;
        }