C# Класс Myre.Extensions.StringExtensions

A static class containing extension methods for the System.String class.
Показать файл Открыть проект

Открытые методы

Метод Описание
EndsWith ( this s, char c ) : bool

Checks if the given string ends with the given character

StartsWith ( this s, char c ) : bool

Checks if the given string ends with the given character

TryToBool ( this value, bool &result ) : bool

Tries to convert this string into a bool.

TryToByte ( this value, byte &result ) : bool

Tries to convert this string into a byte.

TryToFloat ( this value, float &result ) : bool

Tries to convert this string into a float.

TryToInt ( this value, int &result ) : bool

Tries to convert this string into an int.

Описание методов

EndsWith() публичный статический Метод

Checks if the given string ends with the given character
public static EndsWith ( this s, char c ) : bool
s this
c char
Результат bool

StartsWith() публичный статический Метод

Checks if the given string ends with the given character
public static StartsWith ( this s, char c ) : bool
s this
c char
Результат bool

TryToBool() публичный статический Метод

Tries to convert this string into a bool.
public static TryToBool ( this value, bool &result ) : bool
value this The string to convert.
result bool The parsed bool.
Результат bool

TryToByte() публичный статический Метод

Tries to convert this string into a byte.
public static TryToByte ( this value, byte &result ) : bool
value this The string to convert.
result byte The parsed byte.
Результат bool

TryToFloat() публичный статический Метод

Tries to convert this string into a float.
public static TryToFloat ( this value, float &result ) : bool
value this The string to convert.
result float The parsed float.
Результат bool

TryToInt() публичный статический Метод

Tries to convert this string into an int.
public static TryToInt ( this value, int &result ) : bool
value this The string to convert.
result int The parsed int.
Результат bool