Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
fpc-src / usr / share / fpcsrc / 3.0.0 / tests / webtbs / tw21684.pp
Size: Mime:
{$mode delphi}{$H+}{$M+}

uses
  Classes, SysUtils,
  typinfo;

type
  { TTest }
  TTest = class
  private
    function GetX: IUnknown ;
  published
    property X: IUnknown read GetX;
  end;

function TTest.GetX: IUnknown;
begin
  Result := TInterfacedPersistent.Create;
end;

var
  V: IUnknown;
  FT: TTest;
begin
  FT := TTest.Create;
  V := GetInterfaceProp(FT, 'X');
end.