Hi,
i would like to know if it's possible to do something like this:
class brand
{
string name;
}
class car
{
string carname;
brand carbrand;
}
now i've got a string like this and an instantiated object of the type car:
car carobject = new car();
string brandNameOfCar = DoSomeMagicalReflectionStuff(car, "car.brand.name");
How would the "DoSomeMagicalReflectionStuff" method look like?
And is it even possible to do something like:
car carobject = new car();
string brandNameOfCar = DoSomeMagicalReflectionStuff(car, "car.brand.name.ToFormatedString()");
Thank you!