|
XposeCraft
1.0.1-rc1
Developer API
|
Represents a generic collection of key/value pairs. More...
Classes | |
| struct | Enumerator |
Public Member Functions | |
| SerializableDictionary3 () | |
| SerializableDictionary3 (int capacity) | |
| SerializableDictionary3 (IEqualityComparer< TKey > comparer) | |
| SerializableDictionary3 (int capacity, IEqualityComparer< TKey > comparer) | |
| SerializableDictionary3 (IDictionary< TKey, TValue > dictionary) | |
| SerializableDictionary3 (IDictionary< TKey, TValue > dictionary, IEqualityComparer< TKey > comparer) | |
| bool | ContainsValue (TValue value) |
| bool | ContainsKey (TKey key) |
| void | Clear () |
| void | Add (TKey key, TValue value) |
| bool | Remove (TKey key) |
| bool | TryGetValue (TKey key, out TValue value) |
| void | Add (KeyValuePair< TKey, TValue > item) |
| bool | Contains (KeyValuePair< TKey, TValue > item) |
| void | CopyTo (KeyValuePair< TKey, TValue >[] array, int index) |
| bool | Remove (KeyValuePair< TKey, TValue > item) |
| Enumerator | GetEnumerator () |
Properties | |
| Dictionary< TKey, TValue > | AsDictionary [get] |
| int | Count [get] |
| TValue | this[TKey key, TValue defaultValue] [get] |
| TValue | this[TKey key] [get, set] |
| ICollection< TKey > | Keys [get] |
| ICollection< TValue > | Values [get] |
| bool | IsReadOnly [get] |
Represents a generic collection of key/value pairs.
Can be used for serialization purposes, which implies that it can be used during a hot-swap in Unity Editor. To use, inherit this generic class to a non-generic version (no need to be public) and annotate [Serializable]. Source: https://forum.unity3d.com/threads/finally-a-serializable-dictionary-for-unity-extracted-from-system-collections-generic.335797/
| TKey | The type of keys in the dictionary. |
| TValue | The type of values in the dictionary. |
| XposeCraft.Collections.SerializableDictionary3< TKey, TValue >.SerializableDictionary3 | ( | ) |
| XposeCraft.Collections.SerializableDictionary3< TKey, TValue >.SerializableDictionary3 | ( | int | capacity | ) |
| XposeCraft.Collections.SerializableDictionary3< TKey, TValue >.SerializableDictionary3 | ( | IEqualityComparer< TKey > | comparer | ) |
| XposeCraft.Collections.SerializableDictionary3< TKey, TValue >.SerializableDictionary3 | ( | int | capacity, |
| IEqualityComparer< TKey > | comparer | ||
| ) |
| XposeCraft.Collections.SerializableDictionary3< TKey, TValue >.SerializableDictionary3 | ( | IDictionary< TKey, TValue > | dictionary | ) |
| XposeCraft.Collections.SerializableDictionary3< TKey, TValue >.SerializableDictionary3 | ( | IDictionary< TKey, TValue > | dictionary, |
| IEqualityComparer< TKey > | comparer | ||
| ) |
| void XposeCraft.Collections.SerializableDictionary3< TKey, TValue >.Add | ( | TKey | key, |
| TValue | value | ||
| ) |
| void XposeCraft.Collections.SerializableDictionary3< TKey, TValue >.Add | ( | KeyValuePair< TKey, TValue > | item | ) |
| void XposeCraft.Collections.SerializableDictionary3< TKey, TValue >.Clear | ( | ) |
| bool XposeCraft.Collections.SerializableDictionary3< TKey, TValue >.Contains | ( | KeyValuePair< TKey, TValue > | item | ) |
| bool XposeCraft.Collections.SerializableDictionary3< TKey, TValue >.ContainsKey | ( | TKey | key | ) |
| bool XposeCraft.Collections.SerializableDictionary3< TKey, TValue >.ContainsValue | ( | TValue | value | ) |
| void XposeCraft.Collections.SerializableDictionary3< TKey, TValue >.CopyTo | ( | KeyValuePair< TKey, TValue > [] | array, |
| int | index | ||
| ) |
| Enumerator XposeCraft.Collections.SerializableDictionary3< TKey, TValue >.GetEnumerator | ( | ) |
| bool XposeCraft.Collections.SerializableDictionary3< TKey, TValue >.Remove | ( | TKey | key | ) |
| bool XposeCraft.Collections.SerializableDictionary3< TKey, TValue >.Remove | ( | KeyValuePair< TKey, TValue > | item | ) |
| bool XposeCraft.Collections.SerializableDictionary3< TKey, TValue >.TryGetValue | ( | TKey | key, |
| out TValue | value | ||
| ) |
|
get |
|
get |
|
get |
|
get |
|
get |
|
getset |
|
get |