IWriter

References
public interface IWriter
This interface is implemented by Node and provides ways to store the standard data types.

Properties

Name

#
Gets the name of this writer.
Name Name { get; }

Methods

AddItem

#
Add a new entry to this writer. Entry location must be unique.
void AddItem(
entry
Entry to add.
)

AddNode

#
Copy an existing node and add it to this node.
void AddNode(
node
Node to add.
)

Boolean

#
Write a Boolean value.
void Boolean(
name,
Location of entry.
value
Value of entry.
)
InvalidOperationExceptionThrown if another item with the same name already exists.

BooleanArray

#
Write an array of booleans.
void BooleanArray(
name,
Location of entry.
params bool[]
value
Value of entry.
)
InvalidOperationExceptionThrown if another item with the same name already exists.

Complex128

#
Write a System.Numerics.Complex number value.
void Complex128(
name,
Location of entry.
value
Value of entry.
)
InvalidOperationExceptionThrown if another item with the same name already exists.

CreateWriter

#
Create a new writer and slave it to this writer.
IWriter CreateWriter(
name
Location of writer.
)
A new writer instance that is part of this writer.

DateTime

#
Write a DateTime value.
void DateTime(
name,
Location of entry.
DateTime
value
Value of entry.
)
InvalidOperationExceptionThrown if another item with the same name already exists.

Decimal128

#
Write a System.Decimal value.
void Decimal128(
name,
Location of entry.
value
Value of entry.
)
InvalidOperationExceptionThrown if another item with the same name already exists.

FilePath

#
Write a File path value.
void FilePath(
name,
Location of entry.
value
Value of entry.
)
InvalidOperationExceptionThrown if another item with the same name already exists.

FilePath

#
Write a File path value based on an absolute path. If the archive location has been set, a relative path will be included from the archive to the absolute path.
void FilePath(
name,
Location of entry.
absolutePath
Value of entry.
)
InvalidOperationExceptionThrown if another item with the same name already exists.

GenericArray<T>

#
Store an array of values. This method only works if SupportsArray<T>() returns true for the same type constraint.
void GenericArray<T>(
name,
Location of entry.
T[]
array
Values to store.
)

Guid128

#
Write a Guid value.
void Guid128(
name,
Location of entry.
value
Value of entry.
)
InvalidOperationExceptionThrown if another item with the same name already exists.

GuidArray

#
Write an array of guids.
void GuidArray(
name,
Location of entry.
params Guid[]
value
Value of entry.
)
InvalidOperationExceptionThrown if another item with the same name already exists.

Integer32

#
Write a 32-bit Integer value.
void Integer32(
name,
Location of entry.
value
Value of entry.
)
InvalidOperationExceptionThrown if another item with the same name already exists.

Integer32Array

#
Write an array of 32-bit integers.
void Integer32Array(
name,
Location of entry.
params int[]
value
Value of entry.
)
InvalidOperationExceptionThrown if another item with the same name already exists.

Integer64

#
Write a 64-bit Integer value.
void Integer64(
name,
Location of entry.
value
Value of entry.
)
InvalidOperationExceptionThrown if another item with the same name already exists.

Integer64Array

#
Write an array of 64-bit integers.
void Integer64Array(
name,
Location of entry.
params long[]
value
Value of entry.
)
InvalidOperationExceptionThrown if another item with the same name already exists.

Integer8

#
Write a Byte value.
void Integer8(
name,
Location of entry.
value
Value of entry.
)
InvalidOperationExceptionThrown if another item with the same name already exists.

Integer8Array

#
Write an array of bytes.
void Integer8Array(
name,
Location of entry.
params byte[]
value
Value of entry.
)
InvalidOperationExceptionThrown if another item with the same name already exists.

IntegerXx

#
Write a System.Numerics.BigInteger value.
void IntegerXx(
name,
Location of entry.
value
Value of entry.
)
InvalidOperationExceptionThrown if another item with the same name already exists.

Number32

#
Write a System.Single value.
void Number32(
name,
Location of entry.
value
Value of entry.
)
InvalidOperationExceptionThrown if another item with the same name already exists.

Number32Array

#
Write an array of floats.
void Number32Array(
name,
Location of entry.
params float[]
value
Value of entry.
)
InvalidOperationExceptionThrown if another item with the same name already exists.

Number64

#
Write a System.Double value.
void Number64(
name,
Location of entry.
value
Value of entry.
)
InvalidOperationExceptionThrown if another item with the same name already exists.

Number64Array

#
Write an array of doubles.
void Number64Array(
name,
Location of entry.
params double[]
value
Value of entry.
)
InvalidOperationExceptionThrown if another item with the same name already exists.

Storable

#
Write an object which implements IStorable to the archive. Always use this method instead of calling the Store() method on the object itself.
void Storable(
name,
Inner location for data. If null, the current writer will be used.
value
Value to store.
)

StorableArray<T>

#
Write a collection of objects which implement the IStorable interface.
void StorableArray<T>(
name,
storableValues
)

String

#
Write a String value.
void String(
name,
Location of entry.
value
Value of entry.
)
InvalidOperationExceptionThrown if another item with the same name already exists.

StringArray

#
Write an array of strings.
void StringArray(
name,
Location of entry.
params string[]
value
Value of entry.
)
InvalidOperationExceptionThrown if another item with the same name already exists.

SupportsArray<T>

#
Gets whether an array of type T can be automatically stored.
bool SupportsArray<T>()
True if an array of type T can be automatically and efficiently stored.

TimeSpan

#
Write a TimeSpan value.
void TimeSpan(
name,
Location of entry.
TimeSpan
value
Value of entry.
)
InvalidOperationExceptionThrown if another item with the same name already exists.

Type

#
Write type value.
void Type(
name,
Type
type
)

Version

#
Write a Version value.
void Version(
name,
Location of entry.
Version
value
Value of entry.
)
InvalidOperationExceptionThrown if another item with the same name already exists.