Created
April 4, 2012 20:37
-
-
Save kg/2305395 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Generated by JSIL v0.3.0 build 7255. See http://jsil.org/ for more information. | |
var $asm00 = JSIL.DeclareAssembly("wwkrcqzi, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"); | |
JSIL.MakeEnum( | |
"CustomEnum", true, { | |
A: 1, | |
B: 2 | |
}, false | |
); | |
JSIL.MakeStaticClass("Program", true, [], function ($) { | |
$.Method({Static:true , Public:true }, "Main", | |
new JSIL.MethodSignature(null, [new JSIL.TypeRef($asm01, "System.Array") /* System.String[] */ ]), | |
function Main (args) { | |
(new JSIL.MethodSignature(null, [new JSIL.TypeRef($asm00, "CustomEnum")])).Call("OverloadedMethod", $asm00.Program, $asm00.CustomEnum.A); | |
(new JSIL.MethodSignature(null, [new JSIL.TypeRef($asm01, "System.Int32")])).Call("OverloadedMethod", $asm00.Program, 1); | |
(new JSIL.MethodSignature(null, [new JSIL.TypeRef($asm01, "System.Int32")])).Call("OverloadedMethod", $asm00.Program, 1); | |
(new JSIL.MethodSignature(null, [new JSIL.TypeRef($asm00, "CustomEnum")])).Call("OverloadedMethod2", $asm00.Program, $asm00.CustomEnum.A); | |
(new JSIL.MethodSignature(null, [new JSIL.TypeRef($asm01, "System.String")])).Call("OverloadedMethod2", $asm00.Program, "B"); | |
} | |
); | |
$.Method({Static:true , Public:true }, "OverloadedMethod", | |
new JSIL.MethodSignature(null, [new JSIL.TypeRef($asm00, "CustomEnum")]), | |
function OverloadedMethod (e) { | |
$asm01.System.Console.WriteLine("OverloadedMethod(<CustomEnum>)"); | |
} | |
); | |
$.Method({Static:true , Public:true }, "OverloadedMethod", | |
new JSIL.MethodSignature(null, [new JSIL.TypeRef($asm01, "System.Int32")]), | |
function OverloadedMethod (i) { | |
$asm01.System.Console.WriteLine("OverloadedMethod(<int>)"); | |
} | |
); | |
$.Method({Static:true , Public:true }, "OverloadedMethod2", | |
new JSIL.MethodSignature(null, [new JSIL.TypeRef($asm00, "CustomEnum")]), | |
function OverloadedMethod2 (e) { | |
$asm01.System.Console.WriteLine("OverloadedMethod(<CustomEnum>)"); | |
} | |
); | |
$.Method({Static:true , Public:true }, "OverloadedMethod2", | |
new JSIL.MethodSignature(null, [new JSIL.TypeRef($asm01, "System.String")]), | |
function OverloadedMethod2 (s) { | |
$asm01.System.Console.WriteLine("OverloadedMethod(<string>)"); | |
} | |
); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment