L
lil J
lets say i 2Classes
class Person{
string surname;
}
class House{
string street;
}
I have an Object, but it's Type can be Person or House . I want to Cast
this Object to its orign.
//current.GetType() -> Person
Object current;
//Not Working
((current.GetType)current.surname).name;
class Person{
string surname;
}
class House{
string street;
}
I have an Object, but it's Type can be Person or House . I want to Cast
this Object to its orign.
//current.GetType() -> Person
Object current;
//Not Working
((current.GetType)current.surname).name;
