Class StringExtensions
Inheritance
StringExtensions
Assembly: SlipeServer.Server.dll
Syntax
public static class StringExtensions
Methods
|
Edit this page
View Source
ContainsColorCode(string)
Checks if string contain color code
Declaration
public static bool ContainsColorCode(this string value)
Parameters
Type |
Name |
Description |
string |
value |
|
Returns
|
Edit this page
View Source
IsValidNickName(string)
Checks if string is valid nickname. Only ASCII characters between 33 and 126 are allowed (basic latin, no spaces) and length between 1 and 22
See official documentation
Declaration
public static bool IsValidNickName(this string value)
Parameters
Type |
Name |
Description |
string |
value |
|
Returns
|
Edit this page
View Source
IsValidSerial(string)
Declaration
public static bool IsValidSerial(this string value)
Parameters
Type |
Name |
Description |
string |
value |
|
Returns
|
Edit this page
View Source
StripColorCode(string)
Removes color codes from a string
Declaration
public static string StripColorCode(this string value)
Parameters
Type |
Name |
Description |
string |
value |
|
Returns