BaseDictionary<TKey, TValue>

Namespace: uModCollections

Assembly: uMod.Core.dll

Inheritance Object BaseDictionary<TKey,TValue>

Implements IDictionary<TKey, TValue>, ICollection<KeyValuePair<TKey, TValue>>, IEnumerable<KeyValuePair<TKey, TValue>>, IEnumerable, IEnumerable<TValue>

Summary

Generic dictionary to use as a basis for other dictionary implementations

Constructors

Name

Summary

BaseDictionary (IDictionary<TKey, TValue>)

Properties

Name

Summary

Count

Get the number of items stored in the dictionary

Data

Local store of dictionary data

IsReadOnly

Determine if the dictionary is read-only

Item [ TKey ]

Get a value from the dictionary

Keys

Get a collection of the keys in the dictionary

Values

Get a collection of the values in the dictionary

Methods

Name

Summary

Add (TKey, TValue)

Add (KeyValuePair<TKey, TValue>)

Clear ()

Clear all data stored in the dictionary

Contains (KeyValuePair<TKey, TValue>)

ContainsKey (TKey)

CopyTo (KeyValuePair[]<TKey, TValue>, Int32)

GetEnumerator ()

Get a generic enumerator for the dictionary

Remove (TKey)

Remove (KeyValuePair<TKey, TValue>)

ToDictionary ()

Get stored dictionary data

ToJObject ()

Convert dictionary to a Newtonsoft.JObject

ToJson (Formatting, JsonConverter[])

Convert dictionary to a JSON string using specified formatting and converters

ToJson (JsonConverter[])

Convert dictionary to a JSON string using specified converters

ToString ()

Convert dictionary to a string

TryGetValue (TKey, out TValue)