RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Generics.Collections.TPair Record

TPair is a record holding a key-value pair.

Pascal
TPair<TKey,TValue> = record
  Key: TKey;
  Value: TValue;
end;
C++
template <TKey,TValue>
struct TPair {
  TKey Key;
  TValue Value;
};

A variable of type TPair contains a key-value pair. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!