Class ArraySegmentExtensions
Provides extension methods for the ArraySegment<T> structure.
Namespace: Celestial.UIToolkit.Extensions
Assembly: Celestial.UIToolkit.Core.dll
Syntax
public static class ArraySegmentExtensions
Methods
| Improve this Doc View SourceIncludesElementAt<T>(ArraySegment<T>, Int32)
Returns a value indicating whether the segment includes
the item at the specified index
.
Declaration
public static bool IncludesElementAt<T>(this ArraySegment<T> segment, int index)
Parameters
Type | Name | Description |
---|---|---|
ArraySegment<T> | segment | The segment. |
Int32 | index | The index to be checked. |
Returns
Type | Description |
---|---|
Boolean |
|
Type Parameters
Name | Description |
---|---|
T | The type of the array. |
IncludesFirstArrayItem<T>(ArraySegment<T>)
Returns a value indicating whether the segment includes the underlying array's first item.
Declaration
public static bool IncludesFirstArrayItem<T>(this ArraySegment<T> segment)
Parameters
Type | Name | Description |
---|---|---|
ArraySegment<T> | segment | The segment. |
Returns
Type | Description |
---|---|
Boolean |
|
Type Parameters
Name | Description |
---|---|
T | The type of the array. |
IncludesLastArrayItem<T>(ArraySegment<T>)
Returns a value indicating whether the segment includes the underlying array's last item.
Declaration
public static bool IncludesLastArrayItem<T>(this ArraySegment<T> segment)
Parameters
Type | Name | Description |
---|---|---|
ArraySegment<T> | segment | The segment. |
Returns
Type | Description |
---|---|
Boolean |
|
Type Parameters
Name | Description |
---|---|
T | The type of the array. |