If I have a C# array of objects and want to iterate over all pairwise combinations, how is this best accomplished? For:
int[] list = new int[3] {100, 200, 300}; This would look like:
100, 200 100, 300 200, 300 Obviously, I want a function that can take an array of any size, and preferably is generic so that any object type could work.