Accessing Object Properties from called objects.

I understand that Reflection is a good way to get information about Attributes, Properties and Methods of a class but how do I access values of a specific instance of a class and ensure that it is the class object currently calling the class

If I have a heirarchy of:

object1.object2.object3.property

how do I access a property value in object 1 from object 3 so that this works:

public int AProperty
{

get
{
return
Object3Variable + Object1PropertyValue;
}
}

 



Answer this question

Accessing Object Properties from called objects.

  • enet2008

    Anyone

    Anyone

    Beuller


  • Accessing Object Properties from called objects.