delphi泛型实现的接口

delphi中间件 / 2023-08-31 / 原文

delphi泛型实现的接口

type
  TRest<T: record> = record
    resource: string;
    where: string;
    function select: T;
    procedure insert(const aRecord: T);
    procedure update(const aRecord: T);
    procedure delete(const aRecord: T);
  end;