Array2D<T> Implicit  Conversion Operators

Definition

Namespace: Numerics.NET.Collections
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3

Overload List

Implicit(Array2D<T> to ReadOnlySpan<T>) Implicitly converts a 2D array to a read-only span.
Implicit(Array2D<T> to Span<T>) Implicitly converts a 2D array to a (writable) span.

Implicit Conversion (Array2D<T> to ReadOnlySpan<T>)

Implicitly converts a 2D array to a read-only span.
C#
public static implicit operator ReadOnlySpan<T> (
	Array2D<T> array
)

Parameters

array  Array2D<T>
The array to convert.

Return Value

ReadOnlySpan<T>

Implicit Conversion (Array2D<T> to Span<T>)

Implicitly converts a 2D array to a (writable) span.
C#
public static implicit operator Span<T> (
	Array2D<T> array
)

Parameters

array  Array2D<T>
The array to convert.

Return Value

Span<T>

See Also