Update domain object properties using .NET Reflection.


/ Published in: C#
Save to your folder(s)

Since your domain object is passed in as a ref parameter, it cannot be cast to object, you must box it prior to calling the method. The caller of the method must also ensure that the System.Type of the value parameter matches the type expected by the property being updated.

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.