C# Class Yea.DataTypes.Formatters.GenericStringFormatter

Generic string formatter
Inheritance: IFormatProvider, ICustomFormatter, IStringFormatter
Afficher le fichier Open project: OxPatient/Rule-Engine

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
GetMatchingInput ( string input, char formatChar, char &matchChar ) : string

Gets matching input

IsValid ( string formatPattern ) : bool

Checks if the format pattern is valid

Method Details

Format() public méthode

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
Résultat string

Format() public méthode

Formats the string based on the pattern
public Format ( string input, string formatPattern ) : string
input string Input string
formatPattern string Format pattern
Résultat string

GenericStringFormatter() public méthode

Constructor
public GenericStringFormatter ( ) : System
Résultat System

GetFormat() public méthode

Gets the format associated with the type
public GetFormat ( Type formatType ) : object
formatType System.Type Format type
Résultat object