D
dsandor
I have a class that is inherited by another class. Let say:
public class vehicle
{
public string color
{
get ...
set ...
}
}
and..
public class truck : vehicle
{
property int wheels
{
get...
set...
}
}
From within the vehicle class I would like to be able to look at properties
in the truck class. Can this be done with reflection? How can I know what
type of object the 'inheriter' is?
Thanks,
David Sandor
public class vehicle
{
public string color
{
get ...
set ...
}
}
and..
public class truck : vehicle
{
property int wheels
{
get...
set...
}
}
From within the vehicle class I would like to be able to look at properties
in the truck class. Can this be done with reflection? How can I know what
type of object the 'inheriter' is?
Thanks,
David Sandor