All pages
Powered by GitBook
1 of 16

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Add(TKey,TValue)

Method in SerializedDictionary

Summary

public void Add(TKey key, TValue value)

Parameters

Name
Description

TKey key

Clear()

Method in

Contains(KeyValuePair<TKey, TValue>)

Method in

Name
Description

TValue value

public void Clear()

Summary

SerializedDictionary
public bool Contains(KeyValuePair<TKey, TValue> item)

System.Collections.Generic.KeyValuePair<TKey, TValue> item

Summary

Parameters

SerializedDictionary

Add(KeyValuePair<TKey, TValue>)

Method in

Name
Description
public void Add(KeyValuePair<TKey, TValue> item)

System.Collections.Generic.KeyValuePair<TKey, TValue> item

Summary

Parameters

SerializedDictionary

this[TKey key]

Indexer in

Count

Property in

TValue this[TKey key]

Summary

SerializedDictionary
public int Count { get };

Summary

SerializedDictionary

Keys

Property in SerializedDictionary

Summary

public ICollection<TKey> Keys { get };

IsReadOnly

Property in SerializedDictionary

Summary

public bool IsReadOnly { get };

Remove(TKey)

Method in SerializedDictionary

Summary

public bool Remove(TKey key)

Parameters

Name
Description

TKey key

Values

Property in SerializedDictionary

Summary

public ICollection<TValue> Values { get };

ContainsKey(TKey)

Method in SerializedDictionary

Summary

public bool ContainsKey(TKey key)

Parameters

Name
Description

TKey key

Remove(KeyValuePair<TKey, TValue>)

Method in SerializedDictionary

Summary

public bool Remove(KeyValuePair<TKey, TValue> item)

Parameters

Name
Description

System.Collections.Generic.KeyValuePair<TKey, TValue> item

GetEnumerator()

Method in SerializedDictionary

Summary

public IEnumerator<KeyValuePair<TKey, TValue>> GetEnumerator()

SerializedDictionary

Class in Yarn.Unity

Inherits from System.Object

Summary

An System.Collections.Generic.IDictionary`2 that can be serialized as part of a Unity object.

public class SerializedDictionary<TKey, TValue> : IDictionary<TKey, TValue>, ISerializationCallbackReceiver

Remarks

Prior to Unity 2020, dictionaries cannot be directly serialized by Unity. This class is a workaround; it provides an API identical to System.Collections.Generic.Dictionary2</code> , and stores its contents as two <code>System.Collections.Generic.List1 s: one for TKey , and one for TValue .

Type Parameters

Name
Description
Name
Description
Name
Description
Name
Description

TryGetValue(TKey,TValue)

Method in SerializedDictionary

Summary

public bool TryGetValue(TKey key, out TValue value)

Parameters

Name
Description

TKey key

CopyTo(KeyValuePair<TKey, TValue>[],int)

Method in

Name
Description

TValue value

TKey

The type of key used in the dictionary.

TValue

The type of value used in the dictionary.

Indexers

Methods

Properties

public void CopyTo(KeyValuePair<TKey, TValue>[] array, int arrayIndex)

System.Collections.Generic.KeyValuePair<TKey, TValue>[] array

Summary

Parameters

SerializedDictionary

int arrayIndex

this[TKey key]
Add(TKey,TValue)
Add(KeyValuePair<TKey, TValue>)
Count
IsReadOnly
Clear()
Contains(KeyValuePair<TKey, TValue>)
ContainsKey(TKey)
CopyTo(KeyValuePair<TKey, TValue>[],int)
GetEnumerator()
Remove(TKey)
Remove(KeyValuePair<TKey, TValue>)
TryGetValue(TKey,TValue)
Keys
Values