Action
    Preparing search index...

    Interface IDictionary

    Represents a nongeneric collection of key/value pairs.

    interface IDictionary {
        Item: PropertyGet<any, unknown> & PropertySet<any, any>;
        get Count(): number;
        get IsFixedSize(): boolean;
        get IsReadOnly(): boolean;
        get Keys(): System.Collections.ICollection;
        get Values(): System.Collections.ICollection;
        "[iterator]"(): Iterator<unknown>;
        Add(key: any, value: any): void;
        Add(key: any, value: any): void;
        Cast<T1, T2>(this: T2, type: TypeRef<T1>): T1;
        Clear(): void;
        Contains(key: any): boolean;
        Contains(key: any): boolean;
        Remove(key: any): void;
        Remove(key: any): void;
        TryCast<T1, T2>(this: T2, type: TypeRef<T1>): null | T1;
    }

    Hierarchy (View Summary)

    Index

    Properties

    Item: PropertyGet<any, unknown> & PropertySet<any, any>

    Gets or sets the element with the specified key.

    The key of the element to get or set.

    The element with the specified key, or null if the key does not exist.

    Accessors

    Methods

    • Adds an element with the provided key and value to the System.Collections.IDictionary object.

      Parameters

      • key: any

        The System.Object to use as the key of the element to add.

      • value: any

        The System.Object to use as the value of the element to add.

      Returns void

    • Adds an element with the provided key and value to the System.Collections.IDictionary object.

      Parameters

      • key: any

        The System.Object to use as the key of the element to add.

      • value: any

        The System.Object to use as the value of the element to add.

      Returns void

    • Casts this object to the specified type. Throws error on failure.

      Type Parameters

      • T1

        The target type of the cast.

      • T2

        The type of the object to cast.

      Parameters

      Returns T1

    • Removes the element with the specified key from the System.Collections.IDictionary object.

      Parameters

      • key: any

        The key of the element to remove.

      Returns void

    • Removes the element with the specified key from the System.Collections.IDictionary object.

      Parameters

      • key: any

        The key of the element to remove.

      Returns void

    • Casts this object to the specified type. Returns null on failure.

      Type Parameters

      • T1

        The target type of the cast.

      • T2

        The type of the object to cast.

      Parameters

      Returns null | T1