示例#1
0
 public virtual object SingleElement()
 {
     if (1 != Size())
     {
         throw new InvalidOperationException();
     }
     return(_tree.Key());
 }
示例#2
0
		public override int Compare(Tree tree)
		{
			return _function.Compare(_object, tree.Key());
		}
示例#3
0
 public override int Compare(Tree tree)
 {
     return(_function.Compare(_object, tree.Key()));
 }
示例#4
0
		protected override object CurrentValue(Tree tree)
		{
			return tree.Key();
		}
示例#5
0
            public void Visit(object obj)
            {
                Tree tree = (Tree)obj;

                visitor.Visit(tree.Key());
            }
 protected override object CurrentValue(Tree tree)
 {
     return(tree.Key());
 }