Example #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));
        }
Example #2
0
 internal override Int32 ClassifyObject(DataSetObject obj, Int32 availableHeight) => DecisionResult;
Example #3
0
 internal abstract int ClassifyObject(DataSetObject obj, int availableHeight);
Example #4
0
 public Int32 ClassifyObject(DataSetObject obj, int maxHeight) => _head.ClassifyObject(obj, maxHeight);