Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blazor Server vs WASM - different output on enumerable is ICollection<int> #111147

Open
1 task done
tesar-tech opened this issue Jan 4, 2025 · 2 comments
Open
1 task done
Labels
arch-wasm WebAssembly architecture area-VM-coreclr

Comments

@tesar-tech
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

Blazor app and this code:

List<int> list = [1,2,3];
IEnumerable<int> enumerable =list.Take(2);
bool isCollection = enumerable is ICollection<int>;

Console.WriteLine($"is ICollection: {isCollection} "); //true on server, false on wasm

Expected Behavior

The result should be the same on Blazor Servers and Blazor Wasm.

Steps To Reproduce

Clone this bug report repo (simple blazor app), run the app and visit:

Exceptions (if any)

No response

.NET Version

9.0.100 (but was also on 8)

Anything else?

No response

@javiercn javiercn transferred this issue from dotnet/aspnetcore Jan 7, 2025
@dotnet-policy-service dotnet-policy-service bot added the untriaged New issue has not been triaged by the area owner label Jan 7, 2025
@javiercn javiercn added arch-wasm WebAssembly architecture and removed untriaged New issue has not been triaged by the area owner area-Debugger-mono labels Jan 7, 2025
Copy link
Contributor

Tagging subscribers to 'arch-wasm': @lewing
See info in area-owners.md if you want to be subscribed.

Copy link
Contributor

Tagging subscribers to this area: @mangod9
See info in area-owners.md if you want to be subscribed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arch-wasm WebAssembly architecture area-VM-coreclr
Projects
None yet
Development

No branches or pull requests

3 participants