Difference

References
public sealed class Difference : IComparable<Difference>
A single difference between two nodes.

Properties

ChunkA

#
public Node ChunkA { get; }
Chunk in the A archive, when relevant.

ChunkB

#
public Node ChunkB { get; }
Chunk in the B archive, when relevant.

EntryA

#
public Item EntryA { get; }
Entry in the A archive, when relevant.

EntryB

#
public Item EntryB { get; }
Entry in the B archive, when relevant.

Path

#
public Path Path { get; }
Gets the path to the chunk or entry in the A archive.

Type

#
public DifferenceType Type { get; }
Gets the type of difference.

Methods

CreateDifferentItem

#
public static Difference CreateDifferentItem(Path path, Node chunkA, Node chunkB, Item entryA, Item entryB)
Create a difference for two entries.
path (Path)
chunkA (Node)
chunkB (Node)
entryA (Item)
entryB (Item)

CreateMissingItemInA

#
public static Difference CreateMissingItemInA(Path path, Node chunkA, Node chunkB, Item entry)
Create a difference for a missing entry in A.
path (Path)
chunkA (Node)
chunkB (Node)
entry (Item)

CreateMissingItemInB

#
public static Difference CreateMissingItemInB(Path path, Node chunkA, Node chunkB, Item entry)
Create a difference for a missing entry in B.
path (Path)
chunkA (Node)
chunkB (Node)
entry (Item)

CreateMissingNodeInA

#
public static Difference CreateMissingNodeInA(Path path, Node node)
Create a difference for a missing node in A.
path (Path)Path to node in B.
node (Node)Node in B.

CreateMissingNodeInB

#
public static Difference CreateMissingNodeInB(Path path, Node chunk)
Create a difference for a missing chunk in B.
path (Path)Path to chunk in A.
chunk (Node)Chunk in A.
Explicit

IComparable<Difference>.CompareTo

#
other (Difference)

ToString

#
public override string ToString()
Object.ToString

ToString

#
public string ToString(int indent, string symbolA, string symbolB)
indent (int)
symbolA (string)
symbolB (string)