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)
162return valueSet.Count == 1 ? OneOrMany.Create(valueSet[0]) : OneOrMany.Create(valueSet.Items);
src\Compilers\Core\Portable\InternalUtilities\OneOrMany.cs (6)
96OneOrMany.Create(_many.Add(item)); 120return OneOrMany.Create(_many.WhereAsArray(static (value, item) => !EqualityComparer<T>.Default.Equals(value, item), item)); 127OneOrMany.Create(_many.SelectAsArray(selector)); 134OneOrMany.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)
226return OneOrMany.Create(builder.ToImmutableAndClear());
Workspace\ProjectSystem\ProjectSystemProject.cs (1)
1166return OneOrMany.Create(vsixRazorAnalyzers);