dotnet / dotnet/macios

System.Linq methods on NS collections is inconsistent

Open
#4,597 3 comments 2 reactions 2 assignees Claimed by @rolfbjarne View on GitHub
copilot-candidate enhancement good first issue iOS macOS
Dominant language
C#
Stars
2.9k
Forks
576
Avg merge
2d 12h
Merged PRs (30d)
123

Description

You can call FirstOrDefault on a `NSSet` but not a `NSSet` for example. You can not call it on `NSMutableArray` but you can `NSMutableArray`.

I've skeched out a reasonable example showing what I've found so far.

### Steps to Reproduce

1. Compile https://gist.github.com/chamons/2ef2fe4b0055fc82e13b367d63914c00
2. Compare what you can and can not compile
3. 🤔

### Expected Behavior
All NSCollections to allow LINQ methods.
### Actual Behavior
Inconsistency
### Environment

Master XM/XI

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.