|
|
Am 15.08.2012 12:48, schrieb Invisible:
> On 14/08/2012 03:42 PM, Invisible wrote:
>> As with any language, my WTF list:
>
> Enums. Urgh. An enumeration is supposed to be a type that can only take
> on the specified set of values. Except that in C#, an enumeration can
> take on /any/ integer value. It's just that some of these values also
> have friendly names. *sigh*
Erm... did you actually /try/ this??
Trying to assing an int to an enum variable, I get a "Cannot implicitly
convert [...]" error for any integer value other than 0. (Don't ask me
why they did allow it for 0 though.)
Post a reply to this message
|
|