DelphiXE2 获取不到动态数组的RTTI信息,难道是Delphi的Bug??
tp机器猫 2012-11-01 02:50:57 type
TarrRec=TArray<TARecort>;
TTestClass=class(TInterfacedObject)
public
function TTest_Proxy.GetArr: TarrRec; // 这样写不能获得RTTI呢,
function TTest_Proxy.GetArr1: TArray<TARecort>; // 这样写就行,有没有人碰到过?
end;
T:=TRttiContext.Create.GetType(TTestClass);
method:=t.GetMethod('GetArr');
if Method.MethodKind=mkFunction then 取不到