Oxygene .net で名前空間エイリアスを使用する方法はありますか?
つまり、C# コードに相当する Oxygene は
using someOtherName = System.Timers.Timer;
何ですか?
はい、可能です。タイプを定義するように定義してください。例えば:
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.