typeof 相当于 .NET for ABL Progress Openedge
typeof equivalent of .NET for ABL Progress Openedge
我已将 System.Messaging 添加到我的 assemblies.xml 中,因为我需要在我的 Progress OpenEdge 应用程序中使用它。然而我运行遇到了问题
在 C# 中分配时:
m.Formatter = new XmlMessageFormatter(new[] { typeof(TrowConfiguration) });
TrowConfiguration myConfiguration = m.Body as TrowConfiguration;
但是我现在想在 ABL 中执行此操作。我首先使用一种方法来读取字符串,然后将 CHARACTER EXTENT 1 INITIAL "System.String"
传递给 XmlMessageFormatter 对象。但是我尝试将其更改为我的对象 TrowConfiguration 的路径,但这不起作用并给我一个错误。
如果您要查找 System.Type 参考,请使用
Progress.Util.TypeHelper:GetType ("<your fully qualified type name>").
我已将 System.Messaging 添加到我的 assemblies.xml 中,因为我需要在我的 Progress OpenEdge 应用程序中使用它。然而我运行遇到了问题
在 C# 中分配时:
m.Formatter = new XmlMessageFormatter(new[] { typeof(TrowConfiguration) });
TrowConfiguration myConfiguration = m.Body as TrowConfiguration;
但是我现在想在 ABL 中执行此操作。我首先使用一种方法来读取字符串,然后将 CHARACTER EXTENT 1 INITIAL "System.String"
传递给 XmlMessageFormatter 对象。但是我尝试将其更改为我的对象 TrowConfiguration 的路径,但这不起作用并给我一个错误。
如果您要查找 System.Type 参考,请使用
Progress.Util.TypeHelper:GetType ("<your fully qualified type name>").