C# Класс Monobjc.Tools.Generator.Utilities.Extensions

Extensions methods.
Показать файл Открыть проект

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

Метод Описание
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