Is there a .NET BCL class to help with hand-rolled property path binding?

Posted by Wayne on Stack Overflow See other posts from Stack Overflow or by Wayne
Published on 2010-06-17T11:51:07Z Indexed on 2010/06/17 12:13 UTC
Read the original article Hit count: 255

Filed under:
|
|

WPF and Silverlight have a data binding model whereby I can provide a Binding with a Path which comprises a dot-notation of property accessors down from a DataContext to a specific value inside a complex object graph (eg. MyDataContext.RootProperty.SubProperty.Thing.Value)

I have a (non-UI) requirement to accept such a path expressed as a simple string, and to use reflection on an object which is (hopefully) of a type which exposes the right property getters and setters in order to read and/or write values to those properties.

Before I go off and start writing the parser and reflection code, is there a handy Framework 3.5 BCL class to help with this?

© Stack Overflow or respective owner

Related posts about .NET

Related posts about databinding