docs.unity.cn
    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>
    Inherited Members
    Dictionary<K, V>.Add(K, V)
    System.Collections.Generic.Dictionary<K, V>.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<K, V>>.Add(System.Collections.Generic.KeyValuePair<K, V>)
    System.Collections.Generic.Dictionary<K, V>.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<K, V>>.Contains(System.Collections.Generic.KeyValuePair<K, V>)
    System.Collections.Generic.Dictionary<K, V>.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<K, V>>.Remove(System.Collections.Generic.KeyValuePair<K, V>)
    Dictionary<K, V>.Clear()
    Dictionary<K, V>.ContainsKey(K)
    Dictionary<K, V>.ContainsValue(V)
    Dictionary<K, V>.GetEnumerator()
    System.Collections.Generic.Dictionary<K, V>.System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<K, V>>.GetEnumerator()
    Dictionary<K, V>.GetObjectData(SerializationInfo, StreamingContext)
    Dictionary<K, V>.OnDeserialization(Object)
    Dictionary<K, V>.Remove(K)
    Dictionary<K, V>.TryGetValue(K, V)
    System.Collections.Generic.Dictionary<K, V>.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<K, V>>.CopyTo(System.Collections.Generic.KeyValuePair<K, V>[], System.Int32)
    Dictionary<K, V>.ICollection.CopyTo(Array, Int32)
    Dictionary<K, V>.IEnumerable.GetEnumerator()
    System.Collections.Generic.Dictionary<K, V>.System.Collections.IDictionary.get_Item(System.Object)
    System.Collections.Generic.Dictionary<K, V>.System.Collections.IDictionary.set_Item(System.Object, System.Object)
    Dictionary<K, V>.IDictionary.Add(Object, Object)
    Dictionary<K, V>.IDictionary.Contains(Object)
    Dictionary<K, V>.IDictionary.GetEnumerator()
    Dictionary<K, V>.IDictionary.Remove(Object)
    Dictionary<K, V>.Comparer
    Dictionary<K, V>.Count
    Dictionary<K, V>.Keys
    System.Collections.Generic.Dictionary<K, V>.System.Collections.Generic.IDictionary<K, V>.Keys
    System.Collections.Generic.Dictionary<K, V>.System.Collections.Generic.IReadOnlyDictionary<K, V>.Keys
    Dictionary<K, V>.Values
    System.Collections.Generic.Dictionary<K, V>.System.Collections.Generic.IDictionary<K, V>.Values
    System.Collections.Generic.Dictionary<K, V>.System.Collections.Generic.IReadOnlyDictionary<K, V>.Values
    Dictionary<K, V>.Item[K]
    System.Collections.Generic.Dictionary<K, V>.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<K, V>>.IsReadOnly
    Dictionary<K, V>.ICollection.IsSynchronized
    Dictionary<K, V>.ICollection.SyncRoot
    Dictionary<K, V>.IDictionary.IsFixedSize
    Dictionary<K, V>.IDictionary.IsReadOnly
    Dictionary<K, V>.IDictionary.Keys
    Dictionary<K, V>.IDictionary.Values
    Dictionary<K, V>.IDictionary.Item[Object]
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: UnityEngine.Rendering
    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

    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

    AnalyticsUtils.ToNestedColumnWithDefault<T>(T, T, Boolean)
    ReflectionUtils.Invoke(Object, String, Object[])
    ReflectionUtils.SetField(Object, String, Object)
    ReflectionUtils.GetField(Object, String)
    ReflectionUtils.GetFields(Object)
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on 08 September 2023