I have a list of strings
List<String> points = new List<String>();
Let's say points contains [A,B,C,D,E]. I want all possible pairs from the list. My expected output is `
[A,B],
[A,C],
[A,D],
[A,E],
[B,A],
[B,C],
[B,D],
[B,E],
[C,A],
[C,B],
[C,D],
[C,E],
[D,A],
[D,B],
[D,C],
[D,E],
[E,A],
[E,B],
[E,C],
[E,D]
I need to get all the 20 combinations. Can you please help me with this in c#.