Photon Fusion
2.0.8
A serializable dictionary. More...
Inherits SerializableDictionary, IDictionary< TKey, TValue >, and ISerializationCallbackReceiver.
Public Member Functions | |
| void | Add (TKey key, TValue value) |
| Adds the specified key and value to the SerializableDictionary. More... | |
| virtual void | Clear () |
| Removes all keys and values from the SerializableDictionary. More... | |
| bool | ContainsKey (TKey key) |
| Determines whether the SerializableDictionary contains the specified key. More... | |
| Dictionary< TKey, TValue >.Enumerator | GetEnumerator () |
| Returns an enumerator that iterates through the SerializableDictionary. More... | |
| bool | Remove (TKey key) |
| Removes the value with the specified key from the SerializableDictionary. More... | |
| void | Reset () |
| Resets the SerializableDictionary, clearing its internal dictionary. More... | |
| void | Store () |
| Stores the SerializableDictionary's data into an array for serialization. This includes handling duplicates and null keys. More... | |
| bool | TryGetValue (TKey key, out TValue value) |
| Gets the value associated with the specified key. More... | |
Static Public Member Functions | |
| static SerializableDictionary< TKey, TValue > | Create< TKey, TValue > () |
| Creates a new serializable dictionary. More... | |
| static SerializableDictionary< TKey, TValue > | Wrap (Dictionary< TKey, TValue > dictionary) |
| Wraps an existing Dictionary into a SerializableDictionary. More... | |
Static Public Attributes | |
| const string | EntryKeyPropertyPath = nameof(Entry.Key) |
| The property path for the key in the Entry structure. More... | |
| const string | ItemsPropertyPath = nameof(_items) |
| The property path for the items in the SerializableDictionary. More... | |
Properties | |
| int | Count [get] |
| Gets the number of key/value pairs contained in the SerializableDictionary. More... | |
| bool | IsReadOnly [get] |
| Gets a value indicating whether the SerializableDictionary is read-only. This value is always false. More... | |
| Dictionary< TKey, TValue >.KeyCollection | Keys [get] |
| Gets a collection containing the keys in the SerializableDictionary. More... | |
| TValue | this[TKey key] [get, set] |
| Gets or sets the value associated with the specified key. More... | |
| Dictionary< TKey, TValue >.ValueCollection | Values [get] |
| Gets a collection containing the values in the SerializableDictionary. More... | |
A serializable dictionary.
| TKey | The type of the dictionary key. |
| TValue | The type of the dictionary value. |
This class is not thread-safe.
| void Add | ( | TKey | key, |
| TValue | value | ||
| ) |
Adds the specified key and value to the SerializableDictionary.
| key | The key of the element to add. |
| value | The value of the element to add. |
|
virtual |
Removes all keys and values from the SerializableDictionary.
| bool ContainsKey | ( | TKey | key | ) |
Determines whether the SerializableDictionary contains the specified key.
| key | The key to locate in the SerializableDictionary. |
|
static |
Creates a new serializable dictionary.
| TKey | The type of the dictionary key. |
| TValue | The type of the dictionary value. |
| Dictionary<TKey, TValue>.Enumerator GetEnumerator | ( | ) |
Returns an enumerator that iterates through the SerializableDictionary.
| bool Remove | ( | TKey | key | ) |
Removes the value with the specified key from the SerializableDictionary.
| key | The key of the element to remove. |
| void Reset | ( | ) |
Resets the SerializableDictionary, clearing its internal dictionary.
| void Store | ( | ) |
Stores the SerializableDictionary's data into an array for serialization. This includes handling duplicates and null keys.
| bool TryGetValue | ( | TKey | key, |
| out TValue | value | ||
| ) |
Gets the value associated with the specified key.
| key | The key of the value to get. |
| value | When this method returns, contains the value associated with the specified key, if the key is found; otherwise, the default value for the type of the value parameter. This parameter is passed uninitialized. |
|
static |
Wraps an existing Dictionary into a SerializableDictionary.
| dictionary | The Dictionary to be wrapped. |
|
static |
The property path for the key in the Entry structure.
|
static |
The property path for the items in the SerializableDictionary.
|
get |
Gets the number of key/value pairs contained in the SerializableDictionary.
|
get |
Gets a value indicating whether the SerializableDictionary is read-only. This value is always false.
|
get |
Gets a collection containing the keys in the SerializableDictionary.
|
getset |
Gets or sets the value associated with the specified key.
| key | The key of the value to get or set. |
|
get |
Gets a collection containing the values in the SerializableDictionary.