Search Results for

    Show / Hide Table of Contents

    Interface IPool<T>

    Defines the contract for a class that stores and retrieves commonly used objects.

    Namespace: Exiled.API.Features.Pools
    Assembly: Exiled.API.dll
    Syntax
    public interface IPool<T>
    Type Parameters
    Name Description
    T

    The type that is stored in the pool.

    Methods

    | Improve this Doc View Source

    Get()

    Retrieves a stored object of type T, or creates it if it does not exist.

    Declaration
    T Get()
    Returns
    Type Description
    T

    The stored object, or a new object, of type T.

    | Improve this Doc View Source

    Return(T)

    Returns the object to the pool.

    Declaration
    void Return(T obj)
    Parameters
    Type Name Description
    T obj

    The object to return, of type T.

    Extension Methods

    ReflectionExtensions.CopyProperties(Object, Object)
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX