XposeCraft  1.0.1-rc1
Developer API
XposeCraft.Collections.SerializableDictionary1< TKey, TValue > Class Template Reference

Represents a generic collection of key/value pairs. More...

Inheritance diagram for XposeCraft.Collections.SerializableDictionary1< TKey, TValue >:

Public Member Functions

void OnBeforeSerialize ()
 
void OnAfterDeserialize ()
 
void Add (TKey key, TValue value)
 
bool ContainsKey (TKey key)
 
bool Remove (TKey key)
 
bool TryGetValue (TKey key, out TValue value)
 
void Add (KeyValuePair< TKey, TValue > item)
 
void Clear ()
 
bool Contains (KeyValuePair< TKey, TValue > item)
 
void CopyTo (KeyValuePair< TKey, TValue >[] array, int arrayIndex)
 
bool Remove (KeyValuePair< TKey, TValue > item)
 
IEnumerator< KeyValuePair< TKey, TValue > > GetEnumerator ()
 

Properties

ICollection< TKey > Keys [get]
 
ICollection< TValue > Values [get]
 
int Count [get]
 
bool IsReadOnly [get]
 
TValue this[TKey key] [get, set]
 

Detailed Description

Represents a generic collection of key/value pairs.

Can be used for serialization purposes, which implies that it can be used during a hot-swap in Unity Editor. Source: http://stackoverflow.com/questions/36194178/unity-serialized-dictionary-index-out-of-range-after-12-items

Template Parameters
TKeyThe type of keys in the dictionary.
TValueThe type of values in the dictionary.

Member Function Documentation

◆ Add() [1/2]

void XposeCraft.Collections.SerializableDictionary1< TKey, TValue >.Add ( TKey  key,
TValue  value 
)

◆ Add() [2/2]

void XposeCraft.Collections.SerializableDictionary1< TKey, TValue >.Add ( KeyValuePair< TKey, TValue >  item)

◆ Clear()

void XposeCraft.Collections.SerializableDictionary1< TKey, TValue >.Clear ( )

◆ Contains()

bool XposeCraft.Collections.SerializableDictionary1< TKey, TValue >.Contains ( KeyValuePair< TKey, TValue >  item)

◆ ContainsKey()

bool XposeCraft.Collections.SerializableDictionary1< TKey, TValue >.ContainsKey ( TKey  key)

◆ CopyTo()

void XposeCraft.Collections.SerializableDictionary1< TKey, TValue >.CopyTo ( KeyValuePair< TKey, TValue > []  array,
int  arrayIndex 
)

◆ GetEnumerator()

IEnumerator<KeyValuePair<TKey, TValue> > XposeCraft.Collections.SerializableDictionary1< TKey, TValue >.GetEnumerator ( )

◆ OnAfterDeserialize()

void XposeCraft.Collections.SerializableDictionary1< TKey, TValue >.OnAfterDeserialize ( )

◆ OnBeforeSerialize()

void XposeCraft.Collections.SerializableDictionary1< TKey, TValue >.OnBeforeSerialize ( )

◆ Remove() [1/2]

bool XposeCraft.Collections.SerializableDictionary1< TKey, TValue >.Remove ( TKey  key)

◆ Remove() [2/2]

bool XposeCraft.Collections.SerializableDictionary1< TKey, TValue >.Remove ( KeyValuePair< TKey, TValue >  item)

◆ TryGetValue()

bool XposeCraft.Collections.SerializableDictionary1< TKey, TValue >.TryGetValue ( TKey  key,
out TValue  value 
)

Property Documentation

◆ Count

int XposeCraft.Collections.SerializableDictionary1< TKey, TValue >.Count
get

◆ IsReadOnly

bool XposeCraft.Collections.SerializableDictionary1< TKey, TValue >.IsReadOnly
get

◆ Keys

ICollection<TKey> XposeCraft.Collections.SerializableDictionary1< TKey, TValue >.Keys
get

◆ this[TKey key]

TValue XposeCraft.Collections.SerializableDictionary1< TKey, TValue >.this[TKey key]
getset

◆ Values

ICollection<TValue> XposeCraft.Collections.SerializableDictionary1< TKey, TValue >.Values
get

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