Method StringIn
StringIn(string, IEnumerable<StringOrRegularExpression>)
Returns true if s is present in values (corresponds to the $in filter operator).
public static bool StringIn(this string s, IEnumerable<StringOrRegularExpression> values)
Parameters
sstringThe value to test.
valuesIEnumerable<StringOrRegularExpression>The values to test against.
Returns
- bool
True if s is present in values.
StringIn(string, params StringOrRegularExpression[])
Returns true if s is present in values (corresponds to the $in filter operator).
public static bool StringIn(this string s, params StringOrRegularExpression[] values)
Parameters
sstringThe value to test.
valuesStringOrRegularExpression[]The values to test against.
Returns
- bool
True if s is present in values.