Collection of string-related extension methods.
More...
|
static string | Repeat (this string @this, int timesToRepeat) |
| Repeat a string n times. Based on this. More...
|
|
static string | Truncate (this string @this, int maxLength) |
| Truncate a string to a maximum of maxLength characters. If the string is truncated, "..." is appended to it afterwards. More...
|
|
static bool | IsSet (this string @this) |
| Checks if the string has been set, i.e it is not null or an empty string. More...
|
|
Collection of string-related extension methods.
◆ IsSet()
static bool IsSet |
( |
this string @ |
this | ) |
|
|
inlinestatic |
Checks if the string has been set, i.e it is not null or an empty string.
- Returns
- Returns true if this is not null or an empty string.
◆ Repeat()
static string Repeat |
( |
this string @ |
this, |
|
|
int |
timesToRepeat |
|
) |
| |
|
inlinestatic |
Repeat a string n times. Based on this.
◆ Truncate()
static string Truncate |
( |
this string @ |
this, |
|
|
int |
maxLength |
|
) |
| |
|
inlinestatic |
Truncate a string to a maximum of maxLength characters. If the string is truncated, "..." is appended to it afterwards.
The documentation for this class was generated from the following file: