Skip to main content

JsonAltaFormat<T>

A class in Root.Township, Alta.Utilities.

IAltaFileFormat that stores one object as JSON, using AltaContractResolver.settings.

Constructors​

MemberWhat it is
JsonAltaFormat()Creates a JsonAltaFormat with default values.

Properties​

MemberWhat it is
T Data { get; set; }The object stored in the file.

Methods​

MemberWhat 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.