Interface ISelectorInfo
Contains all the necessary information for evaluating a selector.
Namespace: UnityEngine.Localization.SmartFormat.Core.Extensions
Syntax
public interface ISelectorInfo
Examples
When evaluating "{Items.Length}", the CurrentValue might be Items, and the Selector would be "Length". The job of an ISource is to set CurrentValue to Items.Length.
Properties
CurrentValue
The current value to evaluate.
Declaration
object CurrentValue { get; }
Property Value
| Type | Description |
|---|---|
| Object |
FormatDetails
Infrequently used details, often used for debugging
Declaration
FormatDetails FormatDetails { get; }
Property Value
| Type | Description |
|---|---|
| UnityEngine.Localization.SmartFormat.Core.Formatting.FormatDetails |
Placeholder
Contains all the details about the current placeholder.
Declaration
Placeholder Placeholder { get; }
Property Value
| Type | Description |
|---|---|
| UnityEngine.Localization.SmartFormat.Core.Parsing.Placeholder |
Result
Sets the result of evaluating the selector.
Declaration
object Result { get; set; }
Property Value
| Type | Description |
|---|---|
| Object |
SelectorIndex
The index of the selector in a multi-part selector. Example: {Person.Birthday.Year} has 3 seletors, and Year has a SelectorIndex of 2.
Declaration
int SelectorIndex { get; }
Property Value
| Type | Description |
|---|---|
| Int32 |
SelectorOperator
The operator that came before the selector; typically "."
Declaration
string SelectorOperator { get; }
Property Value
| Type | Description |
|---|---|
| String |
SelectorText
The selector to evaluate
Declaration
string SelectorText { get; }
Property Value
| Type | Description |
|---|---|
| String |