有没有办法在Oxygene .net中使用名称空间别名?
例如: C#代码using someOtherName = System.Timers.Timer;对应的氧基因是什么?
发布于 2013-07-08 18:09:42
是的,这是可能的,只需像定义类型一样定义它。例如:
namespace ConsoleApplication37;
interface
type
ConsoleApp = class
public
class method Main(args: array of String);
end;
someOtherName = System.Timers.Timer;
implementation
class method ConsoleApp.Main(args: array of String);
begin
var t1 := new someOtherName;
end;
end.https://stackoverflow.com/questions/17517680
复制相似问题