C# Class Elmah.StringFormatter

Helper class for formatting templated strings with supplied replacements.
ファイルを表示 Open project: elmah/Elmah Class Usage Examples

Public Properties

Property Type Description
DefaultTokenBinder StringFormatTokenBindingHandler

Public Methods

Method Description
BindFormatToken ( string token, object args, IFormatProvider provider ) : string
Format ( string format ) : string

Replaces each format item in a specified string with the text equivalent of a corresponding object's value.

Format ( string format, IFormatProvider provider ) : string
Format ( string format, IFormatProvider provider, StringFormatTokenBindingHandler binder ) : string
Format ( string format, StringFormatTokenBindingHandler binder ) : string
TryParseUnsignedInteger ( string str ) : int

Private Methods

Method Description
FormatImpl ( string format, IFormatProvider provider, StringFormatTokenBindingHandler binder ) : string

Method Details

BindFormatToken() public static method

public static BindFormatToken ( string token, object args, IFormatProvider provider ) : string
token string
args object
provider IFormatProvider
return string

Format() public static method

Replaces each format item in a specified string with the text equivalent of a corresponding object's value.
public static Format ( string format ) : string
format string
return string

Format() public static method

public static Format ( string format, IFormatProvider provider ) : string
format string
provider IFormatProvider
return string

Format() public static method

public static Format ( string format, IFormatProvider provider, StringFormatTokenBindingHandler binder ) : string
format string
provider IFormatProvider
binder StringFormatTokenBindingHandler
return string

Format() public static method

public static Format ( string format, StringFormatTokenBindingHandler binder ) : string
format string
binder StringFormatTokenBindingHandler
return string

TryParseUnsignedInteger() public static method

public static TryParseUnsignedInteger ( string str ) : int
str string
return int

Property Details

DefaultTokenBinder public_oe static_oe property

public static StringFormatTokenBindingHandler DefaultTokenBinder
return StringFormatTokenBindingHandler