Action
    Preparing search index...

    Represents a strongly typed list of objects that can be accessed by index. Provides methods to search, sort, and manipulate lists.

    Type Parameters

    • T

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Properties

    Item: PropertyGet<number | Int32, JsType<T>> & PropertySet<
        number
        | Int32,
        T | JsType<T>,
    >

    Gets or sets the element at the specified index.

    The zero-based index of the element to get or set.

    The element at the specified index.

    Accessors

    Methods

    • 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

    • Determines whether the specified object is equal to the current object.

      Parameters

      • obj: any

        The object to compare with the current object.

      Returns boolean

      true if the specified object is equal to the current object; otherwise, false.

    • Serves as the default hash function.

      Returns number

      A hash code for the current object.

    • Searches for the specified object and returns the zero-based index of the first occurrence within the entire System.Collections.Generic.List.

      Parameters

      Returns number

      The zero-based index of the first occurrence of item within the entire System.Collections.Generic.List, if found; otherwise, -1.

    • Searches for the specified object and returns the zero-based index of the first occurrence within the range of elements in the System.Collections.Generic.List that extends from the specified index to the last element.

      Parameters

      • item: T | JsType<T>

        The object to locate in the System.Collections.Generic.List. The value can be null for reference types.

      • index: number | Int32

        The zero-based starting index of the search. 0 (zero) is valid in an empty list.

      Returns number

      The zero-based index of the first occurrence of item within the range of elements in the System.Collections.Generic.List that extends from index to the last element, if found; otherwise, -1.

    • Inserts an element into the System.Collections.Generic.List at the specified index.

      Parameters

      • index: number | Int32

        The zero-based index at which item should be inserted.

      • item: T | JsType<T>

        The object to insert. The value can be null for reference types.

      Returns void

    • Removes the element at the specified index of the System.Collections.Generic.List.

      Parameters

      • index: number | Int32

        The zero-based index of the element to remove.

      Returns void

    • Returns a string that represents the current object.

      Returns string

      A string that represents the current object.

    • 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

    • Determines whether the specified object instances are considered equal.

      Parameters

      • objA: any

        The first object to compare.

      • objB: any

        The second object to compare.

      Returns boolean

      true if the objects are considered equal; otherwise, false. If both objA and objB are null, the method returns true.