/// <summary> /// Gets a 64-bit integer that represents the number of elements in the specified dimension of the array. /// </summary> /// <typeparam name="T">The type of values stored in the array.</typeparam> /// <param name="array">The array.</param> /// <param name="dimension">The dimension whose length needs to be determined.</param> /// <returns>A 64-bit integer that represents the number of elements in the specified dimension.</returns> public static long GetLongLength <T>(this T[,,,] array, Axis4D dimension) { Contracts.Requires.That(array != null); return(array.GetLongLength((int)dimension)); }