| Overloads | |
|---|---|
| ToFastReadOnly<TKey,TValue>(this Dictionary<TKey,TValue>) | 创建高性能只读字典 |
| ToFastReadOnly<TKey,TValue>(this IEnumerable<KeyValuePair<TKey,TValue>>) | 创建高性能只读字典 |
创建高性能只读字典
public static Apq.Cfg.Internal.FastReadOnlyDictionary<TKey,TValue> ToFastReadOnly<TKey,TValue>(this System.Collections.Generic.Dictionary<TKey,TValue> source)
where TKey : notnull;
TKey
TValue
source System.Collections.Generic.Dictionary<TKey,TValue>
Apq.Cfg.Internal.FastReadOnlyDictionary<TKey,TValue>
创建高性能只读字典
public static Apq.Cfg.Internal.FastReadOnlyDictionary<TKey,TValue> ToFastReadOnly<TKey,TValue>(this System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<TKey,TValue>> source)
where TKey : notnull;
TKey
TValue
source System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<TKey,TValue>>