Keiron

Keiron

  • NA
  • 5
  • 0

can I cast a superclass into a subclass?

Aug 8 2007 7:09 AM
I thought this would be possible but I get told "Unable to cast object of type Base into type Derived." The Base class is defined in another assembly (not my own), while the Derived class is my own. Is this as expected, or am I doing something wrong?

Answers (2)