来自:http://www.oschina.net/p/netjs?from=20140414

 

Netjs 是一个 .NET 到 TypeScript 和 JavaScript 的编译器。

该软件目前还有一些限制:

  • 忽略命名空间

  • mscorlib.ts is a tiny subset of the full BCL

  • Overloaded methods generally work, but have trouble with:

    • One overload being virtual and another not (it hurts my head trying to get this to work)

    • Overloads that have the same argument count and accept values that can be null (runtime type checking is used)

    • Overloaded constuctors that call different base constructors probably don't work

  • Async does not work

  • Gotos only sometimes work

  • Regexes have some problems:

    • Named groups don't work (we rely on the browser's regex implementation)

    • Match Group Index only works if you capture everything

  • Integer casts with the expectation of performing a Truncate operation don't work ()

  • Seriously, watch it with those overloads

praeclarum / Netjs

Watch291 Fork20

.NET to TypeScript and JavaScript compiler — More...

Issues
#5 Add to a npm by tracker1  2014-04-16
#6 C# to jTypes Transcompiler by gaulinsoft  2014-04-14
#3 Simplify overload dispatch when function arity is the only difference by praeclarum  2014-03-31
#2 Structs are passed by reference by praeclarum  2014-03-31
#1 Integer casts do not truncate by praeclarum  2014-03-31

master分支代码最近更新:2014-04-02