1 instantiation of EquatableBackwardsOrder
Microsoft.CodeAnalysis.UnitTests (1)
Collections\HashSet\SegmentedHashSet_Generic_Tests.cs (1)
93
return new
EquatableBackwardsOrder
(rand.Next());
11 references to EquatableBackwardsOrder
Microsoft.CodeAnalysis.UnitTests (11)
Collections\HashSet\SegmentedHashSet_Generic_Tests.cs (4)
88
public class SegmentedHashSet_Generic_Tests_EquatableBackwardsOrder : SegmentedHashSet_Generic_Tests<
EquatableBackwardsOrder
>
90
protected override
EquatableBackwardsOrder
CreateT(int seed)
96
protected override ISet<
EquatableBackwardsOrder
> GenericISetFactory()
98
return new SegmentedHashSet<
EquatableBackwardsOrder
>();
Collections\HashSet\TestingTypes.cs (7)
47
public class EquatableBackwardsOrder : IEquatable<
EquatableBackwardsOrder
?>, IComparable<
EquatableBackwardsOrder
>, IComparable
56
public int CompareTo(
EquatableBackwardsOrder
? other) //backwards from the usual integer ordering
68
return obj is
EquatableBackwardsOrder
other && Equals(other);
71
public bool Equals(
EquatableBackwardsOrder
? other)
78
if (obj != null && obj.GetType() == typeof(
EquatableBackwardsOrder
))
79
return ((
EquatableBackwardsOrder
)obj)._value - _value;