Skip to content

System.Linq methods on NS collections is inconsistent #4597

@chamons

Description

@chamons

You can call FirstOrDefault on a NSSet but not a NSSet<T> for example. You can not call it on NSMutableArray but you can NSMutableArray<T>.

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

Metadata

Metadata

Labels

copilot-candidateenhancementThe issue or pull request is an enhancementgood first issueThis is a good first issue for someone to start working with our codeiOSIssues affecting iOSmacOSIssues affecting macOS

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions