I had similar questions in the past - I have array with n elements in it, how can I get all combinations of two elements from it, without repeating?
Ie. if array is like this:
var arr1 = new[] { "A", "B", "C", "D", "E"};
... result should be
AB
AC
AD
AE
BC
BD
BE
CD
CE
CD
Can you help me please achieve this?