0

I have problem with casting a list of A to List of C assuming C is a super class of A. I try to pass List of A as a parameter to a constructor where the construct accept List of C. I can use ConvertAll but it seems like it give a new copy of the list. If I update List of A, the data in List of C won't get affected.

LittleFunny
  • 8,155
  • 15
  • 87
  • 198
  • 2
    Possible duplicate of [Cast List to List](http://stackoverflow.com/questions/5115275/cast-listx-to-listy) – Trevor Merrifield Jul 23 '16 at 06:04
  • @Trevor: Well, not a straight dupe, but at least one of the answers explains the issue. In this case, they'd need to create their list wrapper themselves, since they want changes to be reflected in the original list – Joey Jul 23 '16 at 06:26

0 Answers0