1 write to _set
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
src\Compilers\Core\Portable\InternalUtilities\SetWithInsertionOrder.cs (1)
27
_set
= new HashSet<T>();
9 references to _set
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (9)
src\Compilers\Core\Portable\InternalUtilities\SetWithInsertionOrder.cs (9)
25
if (
_set
== null)
31
if (!
_set
.Add(value))
42
if (
_set
== null)
52
if (!
_set
.Add(value))
63
_set
.Remove(value);
72
if (
_set
is null)
77
if (!
_set
.Remove(value))
87
public bool Contains(T value) =>
_set
?.Contains(value) ?? false;
99
=> (IReadOnlySet<T>?)
_set
?? SpecializedCollections.EmptyReadOnlySet<T>();