編集

次の方法で共有


SerializableDictionary<TKey,TValue> Class

Definition

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()

Applies to