Class DictionarySource
Provides the ability to extract an object with a matching Key from an IDictionary or IDictionary<string, object>.
Namespace: UnityEngine.Localization.SmartFormat.Extensions
Syntax
[Serializable]
public class DictionarySource : ISource
Constructors
DictionarySource(SmartFormatter)
Creates a new instance of the formatter.
Declaration
public DictionarySource(SmartFormatter formatter)
Parameters
Type | Name | Description |
---|---|---|
SmartFormatter | formatter | The formatter that the source will be added to. |
Methods
TryEvaluateSelector(ISelectorInfo)
Evaluates the ISelectorInfo based on the CurrentValue. If this extension cannot evaluate the Selector, returns False. Otherwise, sets the Result and returns true.
Declaration
public bool TryEvaluateSelector(ISelectorInfo selectorInfo)
Parameters
Type | Name | Description |
---|---|---|
ISelectorInfo | selectorInfo |
Returns
Type | Description |
---|---|
Boolean |