Netjs icon indicating copy to clipboard operation
Netjs copied to clipboard

mscorlib.ts is full of methods that just throw not implemented exceptions

Open yoDon opened this issue 9 years ago • 0 comments

There are 40+ methods in mscorlib that do nothing but "throw new NotImplementedException ();" making it much harder for devs to assess whether code generated by Netjs will actually work in production.

Maybe there's some clever helper tool I didn't spot in the docs, if not then it looks to me like each potential user of Netjs has to hunt through mscorlib.ts searching for every instance of throw new NotImplementedException (), manually build a big list all the class, method name, and method signature combos that have landmine implementations, and then search through all their C# code for each of those class/method/signature bombs.

Given that C# and typescript are both strongly typed languages, the odds are good that anyone using Netjs is accustomed to the compiler helping them find bugs. The current approach of creating all these landmine methods prevents the compiler/converter from helping us predict whether our code will work.

yoDon avatar Oct 09 '15 23:10 yoDon