Show / Hide Table of Contents

Class StringExtensions

Inheritance
object
StringExtensions
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: SlipeServer.Server.Extensions
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
Type Description
bool
| 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
Type Description
bool
| Edit this page View Source

IsValidSerial(string)

Checks if string is valid serial. See official documentation

Declaration
public static bool IsValidSerial(this string value)
Parameters
Type Name Description
string value
Returns
Type Description
bool
| 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
Type Description
string
In this article
Back to top Generated by DocFX