From d381640dd300c6b6f9a0d49f08a73daffb53bfa2 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 27 Sep 2025 10:36:33 +0000 Subject: [PATCH 1/3] Initial plan From aa6f582f194e5bdb5387c937fc9d022caca88053 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 27 Sep 2025 10:42:48 +0000 Subject: [PATCH 2/3] Fix mathematically incorrect statement in IsProperSupersetOf documentation Co-authored-by: eiriktsarpalis <2813363+eiriktsarpalis@users.noreply.github.com> --- xml/System.Collections.Immutable/ImmutableSortedSet`1.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xml/System.Collections.Immutable/ImmutableSortedSet`1.xml b/xml/System.Collections.Immutable/ImmutableSortedSet`1.xml index 8fe35b1c446..704093450a3 100644 --- a/xml/System.Collections.Immutable/ImmutableSortedSet`1.xml +++ b/xml/System.Collections.Immutable/ImmutableSortedSet`1.xml @@ -679,7 +679,7 @@ An empty set is a proper subset of any other collection. Therefore, this method ## Remarks -An empty set is a proper superset of any other collection. Therefore, this method returns `true` if the collection represented by the `other` parameter is empty, unless the current set is also empty. +An empty set is a subset of any other collection. Therefore, this method returns `true` if the collection represented by the `other` parameter is empty, unless the current set is also empty. [System.Collections.Immutable NuGet package](https://www.nuget.org/packages/System.Collections.Immutable/) From 65142cb8bfc2b64b56722ad865e4a4ecc74c5b16 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 2 Oct 2025 20:34:17 +0000 Subject: [PATCH 3/3] Fix incorrect statements about empty sets in IsProperSubsetOf and other set types Co-authored-by: PranavSenthilnathan <12225508+PranavSenthilnathan@users.noreply.github.com> --- xml/System.Collections.Generic/HashSet`1.xml | 4 ++-- xml/System.Collections.Generic/ISet`1.xml | 4 ++-- xml/System.Collections.Generic/SortedSet`1.xml | 4 ++-- xml/System.Collections.Immutable/ImmutableSortedSet`1.xml | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/xml/System.Collections.Generic/HashSet`1.xml b/xml/System.Collections.Generic/HashSet`1.xml index 14de8219243..86009d2e752 100644 --- a/xml/System.Collections.Generic/HashSet`1.xml +++ b/xml/System.Collections.Generic/HashSet`1.xml @@ -1594,7 +1594,7 @@ The following example demonstrates how to merge two disparate sets. This example object is empty unless the `other` parameter is also an empty set. + An empty set is a subset of any other collection. Therefore, this method returns `true` if the collection represented by the current object is empty unless the `other` parameter is also an empty set. This method always returns `false` if is greater than or equal to the number of elements in `other`. @@ -1676,7 +1676,7 @@ The following example demonstrates how to merge two disparate sets. This example collection is also empty. + An empty set is a subset of any other collection. Therefore, this method returns `true` if the collection represented by the `other` parameter is empty unless the current collection is also empty. This method always returns `false` if is less than or equal to the number of elements in `other`. diff --git a/xml/System.Collections.Generic/ISet`1.xml b/xml/System.Collections.Generic/ISet`1.xml index 71449953a6a..ec332f67731 100644 --- a/xml/System.Collections.Generic/ISet`1.xml +++ b/xml/System.Collections.Generic/ISet`1.xml @@ -285,7 +285,7 @@ ## Remarks If the current set is a proper subset of `other`, `other` must have at least one element that the current set does not have. - An empty set is a proper subset of any other collection. Therefore, this method returns `true` if the current set is empty, unless the `other` parameter is also an empty set. + An empty set is a subset of any other collection. Therefore, this method returns `true` if the current set is empty, unless the `other` parameter is also an empty set. This method always returns `false` if the current set has more or the same number of elements than `other`. @@ -346,7 +346,7 @@ ## Remarks If the current set is a proper superset of `other`, the current set must have at least one element that `other` does not have. - An empty set is a proper superset of any other collection. Therefore, this method returns `true` if the collection represented by the `other` parameter is empty, unless the current set is also empty. + An empty set is a subset of any other collection. Therefore, this method returns `true` if the collection represented by the `other` parameter is empty, unless the current set is also empty. This method always returns `false` if the number of elements in the current set is less than or equal to the number of elements in `other`. diff --git a/xml/System.Collections.Generic/SortedSet`1.xml b/xml/System.Collections.Generic/SortedSet`1.xml index 69a8ef0adcf..dc1e056f1a2 100644 --- a/xml/System.Collections.Generic/SortedSet`1.xml +++ b/xml/System.Collections.Generic/SortedSet`1.xml @@ -1393,7 +1393,7 @@ object is empty unless the `other` parameter is also an empty set. + An empty set is a subset of any other collection. Therefore, this method returns `true` if the collection represented by the current object is empty unless the `other` parameter is also an empty set. This method always returns `false` if is greater than or equal to the number of elements in `other`. @@ -1462,7 +1462,7 @@ collection is also empty. + An empty set is a subset of any other collection. Therefore, this method returns `true` if the collection represented by the `other` parameter is empty unless the current collection is also empty. This method always returns `false` if is less than or equal to the number of elements in `other`. diff --git a/xml/System.Collections.Immutable/ImmutableSortedSet`1.xml b/xml/System.Collections.Immutable/ImmutableSortedSet`1.xml index 704093450a3..ba3327c28cb 100644 --- a/xml/System.Collections.Immutable/ImmutableSortedSet`1.xml +++ b/xml/System.Collections.Immutable/ImmutableSortedSet`1.xml @@ -624,7 +624,7 @@ If you need to perform multiple operations on an immutable collection, to increa