C# 클래스 StringFormat.TokenStringFormat

The primary class for accessing the functionality of the StringFormat library.
파일 보기 프로젝트 열기: little-sharps/string_format

공개 메소드들

메소드 설명
Format ( IFormatProvider provider, string format, object>.IDictionary values ) : string

Formats the string using the placeholder for the property names.

Format ( IFormatProvider provider, string format, object values ) : string

Formats the string using the placeholder for the property names.

Format ( string format, object>.IDictionary values ) : string

Formats the string using the placeholder for the property names.

Format ( string format, object values ) : string

Formats the string using the placeholder for the property names.

TokenizeString ( string format ) : string

Returns the format string with the tokens replaced as ordinals. Exposed for developer benefit. Most likely used only in debugging.

TokenizeString ( string format, IEnumerable &tokens ) : string

Returns the format string with the tokens replaced as ordinals. Exposed for developer benefit. Most likely used only in debugging.

비공개 메소드들

메소드 설명
AnonymousObjectToDictionary ( object values ) : object>.IDictionary
BuildNewToken ( string fullToken, string name, int index ) : string
IndexOfName ( IList names, string name ) : int
ParseName ( string fullToken ) : string

메소드 상세

Format() 공개 정적인 메소드

Formats the string using the placeholder for the property names.
public static Format ( IFormatProvider provider, string format, object>.IDictionary values ) : string
provider IFormatProvider The provider to use for formatting dates and numeric values.
format string The string to format.
values object>.IDictionary The dictionary to pull the values from.
리턴 string

Format() 공개 정적인 메소드

Formats the string using the placeholder for the property names.
public static Format ( IFormatProvider provider, string format, object values ) : string
provider IFormatProvider The provider to use for formatting dates and numeric values.
format string The string to format.
values object The object to pull the values from. Usually an anonymous type.
리턴 string

Format() 공개 정적인 메소드

Formats the string using the placeholder for the property names.
public static Format ( string format, object>.IDictionary values ) : string
format string The string to format.
values object>.IDictionary The dictionary to pull the values from.
리턴 string

Format() 공개 정적인 메소드

Formats the string using the placeholder for the property names.
public static Format ( string format, object values ) : string
format string The string to format.
values object The object to pull the values from. Usually an anonymous type.
리턴 string

TokenizeString() 공개 정적인 메소드

Returns the format string with the tokens replaced as ordinals. Exposed for developer benefit. Most likely used only in debugging.
public static TokenizeString ( string format ) : string
format string The string to format.
리턴 string

TokenizeString() 공개 정적인 메소드

Returns the format string with the tokens replaced as ordinals. Exposed for developer benefit. Most likely used only in debugging.
public static TokenizeString ( string format, IEnumerable &tokens ) : string
format string The string to format.
tokens IEnumerable The tokens that were extracted from the format string.
리턴 string