Class StringExtensions
A set of extensions methods over strings, useable in LINQ queries.
Inherited Members
Namespace:Realms
Assembly:Realm.dll
Syntax
public static class StringExtensions
Methods
| Improve this Doc View SourceContains(String, String, StringComparison)
Returns a value indicating whether a specified substring occurs within this string.
Declaration
public static bool Contains(this string str, string value, StringComparison comparisonType)
Parameters
Type | Name | Description |
---|---|---|
String | str | The original string. |
String | value | The string to seek. |
StringComparison | comparisonType | One of the enumeration values that determines how this string and value are compared. |
Returns
Type | Description |
---|---|
Boolean |
|
Exceptions
Type | Condition |
---|---|
ArgumentNullException | Thrown when |
ArgumentException | Thrown when |