public sealed class Item : IEquatable<Item>
Represents a single data entry in an archive. An entry is an immutable combination of name, index and data.

Constructors

Item

#
public Item(Name location, Value value)
location (Name)
value (Value)

Properties

IsArray

#
public bool IsArray { get; }
Gets whether the contained value is an array.

Name

#
public Name Name { get; }
Gets the location assigned to this entry.

Type

#
public DataType Type { get; }
Gets the type of the contained value.

Value

#
public Value Value { get; }
Gets the value of this entry.

Methods

AreIndentical

#
public static bool AreIndentical(Item a, Item b)
Test two entries for equality. This comparison (unlike Equals and CompareTo) test both the location and value of the entry.
a (Item)First entry.
b (Item)Second entry.
True if entries are identical.

Equals

#
public bool Equals(Item other)
other (Item)

Equals

#
public override bool Equals(object obj)
obj (object)
Object.Equals

GetHashCode

#
public override int GetHashCode()

Read

#
public static void Read(BinaryReader reader, out Item item)
Read an iem from a binary reader.
reader (BinaryReader)Reader object.
item (out Item)Deserialized item.

ToString

#
public override string ToString()
Gets a string representation of this item. This conversion can be lossy.
Object.ToString

Write

#
public static void Write(BinaryWriter writer, Item item)
Write an item to an archive.
writer (BinaryWriter)Writer object.
item (Item)Item to serialize.

Write

#
public static void Write(SmlWriter writer, Item item)
Write an item to an sml string.
writer (SmlWriter)Writer object.
item (Item)Item to serialize.