示例#1
0
 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())
 {
 }
示例#5
0
 public BoolToValueConverter(System.Collections.IEqualityComparer equalityComparer)
 {
     this.Comparer = equalityComparer;
 }
示例#6
0
文件: Maybe.cs 项目: forki/Funcy
 public override int GetHashCode(System.Collections.IEqualityComparer comparer)
 {
     return(comparer.GetHashCode());
 }
示例#7
0
文件: Maybe.cs 项目: forki/Funcy
 public abstract int GetHashCode(System.Collections.IEqualityComparer comparer);
示例#8
0
文件: Maybe.cs 项目: forki/Funcy
 public abstract bool Equals(object other, System.Collections.IEqualityComparer comparer);