Page 1 of 1

Linq Method Count() works in Simulator not browser

Posted: Sun Jan 13, 2019 3:48 pm
by Rourke
Found a quirky bug in the latest Beta (v1.2 Beta 10). I'm running a very simple LINQ Count(where) like this:

Code: Select all

value = list.Count(s => s.SomeValue == 1)


which works fine in the Simulator but in the browser throws this exception:

Error: No static method with signature 'System.Int32 Count$b1$169[!!0],291[!!0,32]=33<TSource> (System.Collections.Generic.IEnumerable`1[!!0], System.Func`2[!!0, System.Boolean])' found in context '<System.Linq.Enumerable Public Interface>'
at JSIL.RuntimeErrorFormat (bin/Debug/Output/app-cshtml5/libs/JSIL.Core.js?20191141042:10536:3)
at JSIL.MethodSignature.prototype.$StaticMethodNotFound (bin/Debug/Output/app-cshtml5/libs/JSIL.Core.js?20191141042:7835:3)
at MethodSignature_CallStatic$1$2$inlineCache1 (Function code:9:5)
at MyObject_SetData (bin/Debug/Output/app-cshtml5/app/MyApp.js?20191141042:2775:5)
...

Re: Linq Method Count() works in Simulator not browser

Posted: Mon Jan 14, 2019 1:41 am
by JS-Support @Userware
Thanks for reporting this issue. We are going to look into it asap.