Show / Hide Table of Contents

Class ArraySegmentExtensions

Provides extension methods for the ArraySegment<T> structure.

Inheritance
Object
ArraySegmentExtensions
Namespace: Celestial.UIToolkit.Extensions
Assembly: Celestial.UIToolkit.Core.dll
Syntax
public static class ArraySegmentExtensions

Methods

| Improve this Doc View Source

IncludesElementAt<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

true if the segment includes the item at the specified index; false if not.

Type Parameters
Name Description
T

The type of the array.

| Improve this Doc View Source

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

true if the segment includes the underlying array's first item; false if not.

Type Parameters
Name Description
T

The type of the array.

| Improve this Doc View Source

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

true if the segment includes the underlying array's last item; false if not.

Type Parameters
Name Description
T

The type of the array.

  • Improve this Doc
  • View Source
Back to top Copyright © 2018 Celestial.UIToolkit - Impressum