C# 클래스 TOSExpViewer.Core.Extensions

파일 보기 프로젝트 열기: Excrulon/Tree-of-Savior-Experience-Viewer

공개 메소드들

메소드 설명
IsEqualTo ( this original, string value, System.StringComparison stringComparison = StringComparison.OrdinalIgnoreCase ) : bool
ReverseFriendlyString ( this friendlyStringValue ) : string
ToFriendlyString ( this pascalCaseValue ) : string

Returns spaced output for a Pascal cased string value "SomePascalCaseString" returns as "Some Pascal Case String"

ToShortDisplayFormat ( this timeSpan ) : string

Formats a timespan into a shortened output showing hours & minutes, minutes or seconds.

메소드 상세

IsEqualTo() 공개 정적인 메소드

public static IsEqualTo ( this original, string value, System.StringComparison stringComparison = StringComparison.OrdinalIgnoreCase ) : bool
original this
value string
stringComparison System.StringComparison
리턴 bool

ReverseFriendlyString() 공개 정적인 메소드

public static ReverseFriendlyString ( this friendlyStringValue ) : string
friendlyStringValue this
리턴 string

ToFriendlyString() 공개 정적인 메소드

Returns spaced output for a Pascal cased string value "SomePascalCaseString" returns as "Some Pascal Case String"
public static ToFriendlyString ( this pascalCaseValue ) : string
pascalCaseValue this A string in Pascal case format
리턴 string

ToShortDisplayFormat() 공개 정적인 메소드

Formats a timespan into a shortened output showing hours & minutes, minutes or seconds.
public static ToShortDisplayFormat ( this timeSpan ) : string
timeSpan this
리턴 string