Closed lt72 closed 8 years ago
the comparer used does not use the proper conversions for enum <= => int.
workaround is to define a simple comparer such as:
internal class YOURENUMComparer : IEqualityComparer<YOURENUM> { public bool Equals( YOURENUM x, YOURENUM y ) { return (int)x == (int)y; } public int GetHashCode( YOURENUM obj ) { return (int)obj; } }
the comparer used does not use the proper conversions for enum <= => int.
workaround is to define a simple comparer such as: