public static void ClearWithDispose(this GameComponentCollection components) { for (int i = components.Count - 1; i > 0; i--) { components.Dispose(i); } }