Constructor CharSpanLookupReadOnlyDictionary
- Namespace
- DisCatSharp.Common
- Assembly
- DisCatSharp.Common.dll
CharSpanLookupReadOnlyDictionary(IDictionary<string, TValue?>)
Creates a new CharSpanLookupReadOnlyDictionary<TValue> with string keys and items of type TValue
and populates it with key-value pairs from supplied dictionary.
public CharSpanLookupReadOnlyDictionary(IDictionary<string, TValue?> values)
Parameters
values
IDictionary<string, TValue>Dictionary containing items to populate this dictionary with.
CharSpanLookupReadOnlyDictionary(IReadOnlyDictionary<string, TValue?>)
Creates a new CharSpanLookupReadOnlyDictionary<TValue> with string keys and items of type TValue
and populates it with key-value pairs from supplied dictionary.
public CharSpanLookupReadOnlyDictionary(IReadOnlyDictionary<string, TValue?> values)
Parameters
values
IReadOnlyDictionary<string, TValue>Dictionary containing items to populate this dictionary with.
CharSpanLookupReadOnlyDictionary(IEnumerable<KeyValuePair<string, TValue?>>)
Creates a new CharSpanLookupReadOnlyDictionary<TValue> with string keys and items of type TValue
and populates it with key-value pairs from supplied key-value collection.
public CharSpanLookupReadOnlyDictionary(IEnumerable<KeyValuePair<string, TValue?>> values)
Parameters
values
IEnumerable<KeyValuePair<string, TValue>>Dictionary containing items to populate this dictionary with.