blob: 9b41c8a9d5a80a4642fde79dba7f67d87509858a [file] [log] [blame]
//----------------------------------------------------------------------------------------
// Copyright © 2007 - 2014 Tangible Software Solutions Inc.
// This class can be used by anyone provided that the copyright notice remains intact.
//
// This class provides the logic to simulate Java rectangular arrays, which are jagged
// arrays with inner arrays of the same length. A size of -1 indicates unknown length.
//----------------------------------------------------------------------------------------
internal static partial class RectangularArrays
{
internal static long[][] ReturnRectangularLongArray(int Size1, int Size2)
{
long[][] Array;
if (Size1 > -1)
{
Array = new long[Size1][];
if (Size2 > -1)
{
for (int Array1 = 0; Array1 < Size1; Array1++)
{
Array[Array1] = new long[Size2];
}
}
}
else
Array = null;
return Array;
}
}