C# 클래스 Monobjc.Tools.Generator.Utilities.Extensions

Extensions methods.
파일 보기 프로젝트 열기: Monobjc/monobjc-tools

공개 메소드들

메소드 설명
AppendLineFormat ( this builder, int level, String format ) : void

Appends the line using the format and the parameters.

Contains ( this attribute, String str ) : bool

Checks if the attribute contains the given value.

EscapeAll ( this str ) : String

Escape special characters in the given string.

IsGreaterThan ( this version1, System.Version version2 ) : bool

Check if a version is greater than the other.

IsLowerThan ( this version1, System.Version version2 ) : bool

Check if a version is lower than the other.

IsOlderThan ( this fileName1, String fileName2 ) : bool

Check if a filename is older than the other.

IsYoungerThan ( this fileName1, String fileName2 ) : bool

Check if a filename is younger than the other.

TrimAll ( this str ) : String

Trims all the leading and tailing spaces, as well as the the CR-LF characters.

TrimSpaces ( this element ) : String

Trims all the leading and tailing spaces, as well as double space characters.

UpperCaseFirstLetter ( this str ) : String

Uppers the case of the first letter.

WriteLineFormat ( this writer, int level, String format ) : void

Writes the line using the format and the paramters.

메소드 상세

AppendLineFormat() 공개 정적인 메소드

Appends the line using the format and the parameters.
public static AppendLineFormat ( this builder, int level, String format ) : void
builder this The builder.
level int The level.
format String The format.
리턴 void

Contains() 공개 정적인 메소드

Checks if the attribute contains the given value.
public static Contains ( this attribute, String str ) : bool
attribute this
str String
리턴 bool

EscapeAll() 공개 정적인 메소드

Escape special characters in the given string.
public static EscapeAll ( this str ) : String
str this The string to escape.
리턴 String

IsGreaterThan() 공개 정적인 메소드

Check if a version is greater than the other.
public static IsGreaterThan ( this version1, System.Version version2 ) : bool
version1 this
version2 System.Version
리턴 bool

IsLowerThan() 공개 정적인 메소드

Check if a version is lower than the other.
public static IsLowerThan ( this version1, System.Version version2 ) : bool
version1 this
version2 System.Version
리턴 bool

IsOlderThan() 공개 정적인 메소드

Check if a filename is older than the other.
public static IsOlderThan ( this fileName1, String fileName2 ) : bool
fileName1 this
fileName2 String
리턴 bool

IsYoungerThan() 공개 정적인 메소드

Check if a filename is younger than the other.
public static IsYoungerThan ( this fileName1, String fileName2 ) : bool
fileName1 this
fileName2 String
리턴 bool

TrimAll() 공개 정적인 메소드

Trims all the leading and tailing spaces, as well as the the CR-LF characters.
public static TrimAll ( this str ) : String
str this The string.
리턴 String

TrimSpaces() 공개 정적인 메소드

Trims all the leading and tailing spaces, as well as double space characters.
public static TrimSpaces ( this element ) : String
element this The element.
리턴 String

UpperCaseFirstLetter() 공개 정적인 메소드

Uppers the case of the first letter.
public static UpperCaseFirstLetter ( this str ) : String
str this The string.
리턴 String

WriteLineFormat() 공개 정적인 메소드

Writes the line using the format and the paramters.
public static WriteLineFormat ( this writer, int level, String format ) : void
writer this The writer.
level int The level.
format String The format.
리턴 void