docs.unity3d.com
    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>
    SerializedDictionary<K, V>
    Namespace: UnityEngine.Rendering
    Syntax
    [Serializable]
    public abstract class SerializedDictionary<K, V, SK, SV> : Dictionary<K, V>, IDictionary<K, V>, ICollection<KeyValuePair<K, V>>, IReadOnlyDictionary<K, V>, IReadOnlyCollection<KeyValuePair<K, V>>, IEnumerable<KeyValuePair<K, V>>, IDictionary, ICollection, IEnumerable, IDeserializationCallback, ISerializable, 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

    DeserializeKey(SK)

    From to

    Declaration
    public abstract K DeserializeKey(SK serializedKey)
    Parameters
    Type Name Description
    SK serializedKey

    They key in

    Returns
    Type Description
    K

    The key in

    DeserializeValue(SV)

    From to

    Declaration
    public abstract V DeserializeValue(SV serializedValue)
    Parameters
    Type Name Description
    SV serializedValue

    The value in

    Returns
    Type Description
    V

    The value in

    OnAfterDeserialize()

    OnAfterDeserialize implementation.

    Declaration
    public void OnAfterDeserialize()
    Implements
    ISerializationCallbackReceiver.OnAfterDeserialize()

    OnBeforeSerialize()

    OnBeforeSerialize implementation.

    Declaration
    public void OnBeforeSerialize()
    Implements
    ISerializationCallbackReceiver.OnBeforeSerialize()

    SerializeKey(K)

    From to

    Declaration
    public abstract SK SerializeKey(K key)
    Parameters
    Type Name Description
    K key

    They key in

    Returns
    Type Description
    SK

    The key in

    SerializeValue(V)

    From to

    Declaration
    public abstract SV SerializeValue(V value)
    Parameters
    Type Name Description
    V value

    The value in

    Returns
    Type Description
    SV

    The value in

    Extension Methods

    ReflectionUtils.Invoke(Object, String, Object[])
    ReflectionUtils.SetField(Object, String, Object)
    ReflectionUtils.GetField(Object, String)
    ReflectionUtils.GetFields(Object)
    In This Article
    • Methods
      • DeserializeKey(SK)
      • DeserializeValue(SV)
      • OnAfterDeserialize()
      • OnBeforeSerialize()
      • SerializeKey(K)
      • SerializeValue(V)
    • Extension Methods
    Back to top
    Terms of use
    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