Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for (int x = 0; x < testarray.Count; x += 2)
- {
- for (int y = x + 2; y < testarray.Count; y += 2)
- {
- if ((int)testarray[x] == (int)testarray[y] && (int)testarray[x + 1] == (int)testarray[y + 1])
- {
- testarray.RemoveAt(y);
- testarray.RemoveAt(y + 1);
- y = x + 2;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement