Table of Contents

Method DequeueEach

Namespace
Open.Database.Extensions
Assembly
Open.Database.Extensions.Core.dll

DequeueEach<T>(Queue<T>)

Useful extension for dequeuing items from a queue. Not thread safe but queueing/dequeuing items in between items is supported.

public static IEnumerable<T> DequeueEach<T>(this Queue<T> source)

Parameters

source Queue<T>

Returns

IEnumerable<T>

An enumerable of the items contained within the queue.

Type Parameters

T

Return type of the source queue