C# Class Regextra.Template

Afficher le fichier Open project: amageed/Regextra

Méthodes publiques

Méthode Description
Format ( string template, object item, IFormatProvider provider = null ) : string
FormatTemplate ( this template, object item, IFormatProvider provider = null ) : string

Private Methods

Méthode Description
FormatEscapedToken ( string token ) : string
FormatOddBalancedToken ( Match m, string property ) : string
FormatPartiallyDelimitedToken ( Match m, Func propertyValue ) : string
FormatProperty ( object item, Match m, IFormatProvider provider ) : string
GetFailedPropertyChain ( string properties, int index ) : string>.Tuple
GetMatchPropertyValue ( object item, Match m, IFormatProvider provider ) : string
GetNestedPropertyValue ( object item, Match m, IFormatProvider provider ) : string
GetPropertyValue ( object item, string property ) : object
GetSinglePropertyValue ( object item, Match m, IFormatProvider provider ) : string
IsBalancedDelimiterCountEven ( Match m ) : bool
IsBalancedDelimiterCountOdd ( Match m ) : bool
IsPartiallyDelimited ( Match m ) : bool
TrimPartialDelimiters ( bool isOddPair, char delimiterChar, int length ) : string

Method Details

Format() public static méthode

public static Format ( string template, object item, IFormatProvider provider = null ) : string
template string
item object
provider IFormatProvider
Résultat string

FormatTemplate() public static méthode

public static FormatTemplate ( this template, object item, IFormatProvider provider = null ) : string
template this
item object
provider IFormatProvider
Résultat string