Show / Hide Table of Contents

    Class FixedSizeQueue<T>

    A class that implements a fixed size list.

    Inheritance
    Object
    FixedSizeQueue<T>
    Implements
    IReadOnlyCollection<T>
    IEnumerable<T>
    IEnumerable
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    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

    System.Collections.Generic.IReadOnlyCollection<T>
    System.Collections.Generic.IEnumerable<T>
    System.Collections.IEnumerable

    See Also

    ICollection<T>
    Back to top Copyright (c) Microsoft Corporation. All rights reserved.