10 references to Create
Microsoft.CodeAnalysis.Workspaces (10)
Options\GlobalOptionService.cs (1)
187
=> SetGlobalOptions(OneOrMany.
Create
(options));
src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (1)
162
return valueSet.Count == 1 ? OneOrMany.Create(valueSet[0]) : OneOrMany.
Create
(valueSet.Items);
src\Compilers\Core\Portable\InternalUtilities\OneOrMany.cs (6)
96
OneOrMany.
Create
(_many.Add(item));
120
return OneOrMany.
Create
(_many.WhereAsArray(static (value, item) => !EqualityComparer<T>.Default.Equals(value, item), item));
127
OneOrMany.
Create
(_many.SelectAsArray(selector));
134
OneOrMany.
Create
(_many.SelectAsArray(selector, arg));
206
=> SequenceEqual(OneOrMany.
Create
(other), comparer);
281
=>
Create
(array).SequenceEqual(other, comparer);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.cs (1)
226
return OneOrMany.
Create
(builder.ToImmutableAndClear());
Workspace\ProjectSystem\ProjectSystemProject.cs (1)
1166
return OneOrMany.
Create
(vsixRazorAnalyzers);