I have a function that converts a string to a dictionary using the code below. I need to add a 3rd delimiter that is essential a row or record delimiter. Currently "," delimits [attribute,value] and "|" delimits each pair. I can't figure out how to add the 3rd delimiter to separate the rows and add them to my dictionary.
var dict = feed.Split(',')
.Select(x => x.Split('|'))
.ToDictionary(x => x[0], x => x[1]);