Welcome! and rules
Joel on Software
Just curious really. If I declare an enumeration of type int, why do I have to cast it to an int when I want to use it as an int?
no, Col1 is of type ResultType.
The enumeration syntax doesn't imply that you are deriving from int, since that's impossible. It's merely specifying the underlying storage mechanism for the enumeration.
Brad Wilson [MSFT]
You should use ResultType.Col1 then you don't need to cast.
Fog Creek Home