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

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