System.TGUID.operator Equality
Delphi
D3: Word;
D4: array[0..7] of Byte;
class operator Equal(const Left, Right: TGUID): Boolean; {$IFDEF WIN64} inline; {$ENDIF}
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.pas | System | TGUID |
Description
Function to determine the equality of two TGUID values. Overloaded == operator.
operator Equality returns True if the two TGUID values given as parameters are equal, False otherwise.
var a, b: TGUID; if (a = b) then ; // Do something
There is also a C++ implementation of the == operator:
bool checkClassID(IPersist* p) { TGUID clsid; return SUCCEEDED(p->GetClassID(&clsid)) && (clsid == CLSID_MyObject); }
Note: Do not call the Equality operator directly. It is an overload of the compiler equality operation.