T
Tarscher
Hi all,
I have classes: Unit, Transporter, Bus and Car
Transporter inherits from Unit and Bus and Car inherit from
Transporter.
I want to be able to do
Bus bus = new Bus()
if (bus is Transporter)
{
//....
}
Apparently .net only validates bus is Bus .
How can i do this?
Thanks
Stijn
I have classes: Unit, Transporter, Bus and Car
Transporter inherits from Unit and Bus and Car inherit from
Transporter.
I want to be able to do
Bus bus = new Bus()
if (bus is Transporter)
{
//....
}
Apparently .net only validates bus is Bus .
How can i do this?
Thanks
Stijn