Example #1
0
        // ---- METHODS (PUBLIC) ---------------------------------------------------------------------------------------

        /// <summary>
        /// Gets a value indicating whether this <see cref="Decimal10x5"/> is the same as the second specified
        /// <see cref="Decimal10x5"/>.
        /// </summary>
        /// <param name="obj">The object to compare, if it is a <see cref="Decimal10x5"/>.</param>
        /// <returns>true, if both <see cref="Decimal10x5"/> are the same.</returns>
        public override bool Equals(object obj)
        {
            if (!(obj is Decimal10x5))
            {
                return(false);
            }
            Decimal10x5 decimal10x5 = (Decimal10x5)obj;

            return(Equals(decimal10x5));
        }
Example #2
0
 /// <summary>
 /// Indicates whether the current <see cref="Decimal10x5"/> is equal to another <see cref="Decimal10x5"/>.
 /// </summary>
 /// <param name="other">A <see cref="Decimal10x5"/> to compare with this <see cref="Decimal10x5"/>.</param>
 /// <returns>true if the current <see cref="Decimal10x5"/> is equal to the other parameter; otherwise, false.
 /// </returns>
 public bool Equals(Decimal10x5 other)
 {
     return(Equals(Raw == other.Raw));
 }