runtime: System.Linq.Enumerable was broken in .NET 5 rc 1 wasm runtime
Describe the bug
When I update from Blazor 3.2 to .Net 5 RC 1 and then System.Linq.Enumerable was broken in wasm runtime.
It works well in debugging.
To Reproduce
Code: https://github.com/ant-design-blazor/ant-design-blazor/tree/master/components/table Online: https://ant-design-blazor.github.io/en-US/components/table
Exceptions (if any)

Further technical details
- ASP.NET Core version .NET 5 rc 1
- Include the output of
dotnet --info - The IDE (VS / VS Code/ VS4Mac) you’re running on, and it’s version
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 1
- Comments: 17 (14 by maintainers)
Commits related to this issue
- Ensure Enumerable methods are preserved by System.Linq.Querable When using System.Linq.Queryable against an in-memory collection, and trimming the application, the underlying Enumerable methods need ... — committed to eerhardt/runtime by eerhardt 4 years ago
- Ensure Enumerable methods are preserved by System.Linq.Querable (#42603) * Ensure Enumerable methods are preserved by System.Linq.Querable When using System.Linq.Queryable against an in-memory col... — committed to dotnet/runtime by eerhardt 4 years ago
- Ensure Enumerable methods are preserved by System.Linq.Querable When using System.Linq.Queryable against an in-memory collection, and trimming the application, the underlying Enumerable methods need ... — committed to dotnet/runtime by eerhardt 4 years ago
- [release/5.0-rc2] Ensure Enumerable methods are preserved by System.Linq.Querable (#42653) * Ensure Enumerable methods are preserved by System.Linq.Querable When using System.Linq.Queryable agains... — committed to dotnet/runtime by github-actions[bot] 4 years ago
It works now when disabled the trimming…
FWIW, we already have similar unit tests about correspondance between Queryable and Enumerable: https://github.com/dotnet/runtime/blob/e87d2470773e48991b8e1d965d49b3ef03b303fe/src/libraries/System.Linq.Queryable/tests/Queryable.cs#L102-L112