ArrayExtensions Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Helpers for working with the Array type.
public static class ArrayExtensions
type ArrayExtensions = class
Public Module ArrayExtensions
- Inheritance
-
ArrayExtensions
Methods
AsMemory<T>(T[,,], Int32) |
Creates a new instance of the Memory<T> struct wrapping a layer in a 3D array. |
AsMemory<T>(T[,,]) |
Creates a new Memory<T> over an input 3D |
AsMemory<T>(T[,]) |
Creates a new Memory<T> over an input 2D |
AsMemory2D<T>(T[,,], Int32) |
Creates a new instance of the Memory2D<T> struct wrapping a layer in a 3D array. |
AsMemory2D<T>(T[,], Int32, Int32, Int32, Int32) |
Creates a new Memory2D<T> over an input 2D |
AsMemory2D<T>(T[,]) |
Creates a new Memory2D<T> over an input 2D |
AsSpan<T>(T[,,], Int32) |
Creates a new instance of the Span<T> struct wrapping a layer in a 3D array. |
AsSpan<T>(T[,,]) |
Creates a new Span<T> over an input 3D |
AsSpan<T>(T[,]) |
Creates a new Span<T> over an input 2D |
AsSpan2D<T>(T[,,], Int32) |
Creates a new instance of the Span2D<T> struct wrapping a layer in a 3D array. |
AsSpan2D<T>(T[,], Int32, Int32, Int32, Int32) |
Creates a new Span2D<T> over an input 2D |
AsSpan2D<T>(T[,]) |
Creates a new Span2D<T> over an input 2D |
Count<T>(T[,,], T) |
Counts the number of occurrences of a given value into a target 3D |
Count<T>(T[,], T) |
Counts the number of occurrences of a given value into a target 2D |
Count<T>(T[], T) |
Counts the number of occurrences of a given value into a target |
DangerousGetReference<T>(T[,,]) |
Returns a reference to the first element within a given 3D |
DangerousGetReference<T>(T[,]) |
Returns a reference to the first element within a given 2D |
DangerousGetReference<T>(T[]) |
Returns a reference to the first element within a given |
DangerousGetReferenceAt<T>(T[,,], Int32, Int32, Int32) |
Returns a reference to an element at a specified coordinate within a given 3D |
DangerousGetReferenceAt<T>(T[,], Int32, Int32) |
Returns a reference to an element at a specified coordinate within a given 2D |
DangerousGetReferenceAt<T>(T[], Int32) |
Returns a reference to an element at a specified index within a given |
Enumerate<T>(T[]) |
Enumerates the items in the input
The compiler will take care of properly setting up the |
GetColumn<T>(T[,], Int32) |
Returns a RefEnumerable<T> that returns the items from a given column in a given 2D
The compiler will take care of properly setting up the |
GetDjb2HashCode<T>(T[,,]) |
Gets a content hash from the input 3D |
GetDjb2HashCode<T>(T[,]) |
Gets a content hash from the input 2D |
GetDjb2HashCode<T>(T[]) |
Gets a content hash from the input |
GetRow<T>(T[,], Int32) |
Returns a RefEnumerable<T> over a row in a given 2D |
GetRowMemory<T>(T[,], Int32) |
Returns a Memory<T> over a row in a given 2D |
GetRowSpan<T>(T[,], Int32) |
Returns a Span<T> over a row in a given 2D |
IsCovariant<T>(T[,,]) |
Checks whether or not a given |
IsCovariant<T>(T[,]) |
Checks whether or not a given |
IsCovariant<T>(T[]) |
Checks whether or not a given |
Tokenize<T>(T[], T) |
Tokenizes the values in the input
The compiler will take care of properly setting up the |