예제 #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());
            }
예제 #6
0
 protected override object CurrentValue(Tree tree)
 {
     return(tree.Key());
 }