Class SerializedDictionary<K, V, SK, SV>
Dictionary that can serialize keys and values as other types
Implements
IDictionary<K, V>
ICollection<KeyValuePair<K, V>>
IReadOnlyDictionary<K, V>
IReadOnlyCollection<KeyValuePair<K, V>>
IEnumerable<KeyValuePair<K, V>>
Inherited Members
Namespace: UnityEngine.Rendering
Assembly: Unity.RenderPipelines.Core.Runtime.dll
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 SK to K
Declaration
public abstract K DeserializeKey(SK serializedKey)
Parameters
Type | Name | Description |
---|---|---|
SK | serializedKey | They key in SK |
Returns
Type | Description |
---|---|
K | The key in K |
DeserializeValue(SV)
From SV to V
Declaration
public abstract V DeserializeValue(SV serializedValue)
Parameters
Type | Name | Description |
---|---|---|
SV | serializedValue | The value in SV |
Returns
Type | Description |
---|---|
V | The value in V |
OnAfterDeserialize()
OnAfterDeserialize implementation.
Declaration
public void OnAfterDeserialize()
OnBeforeSerialize()
OnBeforeSerialize implementation.
Declaration
public void OnBeforeSerialize()
SerializeKey(K)
From K to SK
Declaration
public abstract SK SerializeKey(K key)
Parameters
Type | Name | Description |
---|---|---|
K | key | They key in K |
Returns
Type | Description |
---|---|
SK | The key in SK |
SerializeValue(V)
From V to SV
Declaration
public abstract SV SerializeValue(V value)
Parameters
Type | Name | Description |
---|---|---|
V | value | The value in V |
Returns
Type | Description |
---|---|
SV | The value in SV |