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