Beispiel #1
0
        /// <summary>
        /// Returns true if BrandedFoodObjectPackagingPhotos instances are equal
        /// </summary>
        /// <param name="other">Instance of BrandedFoodObjectPackagingPhotos to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(BrandedFoodObjectPackagingPhotos other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Front == other.Front ||
                     Front != null &&
                     Front.Equals(other.Front)
                     ) &&
                 (
                     Nutrition == other.Nutrition ||
                     Nutrition != null &&
                     Nutrition.Equals(other.Nutrition)
                 ) &&
                 (
                     Ingredients == other.Ingredients ||
                     Ingredients != null &&
                     Ingredients.Equals(other.Ingredients)
                 ));
        }
Beispiel #2
0
 public bool Equals(Tile other)
 {
     return(Front.Equals(other.Front) && Back.Equals(other.Back) && Glyph == other.Glyph);
 }