A class in Root.Township, Alta.Utilities.
IAltaFileFormat that stores one object as JSON, using AltaContractResolver.settings.
Constructors
| Member | What it is |
|---|
JsonAltaFormat() | Creates a JsonAltaFormat with default values. |
Properties
| Member | What it is |
|---|
T Data { get; set; } | The object stored in the file. |
Methods
| Member | What it is |
|---|
override IAltaFileFormat Clone() | Returns a copy with Data cloned through ICloneable. |
override void ReadFrom(FileInfo info, Stream stream) | Deserialises the stream into Data, or fills the existing Data in place if there is one. |
override void WriteTo(Stream stream, CancellationToken token) | Writes Data to the stream as JSON. |