Download Now

    Reference INamedValues<T>

    Declared in Codebot.System.pas on line 863

    INamedValues<T> is a reference counted version of TNamedValues<T>
      INamedValues<T> = interface(IEnumerable<T>)
      public
        { Adds or replace a named value in the dictionary }
        procedure Add(const Name: string; const Value: T);
        { Remove a named value from the dictionary }
        procedure Remove(const Name: string);
        { Removes an item by index from the dictionary and decreases the count by
          one }
        procedure Delete(Index: Integer);
        { Removes all named values setting the count of the dictionary to 0 }
        procedure Clear;
        { The number of key value pairs in the dictionary }
        property Count: Integer read GetCount;
        { Returns true if there are no named values in the dictionary }
        property Empty: Boolean read GetEmpty;
        { Names indexed by an integer }
        property Names[Index: Integer]: string read GetName;
        { Values indexed by a named key }
        property Values[Name: string]: T read GetValue; default;
        { Values indexed by an integer }
        property ValueByIndex[Index: Integer]: T read GetValueByIndex;
      end;