ArrayExtensions Class

Contains custom extension methods to use with an Array.

Definition

Namespace: DevCase.Extensions.ArrayExtensions
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[HideModuleNameAttribute]
public sealed class ArrayExtensions
Inheritance
Object    ArrayExtensions

Methods

DeinitializeAllT(T) Deinitializes all the elements of the specified Array.

This method just turns to all the elements,

if you also need to dispose them, call DisposeAllT(IEnumerableT) method instead.

DeinitializeAllT(T) Deinitializes all the elements of the specified jagged Array.

This method just turns to all the elements,

if you also need to dispose them, call DisposeAllT(IEnumerableT) method instead.

Equals Determines whether the specified object is equal to the current object.
(Inherited from Object)
FillBoundsT Fills the indices (or columns) of the specified index bound (or row) of the source array, using the given collection of elements.
FindT(T, PredicateT) Searches for an element in the source two-dimensional jagged array that matches the conditions defined by the specified predicate, and returns its first occurrence.
FindT(T, PredicateT) Searches for an element in the source four-dimensional array that matches the conditions defined by the specified predicate, and returns its first occurrence.
FindT(T, PredicateT) Searches for an element in the source three-dimensional array that matches the conditions defined by the specified predicate, and returns its first occurrence.
FindT(T, PredicateT) Searches for an element in the source two-dimensional array that matches the conditions defined by the specified predicate, and returns its first occurrence.
FindAllT(T, PredicateT) Searches for all the elements in the source two-dimensional jagged array that matches the conditions defined by the specified predicate.
FindAllT(T, PredicateT) Searches for all the elements in the source four-dimensional array that matches the conditions defined by the specified predicate.
FindAllT(T, PredicateT) Searches for all the elements in the source three-dimensional array that matches the conditions defined by the specified predicate.
FindAllT(T, PredicateT) Searches for all the elements in the source two-dimensional array that matches the conditions defined by the specified predicate.
FindIndexT(T, PredicateT) Searches for an element in the source two-dimensional jagged array that matches the conditions defined by the specified predicate, and returns the index of its first occurrence.
FindIndexT(T, PredicateT) Searches for an element in the source four-dimensional array that matches the conditions defined by the specified predicate, and returns the index of its first occurrence.
FindIndexT(T, PredicateT) Searches for an element in the source three-dimensional array that matches the conditions defined by the specified predicate, and returns the index of its first occurrence.
FindIndexT(T, PredicateT) Searches for an element in the source two-dimensional array that matches the conditions defined by the specified predicate, and returns the index of its first occurrence.
FindLastT(T, PredicateT) Searches for an element in the source two-dimensional jagged array that matches the conditions defined by the specified predicate, and returns its last occurrence.
FindLastT(T, PredicateT) Searches for an element in the source four-dimensional array that matches the conditions defined by the specified predicate, and returns its last occurrence.
FindLastT(T, PredicateT) Searches for an element in the source three-dimensional array that matches the conditions defined by the specified predicate, and returns its last occurrence.
FindLastT(T, PredicateT) Searches for an element in the source two-dimensional array that matches the conditions defined by the specified predicate, and returns its last occurrence.
FindLastIndexT(T, PredicateT) Searches for an element in the source two-dimensional jagged array that matches the conditions defined by the specified predicate, and returns the index of its last occurrence.
FindLastIndexT(T, PredicateT) Searches for an element in the source four-dimensional array that matches the conditions defined by the specified predicate, and returns the index of its last occurrence.
FindLastIndexT(T, PredicateT) Searches for an element in the source three-dimensional array that matches the conditions defined by the specified predicate, and returns the index of its last occurrence.
FindLastIndexT(T, PredicateT) Searches for an element in the source two-dimensional array that matches the conditions defined by the specified predicate, and returns the index of its last occurrence.
ForEachT(T, ActionT) Performs the specified action on each element of the source collection.
ForEachT(T, ActionT) Performs the specified action on each element of the specified two-dimensional jagged array.
ForEachT(T, ActionT) Performs the specified action on each element of the specified four-dimensional array.
ForEachT(T, ActionT) Performs the specified action on each element of the specified three-dimensional array.
ForEachT(T, ActionT) Performs the specified action on each element of the specified two-dimensional array.
GetHashCode Serves as the default hash function.
(Inherited from Object)
GetRandomItemT Gets a random element from the source array.
GetType Gets the Type of the current instance.
(Inherited from Object)
IndexOfT(T, T) Searches for the specified object in the source two-dimensional jagged array and returns the index of its first occurrence.
IndexOfT(T, T) Searches for the specified object in the source four-dimensional array and returns the index of its first occurrence.
IndexOfT(T, T) Searches for the specified object in the source three-dimensional array and returns the index of its first occurrence.
IndexOfT(T, T) Searches for the specified object in the source two-dimensional array and returns the index of its first occurrence.
IndicesOfT(T, T) Searches for the specified object in the source two-dimensional jagged array and returns the index of all its occurrences.
IndicesOfT(T, T) Searches for the specified object in the source four-dimensional array and returns the index of all its occurrences.
IndicesOfT(T, T) Searches for the specified object in the source three-dimensional array and returns the index of all its occurrences.
IndicesOfT(T, T) Searches for the specified object in the source two-dimensional array and returns the index of all its occurrences.
InitializeAllT(T) Initializes all the elements (that aren't already initialized) of the specified Array.
InitializeAllT(T) Initializes all the elements (that aren't already initialized) of the specified jagged Array.
LastIndexOfT(T, T) Searches for the specified object in the source two-dimensional jagged array and returns the index of its last occurrence.
LastIndexOfT(T, T) Searches for the specified object in the source four-dimensional array and returns the index of its last occurrence.
LastIndexOfT(T, T) Searches for the specified object in the source three-dimensional array and returns the index of its last occurrence.
LastIndexOfT(T, T) Searches for the specified object in the source two-dimensional array and returns the index of its last occurrence.
ResizeT Resizes the number of elements of the source collection.
ToString Returns a string that represents the current object.
(Inherited from Object)

Extension Methods

CanConvertTo Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions)
CanConvertToT Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions)
ConvertToT Converts an object to the specified target type.

If the conversion fails, an exception is thrown.
(Defined by ObjectExtensions)

ConvertToT Converts an object to the specified target type.

If the conversion fails, returns the specified default value.
(Defined by ObjectExtensions)

IsDisposable Determines whether the specified object is a disposable type (i.e., it implements IDisposable interface).
(Defined by ObjectExtensions)
Speak Speaks the string representation of the source object by using the operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions)
Speak Speaks the string representation of the source object by using the operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions)
ThrowIfNullTException Throws the specified exception if the source object is null.
(Defined by ObjectExtensions)

See Also