mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-04 18:30:36 +02:00
* Delphi-compatible ToString for TRttiType. Patch from Lipinast Lekrisov
This commit is contained in:
parent
98a7fe6204
commit
5a6b4ed8e4
@ -392,6 +392,7 @@ type
|
|||||||
function GetMethods: TRttiMethodArray; virtual; overload;
|
function GetMethods: TRttiMethodArray; virtual; overload;
|
||||||
function GetMethods(const aName: string): TRttiMethodArray; overload; virtual;
|
function GetMethods(const aName: string): TRttiMethodArray; overload; virtual;
|
||||||
function GetMethod(const aName: String): TRttiMethod; virtual;
|
function GetMethod(const aName: String): TRttiMethod; virtual;
|
||||||
|
function ToString : RTLString; override;
|
||||||
property IsInstance: boolean read GetIsInstance;
|
property IsInstance: boolean read GetIsInstance;
|
||||||
property IsManaged: boolean read GetIsManaged;
|
property IsManaged: boolean read GetIsManaged;
|
||||||
property IsOrdinal: boolean read GetIsOrdinal;
|
property IsOrdinal: boolean read GetIsOrdinal;
|
||||||
@ -7508,6 +7509,11 @@ begin
|
|||||||
Result := Nil;
|
Result := Nil;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
function TRttiType.ToString: RTLString;
|
||||||
|
begin
|
||||||
|
Result:=Name;
|
||||||
|
end;
|
||||||
|
|
||||||
function TRttiType.GetMethods(const aName: string): TRttiMethodArray;
|
function TRttiType.GetMethods(const aName: string): TRttiMethodArray;
|
||||||
var
|
var
|
||||||
methods: specialize TArray<TRttiMethod>;
|
methods: specialize TArray<TRttiMethod>;
|
||||||
|
Loading…
Reference in New Issue
Block a user