docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class SerializedDictionary<K, V, SK, SV>

    Dictionary that can serialize keys and values as other types

    Inheritance
    object
    Dictionary<K, V>
    SerializedDictionary<K, V, SK, SV>
    Implements
    IDictionary<K, V>
    ICollection<KeyValuePair<K, V>>
    IDictionary
    ICollection
    IReadOnlyDictionary<K, V>
    IReadOnlyCollection<KeyValuePair<K, V>>
    IEnumerable<KeyValuePair<K, V>>
    IEnumerable
    ISerializable
    IDeserializationCallback
    ISerializationCallbackReceiver
    Inherited Members
    Dictionary<K, V>.Add(K, V)
    Dictionary<K, V>.Clear()
    Dictionary<K, V>.ContainsKey(K)
    Dictionary<K, V>.ContainsValue(V)
    Dictionary<K, V>.GetEnumerator()
    Dictionary<K, V>.GetObjectData(SerializationInfo, StreamingContext)
    Dictionary<K, V>.OnDeserialization(object)
    Dictionary<K, V>.Remove(K)
    Dictionary<K, V>.TryGetValue(K, out V)
    Dictionary<K, V>.Comparer
    Dictionary<K, V>.Count
    Dictionary<K, V>.Keys
    Dictionary<K, V>.Values
    Dictionary<K, V>.this[K]
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Unity.Muse.Common.Utils
    Assembly: solution.dll
    Syntax
    [Serializable]
    public abstract class SerializedDictionary<K, V, SK, SV> : Dictionary<K, V>, IDictionary<K, V>, ICollection<KeyValuePair<K, V>>, IDictionary, ICollection, IReadOnlyDictionary<K, V>, IReadOnlyCollection<KeyValuePair<K, V>>, IEnumerable<KeyValuePair<K, V>>, IEnumerable, ISerializable, IDeserializationCallback, ISerializationCallbackReceiver
    Type Parameters
    Name Description
    K

    The key type

    V

    The value type

    SK

    The type which the key will be serialized for

    SV

    The type which the value will be serialized for

    Methods

    Name Description
    DeserializeKey(SK)

    From SK to K

    DeserializeValue(SV)

    From SV to V

    OnAfterDeserialize()

    OnAfterDeserialize implementation.

    OnBeforeSerialize()

    OnBeforeSerialize implementation.

    SerializeKey(K)

    From K to SK

    SerializeValue(V)

    From V to SV

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023