public virtual object SingleElement() { if (1 != Size()) { throw new InvalidOperationException(); } return(_tree.Key()); }
public override int Compare(Tree tree) { return _function.Compare(_object, tree.Key()); }
public override int Compare(Tree tree) { return(_function.Compare(_object, tree.Key())); }
protected override object CurrentValue(Tree tree) { return tree.Key(); }
public void Visit(object obj) { Tree tree = (Tree)obj; visitor.Visit(tree.Key()); }
protected override object CurrentValue(Tree tree) { return(tree.Key()); }