public TreeNodeBenchmark() { TreeNodeRoot = TreeNode.CreateTree(TreeDepth); TreeNodeStructRoot = TreeNodeStruct.CreateTree(TreeDepth); if (TreeNodeRoot.CountNodes() != TreeNodeStructRoot.CountNodes()) { throw new InvalidOperationException("Node count doesn't match."); } }
public NodeData(TreeNodeStruct left, TreeNodeStruct right) { Left = left; Right = right; }
public void CreateTreeNodeStructs() { TreeNodeStruct.CreateTree(TreeDepth); }
public TreeNodeStruct(TreeNodeStruct left, TreeNodeStruct right) { Data = new NodeData(left, right); }