Conversion.ITokenReplacer Interface
Namespace: Nucleus.Abstractions.Conversion
Assembly: Nucleus.Abstractions.dll
Interface for token replacement services that can replace tokens in strings.
Methods
CanReplaceToken
(String) Method
CanReplaceToken (String token)
Returns whether the token specified by token can be replaced by the token replacer.
ListTokens
ListTokens ()
Lists all available tokens that can be replaced. This can be used for on-screen display in editor user interfaces.
ReplaceToken
(String, String, String) Method
ReplaceToken (String token, String format, String defaultValue)
Returns a replacement value for the specified token.
Returns
The returned value may be null - if the
defaultValue is null the return value can be null, and
Conversion.ITokenReplacer implementations may return null for other reasons.