I’m trying to convert a list into a different format using linq.
The (simplified) data is as follows:
Code Name
----------
X Red
Y Yellow
Y Red
X Blue
Z Green
And the format I’d like is:
“X: Red, Blue Y: Yellow, Red Z: Green”
I’d appreciate some tips on how to progress.
Thanks in advance,
Jose
1 Answer