Resolve value in C#/.net 2.0
Posted
by Andreas
on Stack Overflow
See other posts from Stack Overflow
or by Andreas
Published on 2010-06-10T07:12:28Z
Indexed on
2010/06/10
12:53 UTC
Read the original article
Hit count: 201
c#
Is there a way to resolve values in a class structure using some xpath-style resolver?
Exampel in code:
string name = Order.Customer.Firstname;
What i would like to do is something like this:
string name = (string)X.Resolve(Order, "Customer.Firstname");
Is there a way to do this in C#/.net 2.0
© Stack Overflow or respective owner