ReadOnlyListSegment<(Of <(<'T>)>)> Constructor (IReadOnlyList<(Of <(<'T>)>)>, Int32, Int32)

Initializes a new instance of the ReadOnlyListSegment<(Of <(<'T>)>)> struct.

Namespace:  Tortuga.Anchor.Collections
Assembly:  Tortuga.Anchor (in Tortuga.Anchor.dll)

Syntax


public ReadOnlyListSegment(
	IReadOnlyList<T> list,
	int offset,
	int count
)
Public Sub New ( _
	list As IReadOnlyList(Of T), _
	offset As Integer, _
	count As Integer _
)

Parameters

list
Type: IReadOnlyList<(Of <(<'T>)>)>
The list.
offset
Type: Int32
The offset.
count
Type: Int32
The count.

Exceptions


ExceptionCondition
[ArgumentNullException]list
[ArgumentOutOfRangeException] offset or count