internal static void BoundsInternal <T>(T[,,] arr, int startX, int startY, int startZ, int count) { BoundsInternal(arr, startX, startY, startY); GEQZeroInternal(count, nameof(count)); Debug.Assert(ArrayHelper.CalculateCountUnbound(arr, startX, startY, startZ, false) + count <= arr.Length, "count out of bounds"); }