public static int Compute <T>(T value, System.Collections.IEqualityComparer comparer) where T : IStructuralEquatable { return(value?.GetHashCode(comparer) ?? 0); }
bool IStructuralEquatable.Equals(object other, System.Collections.IEqualityComparer comparer) { return(FdbTuple.Equals(this, other, comparer)); }
int System.Collections.IStructuralEquatable.GetHashCode(System.Collections.IEqualityComparer comparer) { return(FdbTuple.StructuralGetHashCode(this, comparer)); }
/// <summary> /// Initializes a new instance of the <see cref="CopyAndUpdateAssertion"/> class. /// </summary> /// <param name="builder"> /// A composer which can create instances required to implement the idiomatic unit test. /// </param> /// <param name="comparer">A comparer that compares public member values from the /// specimen with public member values from the 'copied' and updated' instance</param> /// <remarks> /// <para> /// <paramref name="builder" /> will typically be a <see cref="Fixture" /> instance. /// </para> /// </remarks> public CopyAndUpdateAssertion( ISpecimenBuilder builder, System.Collections.IEqualityComparer comparer) : this(builder, comparer, new DefaultParameterMemberMatcher()) { }
public BoolToValueConverter(System.Collections.IEqualityComparer equalityComparer) { this.Comparer = equalityComparer; }
public override int GetHashCode(System.Collections.IEqualityComparer comparer) { return(comparer.GetHashCode()); }
public abstract int GetHashCode(System.Collections.IEqualityComparer comparer);
public abstract bool Equals(object other, System.Collections.IEqualityComparer comparer);