delphi rtti GetMethods 遍历规则
摘要:unit Unit1; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, V
阅读全文
posted @
2024-08-01 07:38
del88
阅读(44)
推荐(0) 编辑
Delphi 中使用反射来清空一个类及其嵌套类的属性
摘要:在 Delphi 中使用反射来清空一个类及其嵌套类的属性是一个相对高级的技术。反射允许你在运行时动态地访问对象的属性和方法。以下是一个使用反射来清空类属性的例子: type TAddress = class Street: string; City: string; end; TPerson = c
阅读全文
posted @
2024-07-24 08:22
del88
阅读(13)
推荐(0) 编辑
TValue 的 TTypeKind 的自动转换
摘要:首先官方的定义: TTypeKind = (tkUnknown, tkInteger, tkChar, tkEnumeration, tkFloat, tkString, tkSet, tkClass, tkMethod, tkWChar, tkLString, tkWString, tkVaria
阅读全文
posted @
2023-05-11 16:28
del88
阅读(44)
推荐(0) 编辑