Export (0) Print
Expand All

Array.dequeue Function

.NET Framework 3.5

Removes the first element from the specified Array object and returns it.

var firstElement = Array.dequeue(array);

Term

Definition

array

The array to remove the first element from.

The first element of the array.

Use the dequeue function to remove the first element from an Array object. The index value of the remaining elements in the array is reduced by one.

The following example shows how to remove the first element from an array by using the dequeue function.

Community Additions

ADD
Show:
© 2015 Microsoft