Download Now

    Reference TInterfaces<T>

    Declared in Codebot.Collections.pas on line 354

    TInterfaces<T> is an IList<T> of interfaces which holds a reference to each item until it is removed
      TInterfaces<T: IInterface> = class(TReferences<T>)
      protected
        function AsPointer(Item: T): Pointer; override;
        procedure AddItem(P: Pointer); override;
        procedure RemoveItem(P: Pointer); override;
      public
        { Returns the index of the interface or -1 if it cannot be found }
        function IndexOf(Item: T): Integer; override;
      end;

    See also