Linq Method Count() works in Simulator not browser

Please report bugs here. If you are unsure whether something is a bug or an expected behavior, please post it on the "Technical Support" forum instead, and wait for a moderator to handle/move the post.
Rourke
Posts: 4
Joined: Mon Jun 06, 2016 7:26 pm

Linq Method Count() works in Simulator not browser

Postby Rourke » Sun Jan 13, 2019 3:48 pm

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)
...

JS-Support @Userware
Site Admin
Posts: 978
Joined: Tue Apr 08, 2014 3:42 pm

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

Postby JS-Support @Userware » Mon Jan 14, 2019 1:41 am

Thanks for reporting this issue. We are going to look into it asap.


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 1 guest

 

 

cron