0

I am trying to do a deep clone of tagsusing ValueInjecter

Here is the code.

  IList<Tag> processTags = new List<Tag>();
  processTags.InjectFrom(tags);

The second line throws parameter count mismatch

Why is it so and how do I overcome it?

Gopi
  • 5,656
  • 22
  • 80
  • 146
  • you need to create a list do a foreach and call .InjectFrom for each tag in the first list you can also learn about it here: https://github.com/omuleanu/ValueInjecter – Omu Sep 17 '16 at 16:32
  • @Omu so it means I will not be able to deep clone a list rather I need to do for each item in a list by looping. Correct me if I am wrong. – Gopi Sep 19 '16 at 04:07

0 Answers0