public HN(NodeDataDTO nodeData) { this.HeapNodes = new List<HNBlock>(); var numBlocks = nodeData.NodeData.Count; for (int i = 0; i < numBlocks; i++) { var curBlock = new HNBlock(i, nodeData.NodeData[i]); this.HeapNodes.Add(curBlock); } this.HeapSubNode = nodeData.SubNodeData; }
public HN(NodeDataDTO nodeData) { HeapNodes = new List <HNBlock>(); var numBlocks = nodeData.NodeData.Count; for (int i = 0; i < numBlocks; i++) { var curBlock = new HNBlock(i, nodeData.NodeData[i]); HeapNodes.Add(curBlock); } HeapSubNode = nodeData.SubNodeData; }