Method | Description | |
---|---|---|
Inject ( this formatString, |
Replaces keys in a string with the values of matching hashtable entries using the CurrentCulture for formatting.
|
|
Inject ( this formatString, |
Replaces keys in a string with the values of matching hashtable entries using the specified format provider.
|
|
Inject ( this formatString, IDictionary dictionary ) : string |
Replaces keys in a string with the values of matching dictionary entries using the CurrentCulture for formatting.
|
|
Inject ( this formatString, IDictionary dictionary, IFormatProvider formatProvider ) : string |
Replaces keys in a string with the values of matching dictionary entries using the specified format provider
|
|
Inject ( this formatString, object injectionObject ) : string |
Replaces keys in a string with the values of matching object properties using the CurrentCulture for formatting.
|
|
Inject ( this formatString, object injectionObject, IFormatProvider formatProvider ) : string |
Replaces keys in a string with the values of matching object properties using the specified format provider
|
|
InjectSingleValue ( this formatString, string key, object replacementValue, IFormatProvider formatProvider ) : string |
Replaces all instances of a 'key' (e.g. {foo} or {foo:SomeFormat}) in a string with an optionally formatted value, and returns the result.
|
Method | Description | |
---|---|---|
GetPropertyHash ( object properties ) : |
Creates a HashTable based on current object state.
|
public static Inject ( this formatString, |
||
formatString | this | The format string, containing keys like {foo} and {foo:SomeFormat}. |
attributes | A |
|
return | string |
public static Inject ( this formatString, |
||
formatString | this | The format string, containing keys like {foo} and {foo:SomeFormat}. |
attributes | A |
|
formatProvider | IFormatProvider | |
return | string |
public static Inject ( this formatString, IDictionary dictionary ) : string | ||
formatString | this | The format string, containing keys like {foo} and {foo:SomeFormat}. |
dictionary | IDictionary | An |
return | string |
public static Inject ( this formatString, IDictionary dictionary, IFormatProvider formatProvider ) : string | ||
formatString | this | The format string, containing keys like {foo} and {foo:SomeFormat}. |
dictionary | IDictionary | An |
formatProvider | IFormatProvider | |
return | string |
public static Inject ( this formatString, object injectionObject ) : string | ||
formatString | this | The format string, containing keys like {foo} and {foo:SomeFormat}. |
injectionObject | object | The object whose properties should be injected in the string |
return | string |
public static Inject ( this formatString, object injectionObject, IFormatProvider formatProvider ) : string | ||
formatString | this | The format string, containing keys like {foo} and {foo:SomeFormat}. |
injectionObject | object | The object whose properties should be injected in the string |
formatProvider | IFormatProvider | Format provider used for default formatting |
return | string |
public static InjectSingleValue ( this formatString, string key, object replacementValue, IFormatProvider formatProvider ) : string | ||
formatString | this | The string containing the key; unformatted ({foo}), or formatted ({foo:SomeFormat}) |
key | string | The key name (foo) |
replacementValue | object | The replacement value; if null is replaced with an empty string |
formatProvider | IFormatProvider | |
return | string |