Constructor CharSpanLookupDictionary
- Namespace
- DisCatSharp.Common
- Assembly
- DisCatSharp.Common.dll
CharSpanLookupDictionary()
Creates a new, empty CharSpanLookupDictionary<TValue> with string keys and items of type
TValue.
public CharSpanLookupDictionary()
CharSpanLookupDictionary(int)
Creates a new, empty CharSpanLookupDictionary<TValue> with string keys and items of type
TValue and sets its initial capacity to specified value.
public CharSpanLookupDictionary(int initialCapacity)
Parameters
initialCapacityintInitial capacity of the dictionary.
CharSpanLookupDictionary(IDictionary<string, TValue?>)
Creates a new CharSpanLookupDictionary<TValue> with string keys and items of type
TValue and populates it with key-value pairs from supplied dictionary.
public CharSpanLookupDictionary(IDictionary<string, TValue?> values)
Parameters
valuesIDictionary<string, TValue>Dictionary containing items to populate this dictionary with.
CharSpanLookupDictionary(IReadOnlyDictionary<string, TValue?>)
Creates a new CharSpanLookupDictionary<TValue> with string keys and items of type
TValue and populates it with key-value pairs from supplied dictionary.
public CharSpanLookupDictionary(IReadOnlyDictionary<string, TValue?> values)
Parameters
valuesIReadOnlyDictionary<string, TValue>Dictionary containing items to populate this dictionary with.
CharSpanLookupDictionary(IEnumerable<KeyValuePair<string, TValue?>>)
Creates a new CharSpanLookupDictionary<TValue> with string keys and items of type
TValue and populates it with key-value pairs from supplied key-value collection.
public CharSpanLookupDictionary(IEnumerable<KeyValuePair<string, TValue?>> values)
Parameters
valuesIEnumerable<KeyValuePair<string, TValue>>Dictionary containing items to populate this dictionary with.