/// <summary> /// Selects types whose names do not end with the specified text. /// </summary> /// <param name="end">The text to match against.</param> /// <param name="comparer">The string comparer.</param> /// <returns>An updated set of predicates that can be applied to a list of types.</returns> public PredicateList DoNotHaveNameEndingWith(string end, StringComparison comparer) { _sequence.AddFunctionCall(FunctionDelegates.MakeFunctionDelegateUsingStringComparerForHaveNameEndingWith(comparer), end, false); return(new PredicateList(_types, _sequence)); }
/// <summary> /// Selects types whose names do not end with the specified text. /// </summary> /// <param name="end">The text to match against.</param> /// <param name="comparer">The string comparer.</param> /// <returns>An updated set of conditions that can be applied to a list of types.</returns> public ConditionList HaveNameEndingWith(string end, StringComparison comparer) { _sequence.AddFunctionCall(FunctionDelegates.MakeFunctionDelegateUsingStringComparerForHaveNameEndingWith(comparer), end, true); return(new ConditionList(_types, _should, _sequence)); }
/// <summary> /// Selects types whose names start with the specified text. /// </summary> /// <param name="start">The text to match against.</param> /// <param name="comparer">The string comparer.</param> /// <returns>An updated set of predicates that can be applied to a list of types.</returns> public PredicateList HaveNameStartingWith(string start, StringComparison comparer) { _sequence.AddFunctionCall(FunctionDelegates.MakeFunctionDelegateUsingStringComparerForHaveNameStartingWith(comparer), start, true); return(new PredicateList(_types, _sequence)); }
/// <summary> /// Selects types whose names do not start with the specified text. /// </summary> /// <param name="start">The text to match against.</param> /// <param name="comparer">The string comparer.</param> /// <returns>An updated set of conditions that can be applied to a list of types.</returns> public ConditionList NotHaveNameStartingWith(string start, StringComparison comparer) { _sequence.AddFunctionCall(FunctionDelegates.MakeFunctionDelegateUsingStringComparerForHaveNameStartingWith(comparer), start, false); return(new ConditionList(_types, _should, _sequence)); }