48 implementations of IsSubsetOf
Microsoft.CodeAnalysis (6)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
204public bool IsSubsetOf(IEnumerable<T> other)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+Builder.cs (1)
80public bool IsSubsetOf(IEnumerable<T> other)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
182public readonly bool IsSubsetOf(IEnumerable<T> other)
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
534public bool IsSubsetOf(IEnumerable<T> other)
src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Set.cs (1)
47public bool IsSubsetOf(IEnumerable<T> other)
src\Dependencies\Collections\Specialized\SpecializedCollections.ReadOnly.Set.cs (1)
47public bool IsSubsetOf(IEnumerable<T> other)
Microsoft.CodeAnalysis.CodeStyle (6)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
204public bool IsSubsetOf(IEnumerable<T> other)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+Builder.cs (1)
80public bool IsSubsetOf(IEnumerable<T> other)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
182public readonly bool IsSubsetOf(IEnumerable<T> other)
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
534public bool IsSubsetOf(IEnumerable<T> other)
src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Set.cs (1)
47public bool IsSubsetOf(IEnumerable<T> other)
src\Dependencies\Collections\Specialized\SpecializedCollections.ReadOnly.Set.cs (1)
47public bool IsSubsetOf(IEnumerable<T> other)
Microsoft.CodeAnalysis.Collections.Package (6)
Segmented\ImmutableSegmentedHashSet`1.cs (1)
204public bool IsSubsetOf(IEnumerable<T> other)
Segmented\ImmutableSegmentedHashSet`1+Builder.cs (1)
80public bool IsSubsetOf(IEnumerable<T> other)
Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
182public readonly bool IsSubsetOf(IEnumerable<T> other)
Segmented\SegmentedHashSet`1.cs (1)
534public bool IsSubsetOf(IEnumerable<T> other)
Specialized\SpecializedCollections.Empty.Set.cs (1)
47public bool IsSubsetOf(IEnumerable<T> other)
Specialized\SpecializedCollections.ReadOnly.Set.cs (1)
47public bool IsSubsetOf(IEnumerable<T> other)
Microsoft.CodeAnalysis.InteractiveHost (6)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
204public bool IsSubsetOf(IEnumerable<T> other)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+Builder.cs (1)
80public bool IsSubsetOf(IEnumerable<T> other)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
182public readonly bool IsSubsetOf(IEnumerable<T> other)
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
534public bool IsSubsetOf(IEnumerable<T> other)
src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Set.cs (1)
47public bool IsSubsetOf(IEnumerable<T> other)
src\Dependencies\Collections\Specialized\SpecializedCollections.ReadOnly.Set.cs (1)
47public bool IsSubsetOf(IEnumerable<T> other)
Microsoft.CodeAnalysis.Threading.Package (6)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
204public bool IsSubsetOf(IEnumerable<T> other)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+Builder.cs (1)
80public bool IsSubsetOf(IEnumerable<T> other)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
182public readonly bool IsSubsetOf(IEnumerable<T> other)
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
534public bool IsSubsetOf(IEnumerable<T> other)
src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Set.cs (1)
47public bool IsSubsetOf(IEnumerable<T> other)
src\Dependencies\Collections\Specialized\SpecializedCollections.ReadOnly.Set.cs (1)
47public bool IsSubsetOf(IEnumerable<T> other)
Microsoft.CodeAnalysis.Workspaces (6)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
204public bool IsSubsetOf(IEnumerable<T> other)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+Builder.cs (1)
80public bool IsSubsetOf(IEnumerable<T> other)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
182public readonly bool IsSubsetOf(IEnumerable<T> other)
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
534public bool IsSubsetOf(IEnumerable<T> other)
src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Set.cs (1)
47public bool IsSubsetOf(IEnumerable<T> other)
src\Dependencies\Collections\Specialized\SpecializedCollections.ReadOnly.Set.cs (1)
47public bool IsSubsetOf(IEnumerable<T> other)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (6)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
204public bool IsSubsetOf(IEnumerable<T> other)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+Builder.cs (1)
80public bool IsSubsetOf(IEnumerable<T> other)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
182public readonly bool IsSubsetOf(IEnumerable<T> other)
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
534public bool IsSubsetOf(IEnumerable<T> other)
src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Set.cs (1)
47public bool IsSubsetOf(IEnumerable<T> other)
src\Dependencies\Collections\Specialized\SpecializedCollections.ReadOnly.Set.cs (1)
47public bool IsSubsetOf(IEnumerable<T> other)
System.Collections (1)
System\Collections\Generic\SortedSet.cs (1)
1173public bool IsSubsetOf(IEnumerable<T> other)
System.Collections.Immutable (4)
System\Collections\Immutable\ImmutableHashSet_1.Builder.cs (1)
316public bool IsSubsetOf(IEnumerable<T> other)
System\Collections\Immutable\ImmutableHashSet_1.cs (1)
320public bool IsSubsetOf(IEnumerable<T> other)
System\Collections\Immutable\ImmutableSortedSet_1.Builder.cs (1)
279public bool IsSubsetOf(IEnumerable<T> other)
System\Collections\Immutable\ImmutableSortedSet_1.cs (1)
480public bool IsSubsetOf(IEnumerable<T> other)
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\ReadOnlySet.cs (1)
54public bool IsSubsetOf(IEnumerable<T> other) => _set.IsSubsetOf(other);
19 references to IsSubsetOf
Microsoft.CodeAnalysis (1)
src\Dependencies\Collections\Specialized\SpecializedCollections.ReadOnly.Set.cs (1)
49return Underlying.IsSubsetOf(other);
Microsoft.CodeAnalysis.CodeStyle (1)
src\Dependencies\Collections\Specialized\SpecializedCollections.ReadOnly.Set.cs (1)
49return Underlying.IsSubsetOf(other);
Microsoft.CodeAnalysis.Collections.Package (1)
Specialized\SpecializedCollections.ReadOnly.Set.cs (1)
49return Underlying.IsSubsetOf(other);
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (3)
107if (modifierTokens.IsSubsetOf(validModifiers)) 295if (modifierTokens.IsSubsetOf(validModifiers)) 347if (!modifierTokens.IsSubsetOf(validModifiers))
Microsoft.CodeAnalysis.InteractiveHost (1)
src\Dependencies\Collections\Specialized\SpecializedCollections.ReadOnly.Set.cs (1)
49return Underlying.IsSubsetOf(other);
Microsoft.CodeAnalysis.Threading.Package (1)
src\Dependencies\Collections\Specialized\SpecializedCollections.ReadOnly.Set.cs (1)
49return Underlying.IsSubsetOf(other);
Microsoft.CodeAnalysis.UnitTests (4)
Collections\HashSet\ISet_Generic_Tests`1.cs (3)
225Assert.False(set.IsSubsetOf(enumerable)); 228Assert.True(set.IsSubsetOf(enumerable)); 317Assert.Throws<ArgumentNullException>(() => set.IsSubsetOf(null!));
Collections\ImmutableSetTest.cs (1)
125this.SetCompareTestHelper(s => s.IsSubsetOf, s => s.IsSubsetOf, GetIsSubsetOfScenarios());
Microsoft.CodeAnalysis.Workspaces (3)
Diagnostics\Extensions.cs (2)
343Debug.Assert(documentAnalysisScope.ProjectAnalyzers.ToSet().IsSubsetOf(compilationWithAnalyzers.ProjectAnalyzers)); 344Debug.Assert(documentAnalysisScope.HostAnalyzers.ToSet().IsSubsetOf(compilationWithAnalyzers.HostAnalyzers));
src\Dependencies\Collections\Specialized\SpecializedCollections.ReadOnly.Set.cs (1)
49return Underlying.IsSubsetOf(other);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
src\Dependencies\Collections\Specialized\SpecializedCollections.ReadOnly.Set.cs (1)
49return Underlying.IsSubsetOf(other);
System.Collections.Immutable (1)
System\Collections\Frozen\FrozenSet.cs (1)
444/// <inheritdoc cref="ISet{T}.IsSubsetOf(IEnumerable{T})" />
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\ReadOnlySet.cs (1)
54public bool IsSubsetOf(IEnumerable<T> other) => _set.IsSubsetOf(other);
xunit.assert (1)
SetAsserts.cs (1)
310 if (actual == null || !actual.IsSubsetOf(expectedSubset))