Add LINQ FirstOrDefault support parity across generic NS collections#25509
Add LINQ FirstOrDefault support parity across generic NS collections#25509Copilot wants to merge 6 commits into
FirstOrDefault support parity across generic NS collections#25509Conversation
Agent-Logs-Url: https://github.com/dotnet/macios/sessions/04597ed5-86b1-4feb-b522-8990c6006023 Co-authored-by: rolfbjarne <249268+rolfbjarne@users.noreply.github.com>
Agent-Logs-Url: https://github.com/dotnet/macios/sessions/04597ed5-86b1-4feb-b522-8990c6006023 Co-authored-by: rolfbjarne <249268+rolfbjarne@users.noreply.github.com>
FirstOrDefault support parity across generic NS collections
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
…neric collections Agent-Logs-Url: https://github.com/dotnet/macios/sessions/64b2c1cf-9d19-4995-a591-9392aad2cfc5 Co-authored-by: rolfbjarne <249268+rolfbjarne@users.noreply.github.com>
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
INativeObject is defined in the ObjCRuntime namespace, not Foundation. The generic type constraints on all 228 extension methods were referencing Foundation.INativeObject which doesn't exist, causing CS0234/CS0311 errors. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
✅ [PR Build #56709b2] Build passed (Detect API changes) ✅Pipeline on Agent |
This comment has been minimized.
This comment has been minimized.
✅ [PR Build #56709b2] Build passed (Build packages) ✅Pipeline on Agent |
✅ API diff for current PR / commitNET (empty diffs)✅ API diff vs stableNET (empty diffs)ℹ️ Generator diffGenerator Diff: vsdrops (html) vsdrops (raw diff) gist (raw diff) - Please review changes) Pipeline on Agent |
🔥 [PR Build #56709b2] Build failed (Build macOS tests) 🔥Build failed for the job 'Build macOS tests' (with job status 'Failed') Pipeline on Agent |
This comment has been minimized.
This comment has been minimized.
🔥 [CI Build #56709b2] Test results 🔥Test results❌ Tests failed on VSTS: test results 5 tests crashed, 87 tests failed, 71 tests passed. Failures❌ cecil tests1 tests failed, 0 tests passed.Failed tests
Html Report (VSDrops) Download ❌ dotnettests tests (iOS)1 tests failed, 0 tests passed.Failed tests
Html Report (VSDrops) Download ❌ dotnettests tests (MacCatalyst)1 tests failed, 0 tests passed.Failed tests
Html Report (VSDrops) Download ❌ dotnettests tests (macOS)1 tests failed, 0 tests passed.Failed tests
Html Report (VSDrops) Download ❌ dotnettests tests (tvOS)1 tests failed, 0 tests passed.Failed tests
Html Report (VSDrops) Download ❌ introspection tests6 tests failed, 0 tests passed.Failed tests
Html Report (VSDrops) Download ❌ monotouch tests (iOS)18 tests failed, 0 tests passed.Failed tests
Html Report (VSDrops) Download ❌ monotouch tests (MacCatalyst)20 tests failed, 0 tests passed.Failed tests
Html Report (VSDrops) Download ❌ monotouch tests (macOS)20 tests failed, 0 tests passed.Failed tests
Html Report (VSDrops) Download ❌ monotouch tests (tvOS)18 tests failed, 0 tests passed.Failed tests
Html Report (VSDrops) Download ❌ Tests on macOS Monterey (12) tests🔥 Failed catastrophically on VSTS: test results - mac_monterey (no summary found). Html Report (VSDrops) Download ❌ Tests on macOS Ventura (13) tests🔥 Failed catastrophically on VSTS: test results - mac_ventura (no summary found). Html Report (VSDrops) Download ❌ Tests on macOS Sonoma (14) tests🔥 Failed catastrophically on VSTS: test results - mac_sonoma (no summary found). Html Report (VSDrops) Download ❌ Tests on macOS Sequoia (15) tests🔥 Failed catastrophically on VSTS: test results - mac_sequoia (no summary found). Html Report (VSDrops) Download ❌ Tests on macOS Tahoe (26) tests🔥 Failed catastrophically on VSTS: test results - mac_tahoe (no summary found). Html Report (VSDrops) Download Successes✅ dotnettests (Multiple platforms): All 1 tests passed. Html Report (VSDrops) Download macOS testsLinux Build VerificationPipeline on Agent |
IEnumerable<NSObject>, causing LINQ type-inference ambiguityFirstOrDefaultextension overloads inNSCollectionLinqExtensions.csNSCollectionLinqExtensions.cswith all common LINQ method overloads for all 6 collection types (First, FirstOrDefault, Last, LastOrDefault, Single, SingleOrDefault, ElementAt, ElementAtOrDefault, Any, All, Count, LongCount, Where, Select, OrderBy, OrderByDescending, Skip, SkipWhile, Take, TakeWhile, Distinct, Reverse, Concat, ToList, ToArray, Aggregate), each with XML docstests/monotouch-test/Foundation/NSCollectionLinqTest.cscovering all 6 generic NS collections