I have this List<string>.
How to get certain strings via LINQ?
I guessed it should be like
List<string> test = new List<string>;
test.Add("1");
test.Add("2");
test.Add("1");
var dist = test.Where(s=>s == "1") or ???
or
var dist = test.Distinct(a => a == "1"); ???
Thank you!
I found the answer guys! Thanks for many —— 🙂
So it should be