Ejemplo n.º 1
0
 public static void Dispose(this GameComponentCollection components, int index)
 {
     (components[index] as IDisposable)?.Dispose();
     components.RemoveAt(index);
 }