System.Generics.Defaults.TComparer.Construct

提供: RAD Studio API Documentation
移動先: 案内検索

Delphi

class function Construct(const Comparison: TComparison<T>): IComparer<T>;

C++

__classmethod System::DelphiInterface<IComparer__1<T> > __fastcall Construct(const System::DelphiInterface<TComparison__1<T> > Comparison);

プロパティ

種類 可視性 ソース ユニット
function public
System.Generics.Defaults.pas
System.Generics.Defaults.hpp
System.Generics.Defaults TComparer

説明

ConstructTComparer クラスのインスタンスを作成します。

TComparer クラスのインスタンスを生成する必要がある場合は、Construct メソッドを使用します。Comparison は、すべての比較要求を処理する TComparison ルーチンへの参照です。

Construct では、TDelegatedComparer の新しいインスタンスを生成し、ユーザーから提供されるルーチンをパラメータとして TDelegatedComparer のコンストラクタに渡します。

関連項目