Exemplo n.º 1
0
 /// <summary>
 ///     Compares this instance to a specified Branch and returns an indication
 ///     of their relative values.
 /// </summary>
 ///
 /// <param name="obj">
 ///      The Ordered-Dish to compare with this instance.
 /// </param>
 ///
 /// <returns>
 ///     A 32-bit signed integer that indicates whether this instance precedes, follows,
 ///     or appears in the same position in the sort order as the value parameter.Value
 ///     Condition Less than zero This instance precedes obj. Zero This instance has
 ///     the same position in the sort order as obj. Greater than zero This instance
 ///     follows obj.-or- obj is null.
 ///</returns>
 public int CompareTo(object obj)
 {
     return(ItemID.CompareTo(((Ordered_Dish)obj).ItemID));
 }