OneToManySortedDictionaryPool<TKey, TSortedKey, TValue> 类
一对多映射关系的排序字典对象池。
继承
Dictionary<TKey, SortedDictionary<TSortedKey, TValue>>
OneToManySortedDictionary<TKey, TSortedKey, TValue>
OneToManySortedDictionaryPool<TKey, TSortedKey, TValue>
实现
IDictionary<TKey, SortedDictionary<TSortedKey, TValue>>
IReadOnlyDictionary<TKey, SortedDictionary<TSortedKey, TValue>>
继承成员
命名空间: Fantasy.DataStructure.Dictionary
程序集: Fantasy.Net.dll
语法
public class OneToManySortedDictionaryPool<TKey, TSortedKey, TValue> : OneToManySortedDictionary<TKey, TSortedKey, TValue>, IDictionary<TKey, SortedDictionary<TSortedKey, TValue>>, ICollection<KeyValuePair<TKey, SortedDictionary<TSortedKey, TValue>>>, IReadOnlyDictionary<TKey, SortedDictionary<TSortedKey, TValue>>, IReadOnlyCollection<KeyValuePair<TKey, SortedDictionary<TSortedKey, TValue>>>, IEnumerable<KeyValuePair<TKey, SortedDictionary<TSortedKey, TValue>>>, IDictionary, ICollection, IEnumerable, IDeserializationCallback, ISerializable, IDisposable, IPool where TKey : notnull where TSortedKey : notnull
类型参数
名称 | 描述 |
---|---|
TKey | 外部字典中的键类型。 |
TSortedKey | 内部字典中的排序键类型。 |
TValue | 内部字典中的值类型。 |
方法
| 编辑本文 查看源代码Create()
声明
public static OneToManySortedDictionaryPool<TKey, TSortedKey, TValue> Create()
返回
类型 | 描述 |
---|---|
OneToManySortedDictionaryPool<TKey, TSortedKey, TValue> | 新创建的 OneToManySortedDictionaryPool 实例。 |
Dispose()
释放当前实例及其资源。
声明
public void Dispose()
IsPool()
获取一个值,该值指示当前实例是否为对象池中的实例。
声明
public bool IsPool()
返回
类型 | 描述 |
---|---|
bool |
SetIsPool(bool)
设置一个值,该值指示当前实例是否为对象池中的实例。
声明
public void SetIsPool(bool isPool)
参数
类型 | 名称 | 描述 |
---|---|---|
bool | isPool |