API:System.Generics.Defaults.TStringComparer

From RAD Studio API Documentation
Jump to: navigation, search

System.Generics.Defaults.TCustomComparerSystem.Generics.Defaults.TSingletonImplementationSystem.TObjectTStringComparer

Delphi

TStringComparer = class(TCustomComparer<string>)

C++

class PASCALIMPLEMENTATION TStringComparer : public TCustomComparer__1<System::UnicodeString>

Properties

Type Visibility Source Unit Parent
class public
System.Generics.Defaults.pas
System.Generics.Defaults.hpp
System.Generics.Defaults System.Generics.Defaults

Description

TCustomComparer is a generic base for classes that implement the IComparer and IEqualityComparer interfaces.

System.Generics.Defaults.TStringComparer inherits from System.Generics.Defaults.TCustomComparer. All content below this line refers to System.Generics.Defaults.TCustomComparer.

TCustomComparer is a generic base for classes that implement the IComparer and IEqualityComparer interfaces.

Use TCustomComparer as a base for classes that have to support both comparison and equality checking. The Compare, Equals, and GetHashCode methods are abstract and thus must be implemented in descendant classes.

See Also

Code Examples