I have two hash sets that I've constructed in different ways that contain all the enum values.
setWithAllEnums.Equals(setToTest); // Returns false !(setWithAllEnums.Except(setToTest).Any()); // Returns True
Why are these not equivalent? Does .NET not provide a GetHashCode for Enums?