CastArray2DTFrom, TToItem(Range) Property
Gets a new
CastArray2DTFrom, TTo instance, which represents a subrange of rows of the current instance indicated by the specified
range.
Please note that the size of
TTo multiplied by
Width must be divisible by the size of
TFrom.
Namespace: KGySoft.CollectionsAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
public CastArray2D<TFrom, TTo> this[
Range range
] { get; }
Public ReadOnly Default Property Item (
range As Range
) As CastArray2D(Of TFrom, TTo)
Get
public:
property CastArray2D<TFrom, TTo> default[Range range] {
CastArray2D<TFrom, TTo> get (Range range);
}
member Item : CastArray2D<'TFrom, 'TTo> with get
- range Range
- The range of rows to get.
CastArray2DTFrom,
TToThe subrange of rows of the current
CastArray2DTFrom, TTo instance indicated by the specified
range.
- If the size of TTo multiplied by Width is not divisible by the size of TFrom,
then this property throws an ArgumentException. If the targeted platform supports the SpanT type and misaligned memory access,
then you can try to use the AsSpan property and the MemoryMarshal.Cast method.
- This member is available in .NET Core 3.0/.NET Standard 2.1 and above.