I have been working with a string[] array in C# that gets returned from a function call. I could possibly cast to a Generic collection, but I was w
string[]
Generic
int size = a.Length; for (int i = 0; i < size; i++) { for (int j = i + 1; j < size; j++) { if (a[i] == a[j]) { for (int k = j; k < size; k++) { if (k != size - 1) { int temp = a[k]; a[k] = a[k + 1]; a[k + 1] = temp; } } j--; size--; } } }