C# 클래스 Myre.Extensions.StringExtensions

A static class containing extension methods for the System.String class.
파일 보기 프로젝트 열기: martindevans/Myre

공개 메소드들

메소드 설명
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