1 instantiation of SimpleInt
Microsoft.CodeAnalysis.UnitTests (1)
Collections\HashSet\SegmentedHashSet_Generic_Tests.cs (1)
79
return new
SimpleInt
(rand.Next());
21 references to SimpleInt
Microsoft.CodeAnalysis.UnitTests (21)
Collections\HashSet\SegmentedHashSet_Generic_Tests.cs (6)
64
public class SegmentedHashSet_Generic_Tests_int_With_Comparer_WrapStructural_SimpleInt : SegmentedHashSet_Generic_Tests<
SimpleInt
>
66
protected override IEqualityComparer<
SimpleInt
> GetIEqualityComparer()
71
protected override IComparer<
SimpleInt
> GetIComparer()
76
protected override
SimpleInt
CreateT(int seed)
82
protected override ISet<
SimpleInt
> GenericISetFactory()
84
return new SegmentedHashSet<
SimpleInt
>(new WrapStructural_SimpleInt());
Collections\HashSet\TestingTypes.cs (15)
177
public struct SimpleInt : IStructuralComparable, IStructuralEquatable, IComparable, IComparable<
SimpleInt
>
190
public int CompareTo(
SimpleInt
other)
197
if (obj?.GetType() == typeof(
SimpleInt
))
199
return ((
SimpleInt
)obj).Val - _val;
206
if (other?.GetType() == typeof(
SimpleInt
))
207
return ((
SimpleInt
)other).Val - _val;
213
if (other?.GetType() == typeof(
SimpleInt
))
214
return ((
SimpleInt
)other).Val == _val;
244
public class WrapStructural_SimpleInt : IEqualityComparer<
SimpleInt
>, IComparer<
SimpleInt
>
246
public int Compare(
SimpleInt
x,
SimpleInt
y)
251
public bool Equals(
SimpleInt
x,
SimpleInt
y)
256
public int GetHashCode(
SimpleInt
obj)