S
shapper
Hello,
I am parsing a CSV string as follows:
var answers = CSVAnswers.Split(new char[] { ',' },
StringSplitOptions.RemoveEmptyEntries).Select(a => a.Trim()).ToList();
I would like to create a List<Answer> which has 3 properties:
AnswerID, Answer, UpdatedDate
AnswerID is a Guid and I know how to get it.
Answer is taken from answers
UpdatedData is current date time and I also know how to get it
My question is if I can transform my expression to create directly the
list:
List<Answer> = CSVAnswers ...
Thanks,
Miguel
I am parsing a CSV string as follows:
var answers = CSVAnswers.Split(new char[] { ',' },
StringSplitOptions.RemoveEmptyEntries).Select(a => a.Trim()).ToList();
I would like to create a List<Answer> which has 3 properties:
AnswerID, Answer, UpdatedDate
AnswerID is a Guid and I know how to get it.
Answer is taken from answers
UpdatedData is current date time and I also know how to get it
My question is if I can transform my expression to create directly the
list:
List<Answer> = CSVAnswers ...
Thanks,
Miguel