0

Oxygene .net で名前空間エイリアスを使用する方法はありますか?

つまり、C# コードに相当する Oxygene は using someOtherName = System.Timers.Timer;何ですか?

4

1 に答える 1

2

はい、可能です。タイプを定義するように定義してください。例えば:

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.
于 2013-07-08T10:09:42.210 に答える