DataBinder setter method.

G

Guest

DataBinder has the GetPropertyValue that returns the value of a property of
an object. It does this via reflection, but is very handy when you need it.
Is there a class similar to DataBinder that does the setting of a property
value? Something like

DataBinder2(obj, "PropertyName", value);

I know I can do this with reflection, but it would be nice not having to
reinvent the wheel.

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,576
Members
45,054
Latest member
LucyCarper

Latest Threads

Top