The Exception.GetType() mystery
Spelunking through the Framework one day, I noticed that, new in Whidbey, System.Exception has this method:
public new Type GetType(){
return base.GetType();
}
Wow, how odd I thought. Adding a newslot to re-define Object’s GetType method then just returning the result of a call to Object.GetType (). Too odd, I thought, it has to be a bug, so I checked with the developer and nope, no bug… Any guesses why we did this?
I’ll post the answer at end of day today…