Class StringExtensions
Defines a collection of extensions for
Inheritance
System.Object
StringExtensions
Namespace: Legerity.Extensions
Assembly: Legerity.Core.dll
Syntax
public static class StringExtensions : object
Methods
| Improve this Doc View SourceContains(String, String, CultureInfo, CompareOptions)
Determines whether the specified value contains the comparison value by the specified culture and comparison option.
Declaration
public static bool Contains(this string value, string contains, CultureInfo culture, CompareOptions compareOption)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | The value to check contains the |
System.String | contains | The value that should be contained within the |
CultureInfo | culture | The culture for comparison. |
CompareOptions | compareOption | The comparison option. |
Returns
Type | Description |
---|---|
System.Boolean | True if the |
RemoveUnicodeCharacters(String)
Removes unicode characters from the specified string.
Declaration
public static string RemoveUnicodeCharacters(this string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | The string to remove unicode characters from. |
Returns
Type | Description |
---|---|
System.String | The string with unicode characters removed. |