I've got a few global arrays I use in a simple WinForms game. The arrays are initialized when a new game starts. When a player is in the middle of the game (the arrays are filled with data) he clicks on the StartNewGame() button (restarts the game). What to do next?

Is it ok to **reinitialize the whole array** for the new game or should I just set every array item to null and use the already initialized array (which would be slower)?

I mean is it okay to do something like this?

```
MyClass[,] gameObjects;

public Form1()
{
   StartNewGame();

   // game flow .. simplified here .. normally devided in functions and events.. 

   StartNewGame();

   // other game flow
}

public StartNewGame()
{
   gameObjects = new MyClass[10,10];

   // some work with gameObjects
}

```