/// <summary> /// Helper method to add all the ids of features in this node and its descendants /// </summary> /// <returns>An enumeration of feature ids</returns> private void AddAllFidsInNode(List <uint> fidList) { if (FeatureCount > 0) { var bin = FirstBin; while (bin != null) { fidList.AddRange(bin.GetAllFidsInBin()); bin = bin.Next; } } if (Nid < _tree.FirstLeafNodeId) { Child1.AddAllFidsInNode(fidList); Child2.AddAllFidsInNode(fidList); } }