Exemplo n.º 1
0
        private TypeParameterConstraintClause GetTypeParameterConstraintClause()
        {
            var constraintClauses = _owner.GetTypeParameterConstraintClauses();

            return(constraintClauses.IsEmpty ? TypeParameterConstraintClause.Empty : constraintClauses[Ordinal]);
        }
        private TypeParameterConstraintClause GetTypeParameterConstraintClause(bool canIgnoreNullableContext)
        {
            var constraintClauses = _owner.GetTypeParameterConstraintClauses(canIgnoreNullableContext);

            return(constraintClauses.IsEmpty ? TypeParameterConstraintClause.Empty : constraintClauses[Ordinal]);
        }