Fantasy
搜索结果

    显示/隐藏目录

    ListPool<T> 类

    可释放的列表(List)对象池。

    继承
    object
    List<T>
    ListPool<T>
    实现
    IList<T>
    ICollection<T>
    IReadOnlyList<T>
    IReadOnlyCollection<T>
    IEnumerable<T>
    IList
    ICollection
    IEnumerable
    IDisposable
    IPool
    继承成员
    List<T>.Add(T)
    List<T>.AddRange(IEnumerable<T>)
    List<T>.AsReadOnly()
    List<T>.BinarySearch(int, int, T, IComparer<T>)
    List<T>.BinarySearch(T)
    List<T>.BinarySearch(T, IComparer<T>)
    List<T>.Clear()
    List<T>.Contains(T)
    List<T>.ConvertAll<TOutput>(Converter<T, TOutput>)
    List<T>.CopyTo(int, T[], int, int)
    List<T>.CopyTo(T[])
    List<T>.CopyTo(T[], int)
    List<T>.EnsureCapacity(int)
    List<T>.Exists(Predicate<T>)
    List<T>.Find(Predicate<T>)
    List<T>.FindAll(Predicate<T>)
    List<T>.FindIndex(int, int, Predicate<T>)
    List<T>.FindIndex(int, Predicate<T>)
    List<T>.FindIndex(Predicate<T>)
    List<T>.FindLast(Predicate<T>)
    List<T>.FindLastIndex(int, int, Predicate<T>)
    List<T>.FindLastIndex(int, Predicate<T>)
    List<T>.FindLastIndex(Predicate<T>)
    List<T>.ForEach(Action<T>)
    List<T>.GetEnumerator()
    List<T>.GetRange(int, int)
    List<T>.IndexOf(T)
    List<T>.IndexOf(T, int)
    List<T>.IndexOf(T, int, int)
    List<T>.Insert(int, T)
    List<T>.InsertRange(int, IEnumerable<T>)
    List<T>.LastIndexOf(T)
    List<T>.LastIndexOf(T, int)
    List<T>.LastIndexOf(T, int, int)
    List<T>.Remove(T)
    List<T>.RemoveAll(Predicate<T>)
    List<T>.RemoveAt(int)
    List<T>.RemoveRange(int, int)
    List<T>.Reverse()
    List<T>.Reverse(int, int)
    List<T>.Slice(int, int)
    List<T>.Sort()
    List<T>.Sort(IComparer<T>)
    List<T>.Sort(Comparison<T>)
    List<T>.Sort(int, int, IComparer<T>)
    List<T>.ToArray()
    List<T>.TrimExcess()
    List<T>.TrueForAll(Predicate<T>)
    List<T>.Capacity
    List<T>.Count
    List<T>.this[int]
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    命名空间: Fantasy.DataStructure.Collection
    程序集: Fantasy.Net.dll
    语法
    public sealed class ListPool<T> : List<T>, IList<T>, ICollection<T>, IReadOnlyList<T>, IReadOnlyCollection<T>, IEnumerable<T>, IList, ICollection, IEnumerable, IDisposable, IPool
    类型参数
    名称 描述
    T

    列表中元素的类型。

    方法

    | 编辑本文 查看源代码

    Create(List<T>)

    使用指定的列表创建一个 ListPool<T> 列表(List)对象池的实例。

    声明
    public static ListPool<T> Create(List<T> args)
    参数
    类型 名称 描述
    List<T> args

    要添加到列表的元素列表。

    返回
    类型 描述
    ListPool<T>

    创建的实例。

    | 编辑本文 查看源代码

    Create(params T[])

    使用指定的元素创建一个 ListPool<T> 列表(List)对象池的实例。

    声明
    public static ListPool<T> Create(params T[] args)
    参数
    类型 名称 描述
    T[] args

    要添加到列表的元素。

    返回
    类型 描述
    ListPool<T>

    创建的实例。

    | 编辑本文 查看源代码

    Dispose()

    释放实例所占用的资源,并将实例返回到对象池中,以便重用。

    声明
    public void Dispose()
    | 编辑本文 查看源代码

    IsPool()

    获取一个值,该值指示当前实例是否为对象池中的实例。

    声明
    public bool IsPool()
    返回
    类型 描述
    bool
    | 编辑本文 查看源代码

    SetIsPool(bool)

    设置一个值,该值指示当前实例是否为对象池中的实例。

    声明
    public void SetIsPool(bool isPool)
    参数
    类型 名称 描述
    bool isPool

    实现

    IList<T>
    ICollection<T>
    IReadOnlyList<T>
    IReadOnlyCollection<T>
    IEnumerable<T>
    IList
    ICollection
    IEnumerable
    IDisposable
    IPool

    扩展方法

    JsonHelper.ToJson<T>(T)
    RandomHelper.RandomArray<T>(List<T>)
    • 编辑本文
    • 查看源代码
    本文内容
    Back to top Generated by DocFX