Tanoda
Leap.Unity.SerializableDictionary< TKey, TValue > Class Template Reference

In order to have this class be serialized, you will always need to create your own non-generic version specific to your needs. This is the same workflow that exists for using the UnityEvent class as well. More...

Inheritance diagram for Leap.Unity.SerializableDictionary< TKey, TValue >:
Leap.Unity.SerializableDictionaryBase Leap.Unity.ICanReportDuplicateInformation Leap.Unity.ISerializableDictionary

Public Member Functions

void Add (TKey key, TValue value)
 
void Clear ()
 
bool ContainsKey (TKey key)
 
bool ContainsValue (TValue value)
 
bool Remove (TKey key)
 
bool TryGetValue (TKey key, out TValue value)
 
Dictionary< TKey, TValue >.Enumerator GetEnumerator ()
 
virtual float KeyDisplayRatio ()
 Returns how much of the display space should be allocated to the key. Should be a value in the range 0-1. More...
 
override string ToString ()
 
void OnAfterDeserialize ()
 
void OnBeforeSerialize ()
 
float KeyDisplayRatio ()
 

Static Public Member Functions

static implicit operator Dictionary< TKey, TValue > (SerializableDictionary< TKey, TValue > serializableDictionary)
 

Properties

TValue this[TKey key] [get, set]
 
Dictionary< TKey, TValue >.KeyCollection Keys [get]
 
Dictionary< TKey, TValue >.ValueCollection Values [get]
 
int Count [get]
 

Detailed Description

In order to have this class be serialized, you will always need to create your own non-generic version specific to your needs. This is the same workflow that exists for using the UnityEvent class as well.

Definition at line 39 of file SerializableDictionary.cs.

Member Function Documentation

◆ Add()

void Leap.Unity.SerializableDictionary< TKey, TValue >.Add ( TKey  key,
TValue  value 
)

Definition at line 73 of file SerializableDictionary.cs.

◆ Clear()

void Leap.Unity.SerializableDictionary< TKey, TValue >.Clear ( )

Definition at line 77 of file SerializableDictionary.cs.

◆ ContainsKey()

bool Leap.Unity.SerializableDictionary< TKey, TValue >.ContainsKey ( TKey  key)

Definition at line 81 of file SerializableDictionary.cs.

◆ ContainsValue()

bool Leap.Unity.SerializableDictionary< TKey, TValue >.ContainsValue ( TValue  value)

Definition at line 85 of file SerializableDictionary.cs.

◆ GetEnumerator()

Dictionary< TKey, TValue >.Enumerator Leap.Unity.SerializableDictionary< TKey, TValue >.GetEnumerator ( )

Definition at line 97 of file SerializableDictionary.cs.

◆ KeyDisplayRatio()

virtual float Leap.Unity.SerializableDictionary< TKey, TValue >.KeyDisplayRatio ( )
virtual

Returns how much of the display space should be allocated to the key. Should be a value in the range 0-1.

Implements Leap.Unity.ISerializableDictionary.

Definition at line 115 of file SerializableDictionary.cs.

◆ OnAfterDeserialize()

void Leap.Unity.SerializableDictionary< TKey, TValue >.OnAfterDeserialize ( )

Definition at line 136 of file SerializableDictionary.cs.

◆ OnBeforeSerialize()

void Leap.Unity.SerializableDictionary< TKey, TValue >.OnBeforeSerialize ( )

Definition at line 204 of file SerializableDictionary.cs.

◆ operator Dictionary< TKey, TValue >()

static implicit Leap.Unity.SerializableDictionary< TKey, TValue >.operator Dictionary< TKey, TValue > ( SerializableDictionary< TKey, TValue >  serializableDictionary)
static

Definition at line 105 of file SerializableDictionary.cs.

◆ Remove()

bool Leap.Unity.SerializableDictionary< TKey, TValue >.Remove ( TKey  key)

Definition at line 89 of file SerializableDictionary.cs.

◆ ToString()

override string Leap.Unity.SerializableDictionary< TKey, TValue >.ToString ( )

Definition at line 119 of file SerializableDictionary.cs.

◆ TryGetValue()

bool Leap.Unity.SerializableDictionary< TKey, TValue >.TryGetValue ( TKey  key,
out TValue  value 
)

Definition at line 93 of file SerializableDictionary.cs.

Property Documentation

◆ Count

int Leap.Unity.SerializableDictionary< TKey, TValue >.Count
get

Definition at line 69 of file SerializableDictionary.cs.

◆ Keys

Dictionary<TKey, TValue>.KeyCollection Leap.Unity.SerializableDictionary< TKey, TValue >.Keys
get

Definition at line 61 of file SerializableDictionary.cs.

◆ this[TKey key]

TValue Leap.Unity.SerializableDictionary< TKey, TValue >.this[TKey key]
getset

Definition at line 56 of file SerializableDictionary.cs.

◆ Values

Dictionary<TKey, TValue>.ValueCollection Leap.Unity.SerializableDictionary< TKey, TValue >.Values
get

Definition at line 65 of file SerializableDictionary.cs.


The documentation for this class was generated from the following file: