Method to Copy Data Between Objects of Different Types(alteridem.net)
submitted by
rprouse(1175) 3 years, 10 months ago
One thing that I find tiresome when using the various Model/View patterns is the constant copying of data between the model and the view. This is the first post in a series on a possible easier way to do this. In this post I write a method that copies the data from one interface to another based on the names and types of the properties. Over the next few posts, I will extend the code to use generics and extension methods.
|category: C#
|Views: 42
tags:
.Net MVP MVC C# Tips another
Everyones tags:
Your Tags: