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