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(KeyValuePair<TKey, TValue>)

Method in

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

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

Summary

Parameters

SerializedDictionary

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

Remove(TKey)

Method in SerializedDictionary

Summary

public bool Remove(TKey key)

Parameters

Name
Description

TKey key

TryGetValue(TKey,TValue)

Method in SerializedDictionary

Summary

public bool TryGetValue(TKey key, out TValue value)

Parameters

Name
Description

TKey key

Add(TKey,TValue)

Method in SerializedDictionary

Summary

public void Add(TKey key, TValue value)

Parameters

Name
Description

TKey key

Contains(KeyValuePair<TKey, TValue>)

Method in

Name
Description

Keys

Property in

ContainsKey(TKey)

Method in

Name
Description

this[TKey key]

Indexer in

IsReadOnly

Property in

GetEnumerator()

Method in

TValue value

TValue value

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

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

Summary

Parameters

SerializedDictionary
public ICollection<TKey> Keys { get };

Summary

SerializedDictionary
public bool ContainsKey(TKey key)

TKey key

Summary

Parameters

SerializedDictionary
TValue this[TKey key]

Summary

SerializedDictionary
public bool IsReadOnly { get };

Summary

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

Summary

SerializedDictionary

Count

Property in SerializedDictionary

Summary

public int Count { get };

Clear()

Method in SerializedDictionary

Summary

public void Clear()

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

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

Method in SerializedDictionary

Summary

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

Parameters

Name
Description

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

int arrayIndex

TKey

The type of key used in the dictionary.

TValue

The type of value used in the dictionary.

Indexers

Methods

Properties

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

Values

Property in

public ICollection<TValue> Values { get };

Summary

SerializedDictionary