Einzelnen Beitrag anzeigen

Benutzerbild von Mavarik
Mavarik
Online

Registriert seit: 9. Feb 2006
Ort: Stolberg (Rhld)
4.126 Beiträge
 
Delphi 10.3 Rio
 
#4

AW: Debug Visualizers für Interfaces?

  Alt 21. Mai 2017, 13:54
OK ein Visualizer hat doch Vorteile - Vorausgesetzt das Interface hat eine AsString Methode...

Eine Variable

Delphi-Quellcode:
var
  Foo : TArray<IMyInterface>
Wird dann auch richtig dargestellt...

Oder auch ein anderes Interface

Delphi-Quellcode:
var
  ListFoo : IMyListinterface; // Function Many(AFoo : IMyInterface) : TArray<IMyInterface>;
  Foo : IMyInterface;
Wenn man dann ListFoo.Many(Foo) als Watch-Variable nimmt und Funktionsaufrufe erlaubt, Erhält man eine "richtige" Liste...

Nice...

Mavarik
  Mit Zitat antworten Zitat