Relative Content

Tag Archive for c#allocation

How to create an uninitialized 2D array?

C# allows you to create an array without it being initialized with GC.AllocateUnitializedArray<T>. T can be any type, such as bool or int. However, I do not know of a way to do this to a 2D array, e.g. bool[,] or int[,].