I have some information in an object from a class that I have created. I only need one instance of this class, but the properties in it are reset several times during its use. The object is populated from one form and read from another so it needs to be global.
Most of the data in this object are multi-dimensional by nature so I have this info stored in multi-dimensional arrays. My problem is that the boundaries of the arrays often changes when the data in the object are reset. C# does not let me resize these arrays easily.
I am using Visual Studio 2008 / dot NET 3.5 and it is a C# Windows Forms Application.
I am not an expert in C# so I need to know if there is an acceptable way to reset the arrays whenever needed or do I need to dispose my object and create a new each time? What type of class definition would you recommend?