C# 클래스 CCNet.Build.Common.Extensions

Some extension methods.
파일 보기 프로젝트 열기: shuruev/CCNet.Extensions

공개 메소드들

메소드 설명
AsciiOnly ( this text ) : string

Filters out ASCII characters only, including some other specified characters.

CleanWhitespaces ( this text ) : string

Converts all whitespace characters to spaces and removes double whitespaces.

CreateDirectoryIfNotExists ( this path ) : void

Creates directory if it does not exist.

RemoveFromEnd ( this originalText, string textToRemove ) : string

Removes specified text from the ending of the original string.

RemoveFromStart ( this originalText, string textToRemove ) : string

Removes specified text from the beginning of the original string.

ToDetailedString ( this dateTime ) : string

Gets detailed date/time description in two time zones.

메소드 상세

AsciiOnly() 공개 정적인 메소드

Filters out ASCII characters only, including some other specified characters.
public static AsciiOnly ( this text ) : string
text this
리턴 string

CleanWhitespaces() 공개 정적인 메소드

Converts all whitespace characters to spaces and removes double whitespaces.
public static CleanWhitespaces ( this text ) : string
text this
리턴 string

CreateDirectoryIfNotExists() 공개 정적인 메소드

Creates directory if it does not exist.
public static CreateDirectoryIfNotExists ( this path ) : void
path this
리턴 void

RemoveFromEnd() 공개 정적인 메소드

Removes specified text from the ending of the original string.
public static RemoveFromEnd ( this originalText, string textToRemove ) : string
originalText this
textToRemove string
리턴 string

RemoveFromStart() 공개 정적인 메소드

Removes specified text from the beginning of the original string.
public static RemoveFromStart ( this originalText, string textToRemove ) : string
originalText this
textToRemove string
리턴 string

ToDetailedString() 공개 정적인 메소드

Gets detailed date/time description in two time zones.
public static ToDetailedString ( this dateTime ) : string
dateTime this
리턴 string