Esempio n. 1
0
        /// <summary>
        /// Compares the <see cref="BaseDbSetting"/> object equality against the given target object.
        /// </summary>
        /// <param name="other">The object to be compared to the current object.</param>
        /// <returns>True if the instances are equal.</returns>
        public bool Equals(BaseDbSetting other)
        {
            if (other is null)
            {
                return(false);
            }

            return(other.GetHashCode() == GetHashCode());
        }
Esempio n. 2
0
 /// <summary>
 /// Compares the <see cref="BaseDbSetting"/> object equality against the given target object.
 /// </summary>
 /// <param name="other">The object to be compared to the current object.</param>
 /// <returns>True if the instances are equal.</returns>
 public bool Equals(BaseDbSetting other)
 {
     return(other?.GetHashCode() == GetHashCode());
 }
Esempio n. 3
0
 /// <summary>
 /// Compares the <see cref="BaseDbSetting"/> object equality against the given target object.
 /// </summary>
 /// <param name="other">The object to be compared to the current object.</param>
 /// <returns>True if the instances are equal.</returns>
 public bool Equals(BaseDbSetting other) =>
 other?.GetHashCode() == GetHashCode();