7 implementations of Clear
Microsoft.CodeAnalysis (1)
src\Dependencies\Collections\ImmutableSegmentedHashSet`1.cs (1)
323IImmutableSet<T> IImmutableSet<T>.Clear()
Microsoft.CodeAnalysis.CodeStyle (1)
src\Dependencies\Collections\ImmutableSegmentedHashSet`1.cs (1)
323IImmutableSet<T> IImmutableSet<T>.Clear()
Microsoft.CodeAnalysis.Collections.Package (1)
ImmutableSegmentedHashSet`1.cs (1)
323IImmutableSet<T> IImmutableSet<T>.Clear()
Microsoft.CodeAnalysis.Workspaces (1)
src\Dependencies\Collections\ImmutableSegmentedHashSet`1.cs (1)
323IImmutableSet<T> IImmutableSet<T>.Clear()
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
src\Dependencies\Collections\ImmutableSegmentedHashSet`1.cs (1)
323IImmutableSet<T> IImmutableSet<T>.Clear()
System.Collections.Immutable (2)
System\Collections\Immutable\ImmutableHashSet_1.cs (1)
118IImmutableSet<T> IImmutableSet<T>.Clear()
System\Collections\Immutable\ImmutableSortedSet_1.cs (1)
602IImmutableSet<T> IImmutableSet<T>.Clear()
4 references to Clear
Microsoft.CodeAnalysis.UnitTests (4)
Collections\ImmutableSegmentedHashSetTest.nonnetstandard.cs (1)
53var reemptied = emptySet.Add(value).Clear();
Collections\ImmutableSetTest.cs (2)
164var clearedSet = nonEmptySet.Clear(); 291Assert.True(IsSame(emptySet, emptySet.Clear()));
Collections\ImmutableSetTest.nonnetstandard.cs (1)
106Assert.False(set.Clear().TryGetValue("nonexistent", out actual));