M42.Collections by Daniel Pelsmaeker

<PackageReference Include="M42.Collections" Version="0.6.5056.5071" />

 Array<T>

An array.
public static Array<T> Empty { get; }

Gets an empty array.

public IEqualityComparer<T> Comparer { get; }

Gets the equality comparer used to compare elements in this list.

public int Count { get; }

public bool IsEmpty { get; }

public bool IsFrozen { get; }

public T this[int index] { get; set; }

public Array(int length)

Initializes a new instance of the Array<T> class.

public Array(int length, IEqualityComparer<T> comparer)

Initializes a new instance of the Array<T> class.

public Array(uint length)

Initializes a new instance of the Array<T> class.

public Array(uint length, IEqualityComparer<T> comparer)

Initializes a new instance of the Array<T> class.

public Array(T[] array)

Initializes a new instance of the Array<T> class.

public static T[] op_Explicit(Array<T> array)

Converts an Array<T> to a .NET array.

public static Array<T> op_Implicit(T[] array)

Converts a .NET array to an Array<T>.

public Array<T> Clone()

Creates a clone of this array.

public bool Contains(T value)

Returns whether the collection contains an element that is equal to the specified value.

public void Freeze()

public int? IndexOf(T value)

Returns the index in the collection of an element that is considered to be equal to the specified value.

public bool IsValidMember(object value)

public void ResetAll()

Resets all elements in this array to the default value.

public void SetAll(T value)

Sets all elements to a particular value.

public void SetAll(Func<int, T> valueProvider)

Sets all elements to a particular value.

public void SetRange(int start, int count, T value)

Sets a range of elements to a particular value.

public void SetRange(int start, int count, Func<int, T> valueProvider)

Sets a range of elements to a particular value.

public bool TryGetMember(object value, out T result)

Attempts to get an element from the collection that is equal to the specified value.