G
Guest
Can someone tell me how the 'is' command works in relation to derived classes?
For example -
Class A {}
Class B : A {}
object o = new B();
if (o is A) {...}
Should the above if statement return true or false?
Thanx.
For example -
Class A {}
Class B : A {}
object o = new B();
if (o is A) {...}
Should the above if statement return true or false?
Thanx.