Hi,
when using string from Delphi namespace in a property, the property doesn’t show up in the debugger or as console output.
namespace Unbenannt;
interface
type
PropClass = public class
public
class property P_Bool:boolean read true;
class property P_String:string read ‘String’;
end;Program = assembly static class
public
class method Main(args:array of System.String):Int32;
end;implementation
uses
RemObjects.Elements.RTL.Delphi;class method Program.Main(args:array of System.String):Int32;
var pc:PropClass;
begin
pc:=new PropClass;
Console.WriteLine(pc.P_String);
end;end.
It seems that there is no Typecode for this property (“None”) in Rtti.
Futher more: if the property “P_Bool” is removed, the local var “pc” doesn’t show at all…