Apq.Cfg.Internal.FastCollections.ToFastReadOnly.md 8.0 KB

Apq.Cfg

Apq.Cfg.Internal.FastCollections

FastCollections.ToFastReadOnly Method

Overloads
ToFastReadOnly<TKey,TValue>(this Dictionary<TKey,TValue>) 创建高性能只读字典
ToFastReadOnly<TKey,TValue>(this IEnumerable<KeyValuePair<TKey,TValue>>) 创建高性能只读字典

FastCollections.ToFastReadOnly<TKey,TValue>(this Dictionary<TKey,TValue>) Method

创建高性能只读字典

public static Apq.Cfg.Internal.FastReadOnlyDictionary<TKey,TValue> ToFastReadOnly<TKey,TValue>(this System.Collections.Generic.Dictionary<TKey,TValue> source)
    where TKey : notnull;

Type parameters

TKey

TValue

Parameters

source System.Collections.Generic.Dictionary<TKey,TValue>

Returns

Apq.Cfg.Internal.FastReadOnlyDictionary<TKey,TValue>

FastCollections.ToFastReadOnly<TKey,TValue>(this IEnumerable<KeyValuePair<TKey,TValue>>) Method

创建高性能只读字典

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;

Type parameters

TKey

TValue

Parameters

source System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<TKey,TValue>>

Returns

Apq.Cfg.Internal.FastReadOnlyDictionary<TKey,TValue>