/// <summary> /// Returns a value indicating whether this instance is equal to the specified object. /// </summary> /// <param name="obj">The object to compare with this instance.</param> /// <returns>A value indicating whether this instance is equal to the specified object.</returns> public override bool Equals(object obj) { return(ComparableImplementations.ImplementEquals(DefaultComparer, this, obj)); }
/// <summary> /// Returns a value indicating whether this instance is equal to the specified object. /// </summary> /// <param name="other">The object to compare with this instance.</param> /// <returns>A value indicating whether this instance is equal to the specified object.</returns> public bool Equals(T other) { return(ComparableImplementations.ImplementEquals(DefaultComparer, (T)this, other)); }
/// <inheritdoc /> bool IEquatable <IUniformResourceIdentifier> .Equals(IUniformResourceIdentifier other) => ComparableImplementations.ImplementEquals(DefaultComparer, this, other);
public bool Equals(Derived2 other) => ComparableImplementations.ImplementEquals(DefaultComparer, this, other);
/// <summary> /// Returns a value indicating whether this instance is equal to the specified object. /// </summary> /// <param name="other">The object to compare with this instance.</param> /// <returns>A value indicating whether this instance is equal to the specified object.</returns> public bool Equals(T other) { Contract.Assume(DefaultComparer != null); return(ComparableImplementations.ImplementEquals(DefaultComparer, (T)this, other)); }
/// <summary> /// Returns a value indicating whether this instance is equal to the specified object. /// </summary> /// <param name="obj">The object to compare with this instance.</param> /// <returns>A value indicating whether this instance is equal to the specified object.</returns> public override bool Equals(object obj) { Contract.Assume(DefaultComparer != null); return(ComparableImplementations.ImplementEquals(DefaultComparer, (T)this, obj)); }
/// <summary> /// Returns a value indicating whether this instance is equal to the specified object. /// </summary> /// <param name="obj">The object to compare with this instance.</param> /// <returns>A value indicating whether this instance is equal to the specified object.</returns> public override bool Equals(object obj) => ComparableImplementations.ImplementEquals(DefaultComparer, (T)this, obj);