Fantasy
搜索结果

    显示/隐藏目录

    SortedOneToManyListPool<TKey, TValue> 类

    基于排序字典实现的一对多映射列表的对象池包装类,继承自 SortedOneToManyList<TKey, TValue> 类, 同时实现了 IDisposable 接口,以支持对象的重用和释放。

    继承
    object
    SortedDictionary<TKey, List<TValue>>
    SortedOneToManyList<TKey, TValue>
    SortedOneToManyListPool<TKey, TValue>
    实现
    IDictionary<TKey, List<TValue>>
    ICollection<KeyValuePair<TKey, List<TValue>>>
    IReadOnlyDictionary<TKey, List<TValue>>
    IReadOnlyCollection<KeyValuePair<TKey, List<TValue>>>
    IEnumerable<KeyValuePair<TKey, List<TValue>>>
    IDictionary
    ICollection
    IEnumerable
    IDisposable
    IPool
    继承成员
    SortedOneToManyList<TKey, TValue>.Contains(TKey, TValue)
    SortedOneToManyList<TKey, TValue>.Add(TKey, TValue)
    SortedOneToManyList<TKey, TValue>.First(TKey)
    SortedOneToManyList<TKey, TValue>.RemoveValue(TKey, TValue)
    SortedOneToManyList<TKey, TValue>.RemoveKey(TKey)
    SortedOneToManyList<TKey, TValue>.Clear()
    SortedDictionary<TKey, List<TValue>>.Add(TKey, List<TValue>)
    SortedDictionary<TKey, List<TValue>>.Clear()
    SortedDictionary<TKey, List<TValue>>.ContainsKey(TKey)
    SortedDictionary<TKey, List<TValue>>.ContainsValue(List<TValue>)
    SortedDictionary<TKey, List<TValue>>.CopyTo(KeyValuePair<TKey, List<TValue>>[], int)
    SortedDictionary<TKey, List<TValue>>.GetEnumerator()
    SortedDictionary<TKey, List<TValue>>.Remove(TKey)
    SortedDictionary<TKey, List<TValue>>.TryGetValue(TKey, out List<TValue>)
    SortedDictionary<TKey, List<TValue>>.Comparer
    SortedDictionary<TKey, List<TValue>>.Count
    SortedDictionary<TKey, List<TValue>>.this[TKey]
    SortedDictionary<TKey, List<TValue>>.Keys
    SortedDictionary<TKey, List<TValue>>.Values
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    命名空间: Fantasy.DataStructure.Collection
    程序集: Fantasy.Net.dll
    语法
    public class SortedOneToManyListPool<TKey, TValue> : SortedOneToManyList<TKey, TValue>, IDictionary<TKey, List<TValue>>, ICollection<KeyValuePair<TKey, List<TValue>>>, IReadOnlyDictionary<TKey, List<TValue>>, IReadOnlyCollection<KeyValuePair<TKey, List<TValue>>>, IEnumerable<KeyValuePair<TKey, List<TValue>>>, IDictionary, ICollection, IEnumerable, IDisposable, IPool where TKey : notnull
    类型参数
    名称 描述
    TKey

    字典中键的类型。

    TValue

    列表中值的类型。

    方法

    | 编辑本文 查看源代码

    Create()

    创建一个 SortedOneToManyListPool<TKey, TValue> 实例。

    声明
    public static SortedOneToManyListPool<TKey, TValue> Create()
    返回
    类型 描述
    SortedOneToManyListPool<TKey, TValue>

    新创建的实例。

    | 编辑本文 查看源代码

    Dispose()

    释放当前对象池实例,将其返回到对象池以供重用。

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

    IsPool()

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

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

    SetIsPool(bool)

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

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

    实现

    IDictionary<TKey, TValue>
    ICollection<T>
    IReadOnlyDictionary<TKey, TValue>
    IReadOnlyCollection<T>
    IEnumerable<T>
    IDictionary
    ICollection
    IEnumerable
    IDisposable
    IPool

    扩展方法

    JsonHelper.ToJson<T>(T)
    DictionaryExtensions.TryRemove<T, TV>(IDictionary<T, TV>, T, out TV)
    • 编辑本文
    • 查看源代码
    本文内容
    Back to top Generated by DocFX