Class StringExtensions
Represents the string extensions.
Namespace: Platform.Collections
Assembly: Platform.Collections.dll
Syntax
public static class StringExtensions : object
Methods
| Improve this Doc View SourceCapitalizeFirstLetter(String)
Capitalizes the first letter using the specified string.
Declaration
public static string CapitalizeFirstLetter(this string string)
Parameters
| Type | Name | Description |
|---|---|---|
| String | string |
Returns
| Type | Description |
|---|---|
| String | The string.
|
TrimSingle(String, Char)
Trims the single using the specified string.
Declaration
public static string TrimSingle(this string string, char charToTrim)
Parameters
| Type | Name | Description |
|---|---|---|
| String | string | |
| Char | charToTrim | The char to trim.
|
Returns
| Type | Description |
|---|---|
| String | The string
|
Truncate(String, Int32)
Truncates the string.
Declaration
public static string Truncate(this string string, int maxLength)
Parameters
| Type | Name | Description |
|---|---|---|
| String | string | |
| Int32 | maxLength | The max length.
|
Returns
| Type | Description |
|---|---|
| String | The string
|