Fantasy
搜索结果

    显示/隐藏目录

    OneToManyQueuePool<TKey, TValue> 类

    支持一对多关系的队列池,用于存储具有相同键的值的队列集合。

    继承
    object
    Dictionary<TKey, Queue<TValue>>
    OneToManyQueue<TKey, TValue>
    OneToManyQueuePool<TKey, TValue>
    实现
    IDictionary<TKey, Queue<TValue>>
    ICollection<KeyValuePair<TKey, Queue<TValue>>>
    IReadOnlyDictionary<TKey, Queue<TValue>>
    IReadOnlyCollection<KeyValuePair<TKey, Queue<TValue>>>
    IEnumerable<KeyValuePair<TKey, Queue<TValue>>>
    IDictionary
    ICollection
    IEnumerable
    IDeserializationCallback
    ISerializable
    IDisposable
    IPool
    继承成员
    OneToManyQueue<TKey, TValue>.Contains(TKey, TValue)
    OneToManyQueue<TKey, TValue>.Enqueue(TKey, TValue)
    OneToManyQueue<TKey, TValue>.Dequeue(TKey)
    OneToManyQueue<TKey, TValue>.TryDequeue(TKey, out TValue)
    OneToManyQueue<TKey, TValue>.RemoveKey(TKey)
    OneToManyQueue<TKey, TValue>.Clear()
    Dictionary<TKey, Queue<TValue>>.Add(TKey, Queue<TValue>)
    Dictionary<TKey, Queue<TValue>>.Clear()
    Dictionary<TKey, Queue<TValue>>.ContainsKey(TKey)
    Dictionary<TKey, Queue<TValue>>.ContainsValue(Queue<TValue>)
    Dictionary<TKey, Queue<TValue>>.EnsureCapacity(int)
    Dictionary<TKey, Queue<TValue>>.GetEnumerator()
    Dictionary<TKey, Queue<TValue>>.GetObjectData(SerializationInfo, StreamingContext)
    Dictionary<TKey, Queue<TValue>>.OnDeserialization(object)
    Dictionary<TKey, Queue<TValue>>.Remove(TKey)
    Dictionary<TKey, Queue<TValue>>.Remove(TKey, out Queue<TValue>)
    Dictionary<TKey, Queue<TValue>>.TrimExcess()
    Dictionary<TKey, Queue<TValue>>.TrimExcess(int)
    Dictionary<TKey, Queue<TValue>>.TryAdd(TKey, Queue<TValue>)
    Dictionary<TKey, Queue<TValue>>.TryGetValue(TKey, out Queue<TValue>)
    Dictionary<TKey, Queue<TValue>>.Comparer
    Dictionary<TKey, Queue<TValue>>.Count
    Dictionary<TKey, Queue<TValue>>.this[TKey]
    Dictionary<TKey, Queue<TValue>>.Keys
    Dictionary<TKey, Queue<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 OneToManyQueuePool<TKey, TValue> : OneToManyQueue<TKey, TValue>, IDictionary<TKey, Queue<TValue>>, ICollection<KeyValuePair<TKey, Queue<TValue>>>, IReadOnlyDictionary<TKey, Queue<TValue>>, IReadOnlyCollection<KeyValuePair<TKey, Queue<TValue>>>, IEnumerable<KeyValuePair<TKey, Queue<TValue>>>, IDictionary, ICollection, IEnumerable, IDeserializationCallback, ISerializable, IDisposable, IPool where TKey : notnull
    类型参数
    名称 描述
    TKey

    键的类型。

    TValue

    值的类型。

    方法

    | 编辑本文 查看源代码

    Create()

    创建一个 OneToManyQueuePool<TKey, TValue> 一对多关系的队列池的实例。

    声明
    public static OneToManyQueuePool<TKey, TValue> Create()
    返回
    类型 描述
    OneToManyQueuePool<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
    IDeserializationCallback
    ISerializable
    IDisposable
    IPool

    扩展方法

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