Enums in C#; Doing More Than You Thought!
I have been developing for a while now and use Enums on a daily basis (nearly) and was quite happy in my understanding an Enum definition had a set number of values and of those values they could be cast to the related integer value (or another under-lying type) and back again. And then I saw the following piece of code (condensed down for example): System.Net.HttpStatusCode value = (System.Net.HttpStatusCode)429; var result = (429 == (int)value); There is no corresponding value in System....