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

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

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