IReader

References
public interface IReader
Provides access to a subset of Node methods used for writing archives.

Properties

Name

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

Methods

Boolean

#
Read a boolean value.
bool Boolean(
name
Name of item.
)
Boolean value.
KeyNotFoundExceptionThrown when the requested name+index do not exist.

BooleanArray

#
Read a boolean array.
bool[] BooleanArray(
name
Name of item.
)
Boolean array.
KeyNotFoundExceptionThrown when the requested name+index do not exist.

Complex128

#
Read a complex number value.
Complex Complex128(
name
Name of item.
)
Decimal point value.
KeyNotFoundExceptionThrown when the requested name+index do not exist.

DateTime

#
Read a datetime value.
DateTime DateTime(
name
Name of item.
)
Datetime value.
KeyNotFoundExceptionThrown when the requested name+index do not exist.

Decimal128

#
Read a decimal value.
decimal Decimal128(
name
Name of item.
)
Decimal point value.
KeyNotFoundExceptionThrown when the requested name+index do not exist.

FilePath

#
Read a file path value.
AbsRelPaths FilePath(
name
Name of item.
)
File path value.
KeyNotFoundExceptionThrown when the requested name+index do not exist.

FindItem

#
Get the value associatd with the specified name and index.
Value FindItem(
name
Name of value to find.
)
The value linked to the given name and index or null if no such value exists.

FindReader

#
Find the reader sub-object by name and index.
IReader FindReader(
name
Name of reader to find.
)
The reader identified by the name and index or null if no such reader exists.

GenericArray<T>

#
Restore an array of values. This method only works if SupportsArray<T>() returns true for the same type constraint.
T[] GenericArray<T>(
name
Name of item.
)
Restored values.

Guid128

#
Read a Guid value.
Guid Guid128(
name
Name of item.
)
Guid value.
KeyNotFoundExceptionThrown when the requested name+index do not exist.

GuidArray

#
Read a Guid array.
Guid[] GuidArray(
name
Name of item.
)
Guid array.
KeyNotFoundExceptionThrown when the requested name+index do not exist.

HasItem

#
Test whether a certain item exists.
bool HasItem(
name,
Name of item to find.
storageType
Item type constraint.
)
True if such an item exists within this reader.

HasItem

#
Test whether a certain item exists.
bool HasItem(
name
Name of item to find.
)
True if such an item exists within this reader.

HasItemOrNode

#
Gets whether the specified name is available as either an item, or a node.
bool HasItemOrNode(
name
)

HasNode

#
Test whether a certain child node/reader exists.
bool HasNode(
name
Name of node/reader to find.
)
True if node/reader is defined.

Integer32

#
Read an integer value.
int Integer32(
name
Name of item.
)
Integer value.
KeyNotFoundExceptionThrown when the requested name+index do not exist.

Integer32Array

#
Read an integer array.
int[] Integer32Array(
name
Name of item.
)
Integer array.
KeyNotFoundExceptionThrown when the requested name+index do not exist.

Integer64

#
Read an integer value.
long Integer64(
name
Name of item.
)
Integer value.
KeyNotFoundExceptionThrown when the requested name+index do not exist.

Integer64Array

#
Read an integer array.
long[] Integer64Array(
name
Name of item.
)
Integer array.
KeyNotFoundExceptionThrown when the requested name+index do not exist.

Integer8

#
Read a byte value.
byte Integer8(
name
Name of item.
)
Byte value.
KeyNotFoundExceptionThrown when the requested name+index do not exist.

Integer8Array

#
Read a byte array.
byte[] Integer8Array(
name
Name of item.
)
Byte array.
KeyNotFoundExceptionThrown when the requested name+index do not exist.

IntegerXx

#
Read an integer value.
BigInteger IntegerXx(
name
Name of item.
)
Integer value.
KeyNotFoundExceptionThrown when the requested name+index do not exist.

Number32

#
Read a floating point value.
float Number32(
name
Name of item.
)
Floating point value.
KeyNotFoundExceptionThrown when the requested name+index do not exist.

Number32Array

#
Read a float array.
float[] Number32Array(
name
Name of item.
)
Float array.
KeyNotFoundExceptionThrown when the requested name+index do not exist.

Number64

#
Read a floating point value.
double Number64(
name
Name of item.
)
Floating point value.
KeyNotFoundExceptionThrown when the requested name+index do not exist.

Number64Array

#
Read a float array.
double[] Number64Array(
name
Name of item.
)
Float array.
KeyNotFoundExceptionThrown when the requested name+index do not exist.

Storable

#
Read a storable object. This method requires that the object was originally written using IWriter.WriteStorable, that the type of the original value had an IdentifierAttribute associated with it and that that identifier is known in the current running context.
IStorable Storable(
name
Inner name for data. If null, the current reader will be used.
)

Storable<T>

#
Read a storable object of a specific type. default(T) will be returned if the name does not point to a valid block.
T Storable<T>(
name
Inner name for data. If null, the current reader will be used.
)

StorableArray<T>

#
Read a collection of storable objects.
T[] StorableArray<T>(
name
)

String

#
Read a string value.
string String(
name
Name of item.
)
String value.
KeyNotFoundExceptionThrown when the requested name+index do not exist.

StringArray

#
Read a string array.
string[] StringArray(
name
Name of item.
)
String array.
KeyNotFoundExceptionThrown when the requested name+index do not exist.

SupportsArray<T>

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

TimeSpan

#
Read a datetime value.
TimeSpan TimeSpan(
name
Name of item.
)
Datetime value.
KeyNotFoundExceptionThrown when the requested name+index do not exist.

TryRead<T>

#
Try and read a value if it exists.
T TryRead<T>(
name,
Name of value.
T
valueIfMissing
Value to return if there is no item with the given name.
)
Read value or default.

Type

#
Read a type value. Since a type may not be loaded during read, this operation may fail. A list of possible fallback types may be specified, and an identically named one will be picked if the exact type is not found.
Type Type(
name,
fallbackList,
out Type
fallback
)

Type

#
Read a type value. Since a type may not be loaded during read, this operation may fail.
Type Type(
name
Name of item.
)
Type value.
KeyNotFoundExceptionThrown when the requested name+index do not exist.

TypeName

#
Read the assembly qualified name of the type.
string TypeName(
name
Name of item.
)
Type name value.
KeyNotFoundExceptionThrown when the requested name+index do not exist.

Version

#
Read a version value.
Version Version(
name
Name of item.
)
Version value.
KeyNotFoundExceptionThrown when the requested name+index do not exist.