S
shapper
Hello,
I am using the following to convert a CSV String to a List:
updated = paper.Tags.Split(',').Select(p => p.Trim()).ToList();
But I want to place the values in the Name property of a List of Tag
(Tag is a class with 2 properties: ID and Name)
I tried the following:
List<Tag> updated = paper.Tags.Split(',').Select(p =>
p.Trim()).ToList();
But of course I need to place this in each Tag.Name ...
Any idea?
Thanks,
Miguel
I am using the following to convert a CSV String to a List:
updated = paper.Tags.Split(',').Select(p => p.Trim()).ToList();
But I want to place the values in the Name property of a List of Tag
(Tag is a class with 2 properties: ID and Name)
I tried the following:
List<Tag> updated = paper.Tags.Split(',').Select(p =>
p.Trim()).ToList();
But of course I need to place this in each Tag.Name ...
Any idea?
Thanks,
Miguel