Esempio n. 1
0
    /* !
     * \brief Checks that two reactions have the same FickReaction field values.
     * \param reaction The reaction that will be compared to 'this'.
     */
    protected override bool PartialEquals(IReaction reaction)
    {
        FickReaction fick = reaction as FickReaction;

        return((fick != null) &&
               base.PartialEquals(reaction) &&
               (_surface == fick._surface) &&
               (_P == fick._P) &&
               _medium1.Equals(fick._medium1) &&
               _medium2.Equals(fick._medium2));
        //TODO check Medium equality
    }
Esempio n. 2
0
        /// <summary>
        /// Returns true if ClanBadgeUrls instances are equal
        /// </summary>
        /// <param name="input">Instance of ClanBadgeUrls to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(ClanBadgeUrls?input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     Small == input.Small ||
                     (Small != null &&
                      Small.Equals(input.Small))
                     ) &&
                 (
                     Medium == input.Medium ||
                     (Medium != null &&
                      Medium.Equals(input.Medium))
                 ) &&
                 (
                     Large == input.Large ||
                     (Large != null &&
                      Large.Equals(input.Large))
                 ));
        }