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