Swiss Army Knife
General utility tools for Scada Minds
Static Public Member Functions | List of all members
StringExtensions Class Reference

Collection of string-related extension methods. More...

Static Public Member Functions

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...
 

Detailed Description

Collection of string-related extension methods.

Member Function Documentation

◆ 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: