public Reparenting(LinearTreeNode <T> node, LinearTreeNode <T> oldParent, CollectionChange remChange, LinearTreeNode <T> newParent, CollectionChange insChange, LinearTreeNode <T> mostCommon, int nodeOffsetRelativeToMostCommonBefore, int nodeOffsetRelativeToMostCommonAfter) { Node = node; OldParent = oldParent; RemChange = remChange; NewParent = newParent; InsChange = insChange; MostCommon = mostCommon; NodeOffsetRelativeToMostCommonBefore = nodeOffsetRelativeToMostCommonBefore; NodeOffsetRelativeToMostCommonAfter = nodeOffsetRelativeToMostCommonAfter; }
public LinearTreeNode( T value, Action <LinearTreeNode <T>, CollectionChange> dispatchCollectionChange, LinearTreeNode <T> parent) { _dispatchCollectionChange = dispatchCollectionChange; _parent = parent; _offset = parent == null ? 0 : 1; Value = value; }