7 implementations of Union
Microsoft.CodeAnalysis (1)
src\Dependencies\Collections\ImmutableSegmentedHashSet`1.cs (1)
341IImmutableSet<T> IImmutableSet<T>.Union(IEnumerable<T> other)
Microsoft.CodeAnalysis.CodeStyle (1)
src\Dependencies\Collections\ImmutableSegmentedHashSet`1.cs (1)
341IImmutableSet<T> IImmutableSet<T>.Union(IEnumerable<T> other)
Microsoft.CodeAnalysis.Collections.Package (1)
ImmutableSegmentedHashSet`1.cs (1)
341IImmutableSet<T> IImmutableSet<T>.Union(IEnumerable<T> other)
Microsoft.CodeAnalysis.Workspaces (1)
src\Dependencies\Collections\ImmutableSegmentedHashSet`1.cs (1)
341IImmutableSet<T> IImmutableSet<T>.Union(IEnumerable<T> other)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
src\Dependencies\Collections\ImmutableSegmentedHashSet`1.cs (1)
341IImmutableSet<T> IImmutableSet<T>.Union(IEnumerable<T> other)
System.Collections.Immutable (2)
System\Collections\Immutable\ImmutableHashSet_1.cs (1)
374IImmutableSet<T> IImmutableSet<T>.Union(IEnumerable<T> other)
System\Collections\Immutable\ImmutableSortedSet_1.cs (1)
652IImmutableSet<T> IImmutableSet<T>.Union(IEnumerable<T> other)
11 references to Union
Microsoft.CodeAnalysis.UnitTests (10)
Collections\ImmutableSetTest.cs (5)
78Assert.True(IsSame(set, empty2.Union(set))); // "Filling an empty immutable set with the contents of another immutable set with the exact same comparer should return the other set." 217set = empty.Union(new[] { null, "a" }); 254return this.Empty<T>().Union(items); 488Assert.True(IsSame(set, set.Union(Enumerable.Empty<T>()))); 493var enumerateAddSet = set.Union(values);
Collections\ImmutableSetTest.nonnetstandard.cs (5)
49IntersectTestHelper(Empty<int>().Union(Enumerable.Range(1, 10)), 8, 3, 5); 56UnionTestHelper(this.Empty<int>().Union(new[] { 2, 4, 6 }), new[] { 1, 3, 5, 7 }); 57UnionTestHelper(this.Empty<int>().Union(new[] { 1, 2, 3 }), Array.Empty<int>()); 58UnionTestHelper(this.Empty<int>().Union(new[] { 2 }), Enumerable.Range(0, 1000).ToArray()); 156var actual = set.Union(values);
Microsoft.VisualStudio.LanguageServices (1)
NavigateTo\RoslynSearchItemsSource.cs (1)
37private static readonly IImmutableSet<string> s_allKinds = s_typeKinds.Union(s_memberKinds);