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
sstringThe value to test.
valuesIEnumerable<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
sstringThe value to test.
valuesStringOrRegularExpression[]The values to test against.
Returns
- bool
True if s is not present in values.