Search Results for

    Show / Hide Table of Contents

    Class QueuePool<T>

    Defines a system used to store and retrieve System.Collections.Generic.Queue<T> objects.

    Inheritance
    System.Object
    QueuePool<T>
    Implements
    IPool<System.Collections.Generic.Queue<T>>
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Exiled.API.Features.Pools
    Assembly: Exiled.API.dll
    Syntax
    public class QueuePool<T> : IPool<Queue<T>>
    Type Parameters
    Name Description
    T

    The type of the objects in the list.

    Properties

    | Improve this Doc View Source

    Pool

    Gets a QueuePool<T> that stores lists.

    Declaration
    public static QueuePool<T> Pool { get; }
    Property Value
    Type Description
    QueuePool<T>

    Methods

    | Improve this Doc View Source

    Get()

    Declaration
    public Queue<T> Get()
    Returns
    Type Description
    System.Collections.Generic.Queue<T>
    | Improve this Doc View Source

    Get(IEnumerable<T>)

    Retrieves a stored object of type System.Collections.Generic.List<T>, or creates it if it does not exist. The list will be filled with all the provided items.

    Declaration
    public Queue<T> Get(IEnumerable<T> items)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<T> items

    The items to fill the list with.

    Returns
    Type Description
    System.Collections.Generic.Queue<T>

    The stored object, or a new object, of type System.Collections.Generic.List<T>.

    | Improve this Doc View Source

    Return(Queue<T>)

    Declaration
    public void Return(Queue<T> obj)
    Parameters
    Type Name Description
    System.Collections.Generic.Queue<T> obj
    | Improve this Doc View Source

    ToArrayReturn(Queue<T>)

    Returns the System.Collections.Generic.Queue<T> to the pool and returns its contents as an array.

    Declaration
    public T[] ToArrayReturn(Queue<T> obj)
    Parameters
    Type Name Description
    System.Collections.Generic.Queue<T> obj

    The System.Collections.Generic.Queue<T> to return.

    Returns
    Type Description
    T[]

    The contents of the returned queue as an array.

    Implements

    IPool<T>

    Extension Methods

    ReflectionExtensions.CopyProperties(Object, Object)

    See Also

    DictionaryPool<TKey, TValue>
    HashSetPool<T>
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX