Επεξεργασία

Κοινή χρήση μέσω


NIndex Constructors

Definition

Overloads

NIndex(Index)

Constructs an NIndex from an Index.

NIndex(IntPtr, Boolean)

Constructs an NIndex using an index value and a Boolean that indicates if the NIndex is from the start or from the end.

NIndex(Index)

Source:
NIndex.cs
Source:
NIndex.cs

Constructs an NIndex from an Index.

public:
 NIndex(Index index);
public NIndex(Index index);
new System.Buffers.NIndex : Index -> System.Buffers.NIndex
Public Sub New (index As Index)

Parameters

index
Index

The Index to create the NIndex from.

Remarks

If the NIndex constructed from the end, an index value of 1 points at the last element and an index value of 0 points beyond the last element.

Applies to

NIndex(IntPtr, Boolean)

Source:
NIndex.cs
Source:
NIndex.cs

Constructs an NIndex using an index value and a Boolean that indicates if the NIndex is from the start or from the end.

public NIndex(IntPtr value, bool fromEnd = false);
new System.Buffers.NIndex : nativeint * bool -> System.Buffers.NIndex
Public Sub New (value As IntPtr, Optional fromEnd As Boolean = false)

Parameters

value
IntPtr

nativeint

The index value. It must be greater than or equal to zero.

fromEnd
Boolean

true if the index is from the start; false if it's from the end.

Remarks

If the NIndex constructed from the end, an index value of 1 points at the last element and an index value of 0 points beyond the last element.

Applies to