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