Exemplo n.º 1
0
        internal override Int32 ClassifyObject(DataSetObject obj, int availableHeight)
        {
            if (availableHeight == 1)
            {
                return(DecisionResult);
            }

            availableHeight--;

            if (_decision.Invoke(obj))
            {
                return(_rightChild.ClassifyObject(obj, availableHeight));
            }

            return(_leftChild.ClassifyObject(obj, availableHeight));
        }
Exemplo n.º 2
0
 public Int32 ClassifyObject(DataSetObject obj, int maxHeight) => _head.ClassifyObject(obj, maxHeight);