Ejemplo n.º 1
0
 int IComparable.CompareTo(object food)
 {
     if (food is DogFoodData)
     {
         return(FoodType.CompareTo((food as DogFoodData).FoodType));
     }
     else
     {
         return(k.INVALID_VALUE);
     }
 }