Class FixedSizeQueue<T>
A class that implements a fixed size list.
Inherited Members
Namespace: Microsoft.Graph.Communications.Client.Notifications
Assembly: Microsoft.Graph.Communications.Client.dll
Syntax
public class FixedSizeQueue<T> : IReadOnlyCollection<T>, IEnumerable<T>, IEnumerable
Type Parameters
| Name | Description |
|---|---|
| T | The generic type |
Constructors
FixedSizeQueue(Int32)
Initializes a new instance of the FixedSizeQueue<T> class.
Declaration
public FixedSizeQueue(int maxSize)
Parameters
| Type | Name | Description |
|---|---|---|
| Int32 | maxSize | The maximum size. |
Properties
Count
Gets the number of elements in the collection.
Declaration
public int Count { get; }
Property Value
| Type | Description |
|---|---|
| Int32 |
Methods
Enqueue(T)
Enqueues the item.
Declaration
public void Enqueue(T item)
Parameters
| Type | Name | Description |
|---|---|---|
| T | item | The object. |
GetEnumerator()
Declaration
public IEnumerator<T> GetEnumerator()
Returns
| Type | Description |
|---|---|
| IEnumerator<T> |
Remove(T)
Removes the specified item.
Declaration
public void Remove(T item)
Parameters
| Type | Name | Description |
|---|---|---|
| T | item | The item. |
Explicit Interface Implementations
IEnumerable.GetEnumerator()
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
| Type | Description |
|---|---|
| IEnumerator |
Implements
See Also
ICollection<T>