SerializableDictionary<TKey,TValue> Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Generic Dictionary helper class that handles serialization of keys and values into lists before/after serialization time since Dictionary by itself is not Serializable. Extends C# Dictionary class to support typical API access methods
generic <typename TKey, typename TValue>
public ref class SerializableDictionary : System::Collections::Generic::Dictionary<TKey, TValue>, UnityEngine::ISerializationCallbackReceiver
[System.Serializable]
public class SerializableDictionary<TKey,TValue> : System.Collections.Generic.Dictionary<TKey,TValue>, UnityEngine.ISerializationCallbackReceiver
[<System.Serializable>]
type SerializableDictionary<'Key, 'Value> = class
inherit Dictionary<'Key, 'Value>
interface ISerializationCallbackReceiver
Public Class SerializableDictionary(Of TKey, TValue)
Inherits Dictionary(Of TKey, TValue)
Implements ISerializationCallbackReceiver
Type Parameters
- TKey
Key type for Dictionary
- TValue
Value type for Dictionary
- Inheritance
-
Dictionary<TKey,TValue>SerializableDictionary<TKey,TValue>
- Attributes
- Implements
-
UnityEngine.ISerializationCallbackReceiver
Constructors
SerializableDictionary<TKey,TValue>() |
Methods
OnAfterDeserialize() | |
OnBeforeSerialize() |
Explicit Interface Implementations
ISerializationCallbackReceiver.OnAfterDeserialize() | |
ISerializationCallbackReceiver.OnBeforeSerialize() |