10 references to OneOrMany
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (10)
src\Compilers\Core\Portable\Collections\TemporaryArray`1.cs (1)
287
var result =
OneOrMany
.Create(this[0]);
src\Compilers\Core\Portable\InternalUtilities\OneOrMany.cs (9)
94
=> HasOneItem ?
OneOrMany
.Create(_one, item) :
95
IsEmpty ?
OneOrMany
.Create(item) :
96
OneOrMany
.Create(_many.Add(item));
120
return
OneOrMany
.Create(_many.WhereAsArray(static (value, item) => !EqualityComparer<T>.Default.Equals(value, item), item));
126
OneOrMany
.Create(selector(_one)) :
127
OneOrMany
.Create(_many.SelectAsArray(selector));
133
OneOrMany
.Create(selector(_one, arg)) :
134
OneOrMany
.Create(_many.SelectAsArray(selector, arg));
206
=> SequenceEqual(
OneOrMany
.Create(other), comparer);