I am currently trying to implement code to generate frequent sequences. In doing so, I need to get the list in place of the list of row lists as follows:
List<List<string>> myList = new List<List<string>>();
List<string> input1 = new List<string>() {"a", "b", "d"};
List<string> input2 = new List<string>() {"a", "b", "c"};
myList.Add(input1);
myList.Add(input2);
The result I need is:
myList = {{"a","b","c"},{"a","b","d"}};
I tried to use myList.Sort(), but he picked up System.InvalidOperationException. I am not so good at LINQ, so I have not used anything like this.
source
share