I want to make an MVC C# List with unique values in it. Here is the scenario. My List is like this:
List A
ItemNo FileName
001 => A.txt
001 => B.txt
002 => A.txt
002 => B.txt
003 => A.txt
I want to make it a new List like,
List B
ItemNo FileName
001 => A.txt, B.txt
002 => A.txt, B.txt
003 => A.txt
Is there any way that I can make it workable?
You can use LINQ with GroupBy, assume you have class: