Einzelnen Beitrag anzeigen

bra

Registriert seit: 20. Jan 2015
711 Beiträge
 
Delphi 10.2 Tokyo Enterprise
 
#44

AW: Schon wieder: Warum Interfaces

  Alt 20. Okt 2016, 16:57
Delphi-Quellcode:
Supports(Test, IIntf2, Intf2);
if Assigned(Intf2) then
  Intf2.SomeMethod3;
Könnte man das nicht kürzen?

Delphi-Quellcode:
if Supports(Test, IIntf2, Intf2) then
  Intf2.SomeMethod3;
  Mit Zitat antworten Zitat