Vorsicht:
Code:
ToString
public
Returns a string containing the class name.
Nein, tut es nicht und ein Klick entfernt findet man das:
Delphi-Quellcode:
function TJSONAncestor.ToString: string;
var
Buf: TStringBuilder;
begin
Buf := TStringBuilder.Create(256);
try
ToChars(Buf);
Result := Buf.ToString(True);
finally
Buf.Free;
end;
end;
Wie so oft ist die Dokumentation nur ein Anhaltspunkt, gerade wenn wir es mit virtuellen Methoden zu tun haben.