Method | Description | |
---|---|---|
AsSecureString ( this value ) : |
||
AsString ( this value ) : string | ||
Inject ( this formatString, |
Extension method that replaces keys in a string with the values of matching hashtable entries.
|
|
Inject ( this formatString, IDictionary dictionary ) : string |
Extension method that replaces keys in a string with the values of matching dictionary entries.
|
|
Inject ( this formatString, object injectionObject ) : string |
Extension method that replaces keys in a string with the values of matching object properties.
|
|
InjectSingleValue ( this formatString, string key, object replacementValue ) : 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.
|
|
ToDelimitedString ( this |
Method | Description | |
---|---|---|
GetPropertyHash ( object properties ) : |
Creates a HashTable based on current object state.
|
public static AsSecureString ( this value ) : |
||
value | this | |
return |
public static AsString ( this value ) : string | ||
value | this | |
return | string |
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, 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, 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 InjectSingleValue ( this formatString, string key, object replacementValue ) : 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 |
return | string |
public static ToDelimitedString ( this |
||
value | this |
|
delimiter | string | |
return | string |