Class ValueTreeNode

Assembly: redb.Core.Pro.dll

Tree node for tree-based ChangeTracking.
Represents RedbValue with structure metadata and hierarchy.

public class ValueTreeNode

Inheritance

ObjectValueTreeNode

Properties

ArrayElements

public List<ValueTreeNode> ArrayElements { get; set; }

Children

public List<ValueTreeNode> Children { get; set; }

Hash

UUID hash for comparison optimization (for business classes and arrays).

public Guid? Hash { get; }

IsArray

Is structure a collection (array or dictionary).

public bool IsArray { get; }

IsArrayElement

Is node an array element.

public bool IsArrayElement { get; }

IsLeaf

Is node leaf (no children and elements).

public bool IsLeaf { get; }

IsRoot

Is node root (no parent).

public bool IsRoot { get; }

Parent

public ValueTreeNode? Parent { get; set; }

Path

Path in tree for diagnostics.

public string Path { get; }

Structure

public StructureTreeNode Structure { get; set; }

Value

public RedbValue Value { get; set; }

Methods

GetAllDescendants()

Get all descendants (recursively).

public IEnumerable<ValueTreeNode> GetAllDescendants()