public virtual int CompareTo(object other)
 {
     OrderByWithComparableTestCase.ItemComparable cmp = (OrderByWithComparableTestCase.ItemComparable
                                                         )other;
     if (_id == cmp._id)
     {
         return(0);
     }
     return(_id < cmp._id ? -1 : 1);
 }
Exemple #2
0
 public virtual int CompareTo(object other)
 {
     Activate(ActivationPurpose.Read);
     OrderByWithComparableTestCase.ItemComparable cmp = (OrderByWithComparableTestCase.ItemComparable
                                                         )other;
     if (_id == cmp.Id())
     {
         return(0);
     }
     return(_id < cmp.Id() ? -1 : 1);
 }
			public Item(int id, OrderByWithComparableTestCase.ItemComparable itemCmp)
			{
				_id = id;
				_itemCmp = itemCmp;
			}
 public Item(int id, OrderByWithComparableTestCase.ItemComparable itemCmp)
 {
     _id      = id;
     _itemCmp = itemCmp;
 }