Search Results for

    Show / Hide Table of Contents

    Class SerializableDictionary<TKey, TValue>

    Inheritance
    object
    SerializableDictionary<TKey, TValue>
    SerializableDatabase<TData>
    SerializableMetadata
    Implements
    IDictionary<TKey, TValue>
    ICollection<KeyValuePair<TKey, TValue>>
    IEnumerable<KeyValuePair<TKey, TValue>>
    IEnumerable
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9
    Assembly: Glitch9.dll
    Syntax
    [Serializable]
    public class SerializableDictionary<TKey, TValue> : IDictionary<TKey, TValue>, ICollection<KeyValuePair<TKey, TValue>>, IEnumerable<KeyValuePair<TKey, TValue>>, IEnumerable where TKey : notnull
    Type Parameters
    Name Description
    TKey
    TValue

    Constructors

    | Edit this page View Source

    SerializableDictionary()

    Declaration
    public SerializableDictionary()
    | Edit this page View Source

    SerializableDictionary(Dictionary<TKey, TValue>)

    Declaration
    public SerializableDictionary(Dictionary<TKey, TValue> dictionary)
    Parameters
    Type Name Description
    Dictionary<TKey, TValue> dictionary

    Fields

    | Edit this page View Source

    serializedList

    Declaration
    [SerializeField]
    public List<SerializableKeyValuePair<TKey, TValue>> serializedList
    Field Value
    Type Description
    List<SerializableKeyValuePair<TKey, TValue>>

    Properties

    | Edit this page View Source

    Count

    Declaration
    public int Count { get; }
    Property Value
    Type Description
    int
    | Edit this page View Source

    IsReadOnly

    Declaration
    public bool IsReadOnly { get; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    this[TKey]

    Declaration
    public TValue this[TKey key] { get; set; }
    Parameters
    Type Name Description
    TKey key
    Property Value
    Type Description
    TValue
    | Edit this page View Source

    Keys

    Declaration
    public ICollection<TKey> Keys { get; }
    Property Value
    Type Description
    ICollection<TKey>
    | Edit this page View Source

    Values

    Declaration
    public ICollection<TValue> Values { get; }
    Property Value
    Type Description
    ICollection<TValue>

    Methods

    | Edit this page View Source

    Add(KeyValuePair<TKey, TValue>)

    Declaration
    public void Add(KeyValuePair<TKey, TValue> item)
    Parameters
    Type Name Description
    KeyValuePair<TKey, TValue> item
    | Edit this page View Source

    Add(TKey, TValue)

    Declaration
    public void Add(TKey key, TValue value)
    Parameters
    Type Name Description
    TKey key
    TValue value
    | Edit this page View Source

    AddRange(IEnumerable<KeyValuePair<TKey, TValue>>)

    Declaration
    public void AddRange(IEnumerable<KeyValuePair<TKey, TValue>> items)
    Parameters
    Type Name Description
    IEnumerable<KeyValuePair<TKey, TValue>> items
    | Edit this page View Source

    Clear()

    Declaration
    public void Clear()
    | Edit this page View Source

    Contains(KeyValuePair<TKey, TValue>)

    Declaration
    public bool Contains(KeyValuePair<TKey, TValue> item)
    Parameters
    Type Name Description
    KeyValuePair<TKey, TValue> item
    Returns
    Type Description
    bool
    | Edit this page View Source

    ContainsKey(TKey)

    Declaration
    public bool ContainsKey(TKey key)
    Parameters
    Type Name Description
    TKey key
    Returns
    Type Description
    bool
    | Edit this page View Source

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

    Declaration
    public void CopyTo(KeyValuePair<TKey, TValue>[] array, int arrayIndex)
    Parameters
    Type Name Description
    KeyValuePair<TKey, TValue>[] array
    int arrayIndex
    | Edit this page View Source

    FindAll(Predicate<TValue>)

    Declaration
    public List<TValue> FindAll(Predicate<TValue> match)
    Parameters
    Type Name Description
    Predicate<TValue> match
    Returns
    Type Description
    List<TValue>
    | Edit this page View Source

    GetEnumerator()

    Declaration
    public IEnumerator<KeyValuePair<TKey, TValue>> GetEnumerator()
    Returns
    Type Description
    IEnumerator<KeyValuePair<TKey, TValue>>
    | Edit this page View Source

    Remove(KeyValuePair<TKey, TValue>)

    Declaration
    public bool Remove(KeyValuePair<TKey, TValue> item)
    Parameters
    Type Name Description
    KeyValuePair<TKey, TValue> item
    Returns
    Type Description
    bool
    | Edit this page View Source

    Remove(TKey)

    Declaration
    public bool Remove(TKey key)
    Parameters
    Type Name Description
    TKey key
    Returns
    Type Description
    bool
    | Edit this page View Source

    RemoveAll(Predicate<KeyValuePair<TKey, TValue>>)

    Declaration
    public bool RemoveAll(Predicate<KeyValuePair<TKey, TValue>> match)
    Parameters
    Type Name Description
    Predicate<KeyValuePair<TKey, TValue>> match
    Returns
    Type Description
    bool
    | Edit this page View Source

    ToDictionary()

    Declaration
    public Dictionary<TKey, TValue> ToDictionary()
    Returns
    Type Description
    Dictionary<TKey, TValue>
    | Edit this page View Source

    TryGetValue(TKey, out TValue)

    Declaration
    public bool TryGetValue(TKey key, out TValue value)
    Parameters
    Type Name Description
    TKey key
    TValue value
    Returns
    Type Description
    bool

    Implements

    IDictionary<TKey, TValue>
    ICollection<T>
    IEnumerable<T>
    IEnumerable

    Extension Methods

    ArrayExtensions.ToArrayOrEmpty<T>(T)
    ArrayExtensions.ToArrayOrNull<T>(T)
    EventExtensions.ToDelta<T>(T, string, int, string, bool)
    EventExtensions.ToDone<T>(T, string, int, string)
    EventExtensions.ToEvent<T>(T)
    EventExtensions.UpcastDelta<T1, T2>(T1, string, int, string, bool)
    FallbackExtensions.IsOr<TParent, TChild>(TParent, TChild)
    ResponseCastingExtensions.GetResult<T>(T)
    CollectionExtensions.AddOrUpdate<TKey, TValue>(IDictionary<TKey, TValue>, TKey, TValue)
    CollectionExtensions.ContainsAll<T>(IEnumerable<T>, IEnumerable<T>)
    CollectionExtensions.ContainsAny<T>(IEnumerable<T>, params T[])
    CollectionExtensions.IndexOf<T>(IEnumerable<T>, Func<T, bool>)
    CollectionExtensions.IsNotNullOrEmpty<T>(IEnumerable<T>)
    CollectionExtensions.IsNullOrEmpty<T>(IEnumerable<T>)
    SystemExtensions.GetName(object)
    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation