I believe this could be another easy one for you LINQ masters out there.
I have a table with a field that consists of strings delimited by “#”. After I select the field using LINQ, how can I split each of the strings into a different list?
My string list looks like:
#A#B#C#D#G#F
I used a simple LINQ query to access this:
from x in Special_texts
where x.Name.Equals("ExceptionList")
select x.Content
In the end, my list should contain:
A
B
C
D
G
F
Thanks in advance.
Assuming you want a single list as output:
Alternatively if you want a list of lists (one for each item in
Special_texts):