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