namespace DTT.Utils.Extensions { /// /// Provides extension methods for arrays. /// public static class ArrayExtensions { /// /// Returns whether an index is inside the bounds of the array. /// /// The type of array to check the bounds of. /// The array to check the bounds of. /// The index to check. /// Whether the index is inside the bounds. public static bool HasIndex(this T[] array, int index) => index.InRange(0, array.Length - 1); } }