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

            return
                ((
                     ExtraLarge == other.ExtraLarge ||
                     ExtraLarge != null &&
                     ExtraLarge.Equals(other.ExtraLarge)
                     ) &&
                 (
                     Large == other.Large ||
                     Large != null &&
                     Large.Equals(other.Large)
                 ) &&
                 (
                     Standard == other.Standard ||
                     Standard != null &&
                     Standard.Equals(other.Standard)
                 ) &&
                 (
                     GridView == other.GridView ||
                     GridView != null &&
                     GridView.Equals(other.GridView)
                 ) &&
                 (
                     Small == other.Small ||
                     Small != null &&
                     Small.Equals(other.Small)
                 ) &&
                 (
                     Thumbnail == other.Thumbnail ||
                     Thumbnail != null &&
                     Thumbnail.Equals(other.Thumbnail)
                 ) &&
                 (
                     ExtraSmall == other.ExtraSmall ||
                     ExtraSmall != null &&
                     ExtraSmall.Equals(other.ExtraSmall)
                 ));
        }