Example #1
0
 /// <summary>
 /// Indicates whether the current object is equal to another object of the same type.
 /// </summary>
 /// <param name="other">An object to compare with this object.</param>
 /// <returns><c>true</c> if the current object is equal to the other parameter; otherwise, <c>false</c>. </returns>
 public bool Equals(ChecksumBuilder other)
 {
     if (other == null)
     {
         return(false);
     }
     return(Checksum.ToHexadecimal() == other.Checksum.ToHexadecimal());
 }
Example #2
0
        /// <summary>
        /// Determines whether the specified <see cref="System.Object" /> is equal to this instance.
        /// </summary>
        /// <param name="obj">The <see cref="T:System.Object" /> to compare with the current <see cref="T:System.Object" />.</param>
        /// <returns><c>true</c> if the specified <see cref="System.Object" /> is equal to this instance; otherwise, <c>false</c>.</returns>
        public override bool Equals(object obj)
        {
            ChecksumBuilder builder = obj as ChecksumBuilder;

            if (builder == null)
            {
                return(false);
            }
            return(Equals(builder));
        }