34 references to Create
Microsoft.Build (5)
Collections\CopyOnWritePropertyDictionary.cs (1)
42private static readonly ImmutableDictionary<string, T> NameComparerDictionaryPrototype = ImmutableDictionary.Create<string, T>(MSBuildNameIgnoreCaseComparer.Default);
CopyOnWriteDictionary.cs (3)
37private static readonly ImmutableDictionary<string, V> NameComparerDictionaryPrototype = ImmutableDictionary.Create<string, V>(MSBuildNameIgnoreCaseComparer.Default); 44private static readonly ImmutableDictionary<string, V> OrdinalIgnoreCaseComparerDictionaryPrototype = ImmutableDictionary.Create<string, V>(StringComparer.OrdinalIgnoreCase); 94: ImmutableDictionary.Create<string, V>(keyComparer);
Evaluation\LazyItemEvaluator.cs (1)
462private static readonly ImmutableDictionary<string, LazyItemList> s_emptyIgnoreCase = ImmutableDictionary.Create<string, LazyItemList>(StringComparer.OrdinalIgnoreCase);
Microsoft.Build.Tasks.Core (3)
CopyOnWriteDictionary.cs (3)
37private static readonly ImmutableDictionary<string, V> NameComparerDictionaryPrototype = ImmutableDictionary.Create<string, V>(MSBuildNameIgnoreCaseComparer.Default); 44private static readonly ImmutableDictionary<string, V> OrdinalIgnoreCaseComparerDictionaryPrototype = ImmutableDictionary.Create<string, V>(StringComparer.OrdinalIgnoreCase); 94: ImmutableDictionary.Create<string, V>(keyComparer);
Microsoft.Build.Utilities.Core (3)
CopyOnWriteDictionary.cs (3)
37private static readonly ImmutableDictionary<string, V> NameComparerDictionaryPrototype = ImmutableDictionary.Create<string, V>(MSBuildNameIgnoreCaseComparer.Default); 44private static readonly ImmutableDictionary<string, V> OrdinalIgnoreCaseComparerDictionaryPrototype = ImmutableDictionary.Create<string, V>(StringComparer.OrdinalIgnoreCase); 94: ImmutableDictionary.Create<string, V>(keyComparer);
Microsoft.CodeAnalysis (3)
DiagnosticAnalyzer\DictionaryAnalyzerConfigOptions.cs (1)
13internal static readonly ImmutableDictionary<string, string> EmptyDictionary = ImmutableDictionary.Create<string, string>(KeyComparer);
InternalUtilities\EnumerableExtensions.cs (1)
726return ImmutableDictionary.Create<K, V>(keyComparer);
Syntax\SyntaxTree.cs (1)
28ImmutableDictionary.Create<string, ReportDiagnostic>(CaseInsensitiveComparison.Comparer);
Microsoft.CodeAnalysis.CodeStyle (2)
src\Compilers\Core\Portable\DiagnosticAnalyzer\DictionaryAnalyzerConfigOptions.cs (1)
13internal static readonly ImmutableDictionary<string, string> EmptyDictionary = ImmutableDictionary.Create<string, string>(KeyComparer);
src\Compilers\Core\Portable\InternalUtilities\EnumerableExtensions.cs (1)
726return ImmutableDictionary.Create<K, V>(keyComparer);
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
Collections\Immutable\Maps\MapTests.cs (1)
85var map = ImmutableDictionary.Create<string, int>(new PathologicalComparer<string>())
Microsoft.CodeAnalysis.ExternalAccess.FSharp (1)
VS\IFSharpWorkspaceProjectContextFactory.cs (1)
108_projectReferences = ImmutableDictionary.Create<string, IFSharpWorkspaceProjectContext>(StringComparer.OrdinalIgnoreCase);
Microsoft.CodeAnalysis.VisualBasic (3)
Compilation\VisualBasicDiagnosticFilter.vb (1)
38ImmutableDictionary.Create(Of String, ReportDiagnostic)(CaseInsensitiveComparison.Comparer).AddRange(specificDiagnosticOptions)
Syntax\VisualBasicWarningStateMap.vb (2)
56Dim accumulatedSpecificWarningState = ImmutableDictionary.Create(Of String, ReportDiagnostic)(CaseInsensitiveComparison.Comparer) 77accumulatedSpecificWarningState = ImmutableDictionary.Create(Of String, ReportDiagnostic)(CaseInsensitiveComparison.Comparer)
Microsoft.CodeAnalysis.Workspaces (2)
src\Compilers\Core\Portable\DiagnosticAnalyzer\DictionaryAnalyzerConfigOptions.cs (1)
13internal static readonly ImmutableDictionary<string, string> EmptyDictionary = ImmutableDictionary.Create<string, string>(KeyComparer);
src\Compilers\Core\Portable\InternalUtilities\EnumerableExtensions.cs (1)
726return ImmutableDictionary.Create<K, V>(keyComparer);
Microsoft.CodeAnalysis.Workspaces.MSBuild (2)
MSBuild\MSBuildProjectLoader.cs (2)
46Properties = ImmutableDictionary.Create<string, string>(StringComparer.OrdinalIgnoreCase); 68Properties = ImmutableDictionary.Create<string, string>(StringComparer.OrdinalIgnoreCase);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
src\Compilers\Core\Portable\InternalUtilities\EnumerableExtensions.cs (1)
726return ImmutableDictionary.Create<K, V>(keyComparer);
Microsoft.CodeAnalysis.Workspaces.UnitTests (2)
Options\DocumentOptionSetTests.cs (2)
26new DictionaryAnalyzerConfigOptions(ImmutableDictionary.Create<string, string>(AnalyzerConfigOptions.KeyComparer).Add( 128ImmutableDictionary.Create<string, string>(AnalyzerConfigOptions.KeyComparer).Add(
Microsoft.VisualStudio.LanguageServices.LiveShare (2)
Client\RemoteLanguageServiceWorkspaceHost.cs (2)
37private ImmutableDictionary<string, ProjectId> _loadedProjects = ImmutableDictionary.Create<string, ProjectId>(StringComparer.OrdinalIgnoreCase); 38private ImmutableDictionary<string, ProjectInfo> _loadedProjectInfo = ImmutableDictionary.Create<string, ProjectInfo>(StringComparer.OrdinalIgnoreCase);
MSBuild (3)
CopyOnWriteDictionary.cs (3)
37private static readonly ImmutableDictionary<string, V> NameComparerDictionaryPrototype = ImmutableDictionary.Create<string, V>(MSBuildNameIgnoreCaseComparer.Default); 44private static readonly ImmutableDictionary<string, V> OrdinalIgnoreCaseComparerDictionaryPrototype = ImmutableDictionary.Create<string, V>(StringComparer.OrdinalIgnoreCase); 94: ImmutableDictionary.Create<string, V>(keyComparer);
System.Collections.Immutable (1)
System\Collections\Immutable\ImmutableDictionary.cs (1)
114return Create<TKey, TValue>(keyComparer).ToBuilder();