I know that I can use C# reflection to find a property using a string (e.g. "Property1") of an object.
What I need to do is generate the entire call using a string. e.g. "Object1.Object2.Property".
How can I do this in C#?
If I can't use reflection for this, what can I use?
FYI I am using this in ASP.NET to access model properties using the name of the form field that binds to that property in the model. If anyone knows another way around this, please suggest it.
Thanks