FormatDetails
Contains extra information about the item currently being formatted. These objects are not often used, so they are all wrapped up here.
Read time 1 minuteLast updated 13 days ago
Definition
- Type: Class
- Namespace: Unity.SmartStrings.Core.Formatting
- Assembly: UnityEngine.SmartStringsModule
public class FormatDetails
Properties
Property | Description |
|---|---|
| Formatter | The original formatter responsible for formatting this item. It can be used for evaluating nested formats. |
| FormattingException | If ErrorAction is set to OutputErrorsInResult, this will contain the exception that caused the formatting error. |
| OriginalArgs | The original set of arguments passed to the format method. These provide global-access to the original arguments. |
| OriginalFormat | The original parsed Format produced by the Parser. |
| Output | The IOutput where the formatting result is written. |
| Provider | The IFormatProvider that can be used to determine how to format items such as numbers, dates, and anything else that might be culture-specific. |
| Settings | Contains case-sensitivity and other settings. |
Methods
Method | Description |
|---|---|
| Initialize | Initializes the FormatDetails instance. |