2013-07-08 4 views
0

Oxygene .net에서 네임 스페이스 별칭을 사용할 방법이 있습니까?Oxygene의 네임 스페이스 별칭

예 : C# 코드의 Oxygene과 동일합니다. using someOtherName = System.Timers.Timer;?

답변

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.