InsertExtension
Adds the ISource extensions at the position of the SmartFormatter.GetSourceExtensions list of this formatter, if the Type has not been added before. If the extension implements IInitializer, IInitializer.Initialize will be invoked.
Read time 1 minuteLast updated 13 days ago
Definition
- Type: Method
- Namespace: Unity.SmartStrings
- Assembly: UnityEngine.SmartStringsModule
InsertExtension(int, ISource)
Adds the ISource extensions at the of the SmartFormatter.GetSourceExtensions list of this formatter, if the Type has not been added before. If the extension implements IInitializer, IInitializer.Initialize will be invoked.
positionpublic SmartFormatter InsertExtension(int position, ISource sourceExtension)
Parameters
Returns
Type | Description |
|---|---|
| SmartFormatter | This SmartFormatter instance. |
InsertExtension(int, IFormatter)
Adds the IFormatter extension at the of the SmartFormatter.GetFormatterExtensions list of this formatter, if the Type has not been added before. If the extension implements IInitializer, IInitializer.Initialize will be invoked.
positionpublic SmartFormatter InsertExtension(int position, IFormatter formatterExtension)
Parameters
The position in the formatter extensions list where the new extension is added.
Formatter extension to insert.
Returns
Type | Description |
|---|---|
| SmartFormatter | This SmartFormatter instance. |