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