I have a dataset that is returned from a stored procedure that I save into a string LIST.
So far this is what I have and it's working correctly:
this.UserOrgs = ds.Tables[0].AsEnumerable()
.Select(r => r.Field<string>(0))
.ToList();
However, I also need to replace all "X" with "Y" in the returned values before I put them into the list.
I guess my question is, can I do it all at one time using LINQ? Or should I replace the characters in the dataset before I convert it into a list?