.comment-link {margin-left:.6em;}

{Sajith M}

May 18, 2004

Isn't it odd that...

Isn't it odd that...
From the files of things that make you go hmmmm

Brad Abrams says

System.Exception (the base class for all exceptions) is indeed an exception: throw new Exception ()

But

System.Enum (the base class for all enums) is not an enum: typeof (Enum).IsEnum == false

System.ValueType (the base class for all ValueTypes) is not a ValueType: typeof (ValueType).IsValueType == false

System.Attribute (the base class for all custom attributes) is not a custom attribute [Attribute] -> compile error.

There is, of course, good reason for all of this, but still a bit odd when you try to explain to someone the first time.