c# 2D array – merging Values

I have a 2 Dimensional string array(5*2) like this: string[,] data= new string[5, 2] {{"F1","LINK1"}, {"F1","LINK2"}, {"F2","LINK3"}, {"F3","LINK4"}, {"F3","LINK5"}}; i want to group and merge the values into new array. Output : {"F1","LINK1,LINK2"}, {"F2","LINK3"}, {"F3","LINK4,LINK5"} The output array 3*2. Answers: Thank you for visiting the Q&A section on Magenaut. Please note that all the answers … Read more

ASP.NET forum app: obtaining the answer with most likes

We are building a forum type web application, and we are tring to make the answers with most likes (and most dislikes) look different. The Answer entity has a Reactions property (list of reactions) that include likes and dislikes (those are differentiated with a boolean property, true for like, false for dislike). Is there a way to obtain the answer with most likes, and the answer with most dislikes, with a LINQ query directly? or we have to make a method that solves it?