C# Класс Yea.DataTypes.Formatters.GenericStringFormatter

Generic string formatter
Наследование: IFormatProvider, ICustomFormatter, IStringFormatter
Показать файл Открыть проект

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

Метод Описание
Format ( string format, object arg, IFormatProvider formatProvider ) : string

Formats the string

Format ( string input, string formatPattern ) : string

Formats the string based on the pattern

GenericStringFormatter ( ) : System

Constructor

GetFormat ( Type formatType ) : object

Gets the format associated with the type

Приватные методы

Метод Описание
GetMatchingInput ( string input, char formatChar, char &matchChar ) : string

Gets matching input

IsValid ( string formatPattern ) : bool

Checks if the format pattern is valid

Описание методов

Format() публичный Метод

Formats the string
public Format ( string format, object arg, IFormatProvider formatProvider ) : string
format string Format to use
arg object Argument object to use
formatProvider IFormatProvider Format provider to use
Результат string

Format() публичный Метод

Formats the string based on the pattern
public Format ( string input, string formatPattern ) : string
input string Input string
formatPattern string Format pattern
Результат string

GenericStringFormatter() публичный Метод

Constructor
public GenericStringFormatter ( ) : System
Результат System

GetFormat() публичный Метод

Gets the format associated with the type
public GetFormat ( Type formatType ) : object
formatType System.Type Format type
Результат object