Is it possible to split each line (containing 2 words) in the list, and then compare if both words are the same and assume that the entries are using Linq? For instance:
Say I have a list containing
list[0] = "bla bla";
list[1] = "bla heh";
list[2] = "heh heh";
In this case, the output of the counter should be 2.
my attempt:
var count = lst.Count(c => c.Split(.......)....
can't get past this.
Any help would be greatly appreciated.
source
share