DotNext by .NET Foundation and Contributors

<PackageReference Include="DotNext" Version="4.9.0" />

.NET API 564,632 bytes

 OneDimensionalArray

public static class OneDimensionalArray
Provides specialized methods to work with one-dimensional array.
public static int BitwiseCompare<T>(this T[] first, T[] second) where T : ValueType modreq(System.Runtime.InteropServices.UnmanagedType)

Compares content of the two arrays.

public static bool BitwiseEquals<T>(this T[] first, T[] second) where T : ValueType modreq(System.Runtime.InteropServices.UnmanagedType)

Determines whether two arrays contain the same set of bits.

public static int BitwiseHashCode<T>(this T[] array, bool salted = true) where T : ValueType modreq(System.Runtime.InteropServices.UnmanagedType)

Computes bitwise hash code for the array content.

public static int BitwiseHashCode<T>(this T[] array, int hash, Func<int, int, int> hashFunction, bool salted = true) where T : ValueType modreq(System.Runtime.InteropServices.UnmanagedType)

Computes bitwise hash code for the array content using custom hash function.

public static int BitwiseHashCode<T, THashFunction>(this T[] array, bool salted = true) where T : ValueType modreq(System.Runtime.InteropServices.UnmanagedType) where THashFunction : struct, IConsumer<int>, ISupplier<int>

Computes bitwise hash code for the array content using custom hash function.

public static long BitwiseHashCode64<T>(this T[] array, long hash, Func<long, long, long> hashFunction, bool salted = true) where T : ValueType modreq(System.Runtime.InteropServices.UnmanagedType)

Computes bitwise hash code for the array content using custom hash function.

public static long BitwiseHashCode64<T, THashFunction>(this T[] array, bool salted = true) where T : ValueType modreq(System.Runtime.InteropServices.UnmanagedType) where THashFunction : struct, IConsumer<long>, ISupplier<long>

Computes bitwise hash code for the array content using custom hash function.

public static long BitwiseHashCode64<T>(this T[] array, bool salted = true) where T : ValueType modreq(System.Runtime.InteropServices.UnmanagedType)

Computes bitwise hash code for the array content.

public static T[] Concat<T>(this T[] left, T[] right, long startIndex)

Concatenates the array with the specified span of elements.

public static void ForEach<T>(this T[] array, RefAction<T, IntPtr> action)

Applies specific action to each array element.

public static void ForEach<T, TArg>(this T[] array, method action, TArg arg)

public static T[] Insert<T>(this T[] array, T element, long index)

Insert a new element into array and return modified array.

public static T[] Insert<T>(this T[] array, T element, Index index)

Insert a new element into array and return modified array.

public static bool IsNullOrEmpty(this Array array)

Indicates that array is null or empty.

public static T[] RemoveAll<T>(this T[] array, Predicate<T> match, out long count)

Removes all the elements that match the conditions defined by the specified predicate.

public static T[] RemoveAll<T>(this T[] array, method match, out long count)

public static T[] RemoveAll<T>(this T[] array, Predicate<T> match, Action<T> callback)

Removes all the elements that match the conditions defined by the specified predicate.

public static T[] RemoveAll<T>(this T[] array, method match, Action<T> callback)

public static T[] RemoveAt<T>(this T[] array, long index)

Removes the element at the specified in the array and returns modified array.

public static T[] RemoveAt<T>(this T[] array, Index index)

Removes the element at the specified in the array and returns modified array.

public static T[] RemoveFirst<T>(this T[] input, long count)

Removes the specified number of elements from the beginning of the array.

public static T[] RemoveLast<T>(this T[] input, long count)

Removes the specified number of elements from the end of the array.

public static bool SequenceEqual(this object[] first, object[] second, bool parallel = false)

Determines whether two arrays contain the same set of elements.

public static T[] Slice<T>(this T[] input, long startIndex, long length)

Returns sub-array.

public static ArraySegment<T> Slice<T>(this T[] input, Range range)

Computes view over the specified array.