I’m really getting tired of this:
enum <int32> Ver
{
test1= -1,
test2= 0,
test3 = 1,
};
// somewhere in the code when comparing
if (reference.Version >= -1)
I tried every damn way like you would expect in any other language to write a natural comparison like:
if (enumval == Enum.Definition)
but it just does not work. Why can’t we have nice things?