コード例 #1
0
        public bool ConditionallyRegisterConstrainedSubstitutionType(ITypeParameterSymbol typeParameter, ITypeSymbol type, bool evaluateAsBase)
        {
            bool invalid = !typeParameter.IsValidTypeArgumentSubstitution(type, evaluateAsBase);

            if (invalid)
            {
                ConstrainedTypeArgumentSubstitutionTypes.Add(type);
            }
            return(invalid);
        }