C# Class Regextra.Template

Exibir arquivo Open project: amageed/Regextra

Public Methods

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

Private Methods

Method 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 method

public static Format ( string template, object item, IFormatProvider provider = null ) : string
template string
item object
provider IFormatProvider
return string

FormatTemplate() public static method

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