C# 轉成JavaScript編譯器:Netjs

jopen 10年前發布 | 31K 次閱讀 Netjs JavaScript開發

Netjs 是一個 .NET 到 TypeScript 和 JavaScript 的編譯器。

C# 轉成JavaScript編譯器:Netjs

該軟件目前還有一些限制:

  • 忽略命名空間

  • 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

項目主頁:http://www.baiduhome.net/lib/view/home/1398347768671

 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!