Method to Copy Data Between Objects of Different Types(alteridem.net)

submitted by rprouserprouse(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.

add a comment |category: |Views: 42

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

No comments so far

information Login or create an account to comment on this story