Search Results for

    Show / Hide Table of Contents

    Class StringBuilderPool

    Defines a system used to store and retrieve System.Text.StringBuilder objects.

    Inheritance
    System.Object
    StringBuilderPool
    Implements
    IPool<System.Text.StringBuilder>
    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 StringBuilderPool : IPool<StringBuilder>

    Properties

    | Improve this Doc View Source

    Pool

    Gets a StringBuilderPool that stores System.Text.StringBuilder.

    Declaration
    public static StringBuilderPool Pool { get; }
    Property Value
    Type Description
    StringBuilderPool

    Methods

    | Improve this Doc View Source

    Get()

    Declaration
    public StringBuilder Get()
    Returns
    Type Description
    System.Text.StringBuilder
    | Improve this Doc View Source

    Get(Int32)

    Retrieves a stored object of type System.Text.StringBuilder, or creates it if it does not exist. The capacity of the StringBuilder will be equal to or greater than capacity.

    Declaration
    public StringBuilder Get(int capacity)
    Parameters
    Type Name Description
    System.Int32 capacity

    The capacity of content in the System.Text.StringBuilder.

    Returns
    Type Description
    System.Text.StringBuilder

    The stored object, or a new object, of type System.Text.StringBuilder.

    | Improve this Doc View Source

    Return(StringBuilder)

    Declaration
    public void Return(StringBuilder obj)
    Parameters
    Type Name Description
    System.Text.StringBuilder obj
    | Improve this Doc View Source

    ToStringReturn(StringBuilder)

    Returns the contents of the System.Text.StringBuilder and returns it to the pool.

    Declaration
    public string ToStringReturn(StringBuilder obj)
    Parameters
    Type Name Description
    System.Text.StringBuilder obj

    The System.Text.StringBuilder to return.

    Returns
    Type Description
    System.String

    The value of the System.Text.StringBuilder.

    Implements

    IPool<T>

    Extension Methods

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