Bug Vanquisher

11 November 2007

More Horrors

Filed under: Computer Theory — Tanveer Badar @ 3:46 PM

Right off Brad Abrams blog!

Isn’t it odd that…

From the files of things that make you go “hmmmm”.

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


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

# Brad Abrams said on May 10, 2004 9:21 PM:

Oh, and I just noticed that System.Array is not an Array:
typeof (Array).IsArray = false…

This again proves my point that root in a hierarchy is always special. The rules used to build that hierarchy do not apply to the root, breaking the constraint system.

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Create a free website or blog at WordPress.com.

%d bloggers like this: