Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int j = 0;
- for (int i = 0; i < list.Count; i++)
- {
- if (!predicate(list[i]))
- {
- list[j] = list[i];
- j++;
- }
- }
- for (; j < list.Count; j++)
- {
- list.RemoveAt(j)
- }
- // http://smartmania.mobilmania.cz/clanky/vyvijime-pro-wp-v-xna-vykresleni-vyber-a-pohyb-objektu-7-dil-1544
Advertisement
Add Comment
Please, Sign In to add comment