ImmutableQueue Class

 

Provides a set of initialization methods for instances of the ImmutableQueue<T> class.

NuGet package: System.Collections.Immutable (about immutable collections and how to install)

Namespace:   System.Collections.Immutable
Assembly:  System.Collections.Immutable (in System.Collections.Immutable.dll)

System.Object
  System.Collections.Immutable.ImmutableQueue

public static class ImmutableQueue

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticCreate<T>()

Creates an empty immutable queue.

System_CAPS_pubmethodSystem_CAPS_staticCreate<T>(T)

Creates a new immutable queue that contains the specified item.

System_CAPS_pubmethodSystem_CAPS_staticCreate<T>(T[])

Creates a new immutable queue that contains the specified array of items.

System_CAPS_pubmethodSystem_CAPS_staticCreateRange<T>(IEnumerable<T>)

Creates a new immutable queue that contains the specified items.

System_CAPS_pubmethodSystem_CAPS_staticDequeue<T>(IImmutableQueue<T>, T)

Removes the item at the beginning of the immutable queue, and returns the new queue.

This type is thread safe.

Return to top
Show: