Class TextP
A TextP is a predicate of the form Func<string, bool>. That is, given some string, return true or false.
public class TextP : P, IPredicate
- Inheritance
-
TextP
- Implements
- Inherited Members
Constructors
TextP(string, string, P?)
Initializes a new instance of the TextP class.
public TextP(string operatorName, string value, P? other = null)
Parameters
operatorName
stringThe name of the predicate.
value
stringThe value of the predicate.
other
PAn optional other predicate that is used as an argument for this predicate.
Methods
Containing(string)
public static TextP Containing(string value)
Parameters
value
string
Returns
EndingWith(string)
public static TextP EndingWith(string value)
Parameters
value
string
Returns
NotContaining(string)
public static TextP NotContaining(string value)
Parameters
value
string
Returns
NotEndingWith(string)
public static TextP NotEndingWith(string value)
Parameters
value
string
Returns
NotRegex(string)
public static TextP NotRegex(string value)
Parameters
value
string
Returns
NotStartingWith(string)
public static TextP NotStartingWith(string value)
Parameters
value
string
Returns
Regex(string)
public static TextP Regex(string value)
Parameters
value
string
Returns
StartingWith(string)
public static TextP StartingWith(string value)
Parameters
value
string
Returns
ToString()
public override string ToString()