C# Class Regextra.TemplateBenchmarks.Formatters.TemplateReflection

显示文件 Open project: amageed/Regextra

Public Methods

Method Description
Format ( string template, object item ) : string
TemplateFormat ( this template, object item ) : 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, PropertyInfo propertyInfo ) : string
GetFailedPropertyChain ( string properties, int index ) : string>.Tuple
GetNestedPropertyValue ( object item, Match m ) : string
GetPropertyValue ( object item, Match m ) : string
GetSinglePropertyValue ( object item, Match m ) : 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 ) : string
template string
item object
return string

TemplateFormat() public static method

public static TemplateFormat ( this template, object item ) : string
template this
item object
return string