70 references to ToImmutableDictionary
Aspire.Dashboard.Components.Tests (1)
tests\Shared\DashboardModel\ModelTestHelpers.cs (1)
36Properties = properties?.ToImmutableDictionary() ?? ImmutableDictionary<string, ResourcePropertyViewModel>.Empty,
Aspire.Dashboard.Tests (1)
tests\Shared\DashboardModel\ModelTestHelpers.cs (1)
36Properties = properties?.ToImmutableDictionary() ?? ImmutableDictionary<string, ResourcePropertyViewModel>.Empty,
BuildActionTelemetryTable (1)
Program.cs (1)
429}.ToImmutableDictionary();
ILLink.RoslynAnalyzer (4)
DynamicallyAccessedMembersAnalyzer.cs (3)
197 GetPrimaryLocation (returnOrigin.Locations), sourceLocation, DAMArgs?.ToImmutableDictionary (), overrideMethod.GetDisplayName (), baseMethod.GetDisplayName ())); 219 GetPrimaryLocation (parameterOrigin?.Locations), sourceLocation, DAMArgs?.ToImmutableDictionary (), 243 GetPrimaryLocation (typeParameterOrigin.Locations), sourceLocation, DAMArgs?.ToImmutableDictionary (),
TrimAnalysis\DiagnosticContext.cs (1)
81 return Diagnostic.Create (DiagnosticDescriptors.GetDiagnosticDescriptor (id), Location, sourceLocation, DAMArgument?.ToImmutableDictionary (), args);
Microsoft.Build (4)
CopyOnWriteDictionary.cs (1)
108_backing = dictionary.ToImmutableDictionary();
Graph\ProjectInterpretation.cs (3)
336$"{setConfigurationString};{setPlatformString};{setTargetFrameworkString}").ToImmutableDictionary(); 392var defaultParts = new GlobalPropertyPartsForMSBuildTask(properties.ToImmutableDictionary(), additionalProperties.ToImmutableDictionary(), undefineProperties.ToImmutableList());
Microsoft.Build.Engine.UnitTests (1)
Graph\GraphTestingUtilities.cs (1)
20public static readonly ImmutableDictionary<string, string> EmptyGlobalProperties = new Dictionary<string, string> { { PropertyNames.IsGraphBuild, "true" } }.ToImmutableDictionary();
Microsoft.Build.Tasks.Core (1)
CopyOnWriteDictionary.cs (1)
108_backing = dictionary.ToImmutableDictionary();
Microsoft.Build.Utilities.Core (1)
CopyOnWriteDictionary.cs (1)
108_backing = dictionary.ToImmutableDictionary();
Microsoft.CodeAnalysis (3)
CodeGen\CompilationTestData.cs (1)
81var methodsByName = map.Where(p => p.Value.Method != null).ToImmutableDictionary();
ReferenceManager\CommonReferenceManager.State.cs (1)
444_lazyMergedAssemblyReferencesMap = mergedAssemblyReferencesMapOpt?.ToImmutableDictionary() ?? ImmutableDictionary<MetadataReference, ImmutableArray<MetadataReference>>.Empty;
RuleSet\RuleSet.cs (1)
185return new RuleSet(_filePath, effectiveGeneralOption, effectiveSpecificOptions.ToImmutableDictionary(), ImmutableArray<RuleSetInclude>.Empty);
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_Negate.cs (1)
33}.ToImmutableDictionary();
Microsoft.CodeAnalysis.CSharp (2)
CSharpParseOptions.cs (1)
74_features = features?.ToImmutableDictionary() ?? ImmutableDictionary<string, string>.Empty;
Errors\ErrorFacts.cs (1)
103return map.ToImmutableDictionary();
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Compilation\CSharpCompilationOptionsTests.cs (2)
87new Dictionary<string, ReportDiagnostic> { { "CS0001", ReportDiagnostic.Error } }.ToImmutableDictionary()); 126new Dictionary<string, ReportDiagnostic> { { "CS0001", ReportDiagnostic.Error } }.ToImmutableDictionary());
Microsoft.CodeAnalysis.EditorFeatures (1)
EditAndContinue\PdbMatchingSourceTextProvider.cs (1)
168return _instance._documentsWithChangedLoaderByPath.ToImmutableDictionary();
Microsoft.CodeAnalysis.Features (3)
Completion\CompletionItem.cs (2)
100_lazyPropertiesAsImmutableDictionary = _properties.ToImmutableDictionary(); 205_lazyPropertiesAsImmutableDictionary = _properties.ToImmutableDictionary();
InlineMethod\AbstractInlineMethodRefactoringProvider.InlineContext.cs (1)
376return renameTable.ToImmutableDictionary();
Microsoft.CodeAnalysis.Features.UnitTests (1)
EditAndContinue\EditSessionActiveStatementsTests.cs (1)
514}.ToImmutableDictionary();
Microsoft.CodeAnalysis.LanguageServer (3)
BrokeredServices\Services\Descriptors.cs (1)
55}.ToImmutableDictionary();
Services\ExtensionAssemblyManager.cs (2)
81return new ExtensionAssemblyManager(directoryLoadContexts.ToImmutableDictionary(), assemblyFullNameToLoadContext.ToImmutableDictionary(), validExtensionAssemblies.ToImmutable());
Microsoft.CodeAnalysis.LanguageServer.Protocol (7)
Extensions\ProtocolConversions.cs (2)
92}.ToImmutableDictionary(); 103}.ToImmutableDictionary();
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.StateManager.HostStates.cs (1)
142var stateSetMap = StateSetMap.Where(kvp => !excludedAnalyzers.Contains(kvp.Key)).ToImmutableDictionary();
Handler\InlineCompletions\InlineCompletionsHandler.cs (1)
308return (functionSnippetBuilder.ToString(), fieldOffsets.ToImmutableDictionary(), caretSpan);
Handler\SemanticTokens\CustomLspSemanticTokenNames.cs (1)
149}.ToImmutableDictionary();
Handler\SemanticTokens\SemanticTokensSchema.cs (2)
31}.ToImmutableDictionary(); 55}).ToImmutableDictionary();
Microsoft.CodeAnalysis.Test.Utilities (2)
Diagnostics\CommonDiagnosticAnalyzers.cs (1)
54new Dictionary<string, string> { { "Key1", "Value1" }, { "Key2", "Value2" } }.ToImmutableDictionary();
PDB\DeterministicBuildCompilationTestHelpers.cs (1)
184return kvp.ToImmutableDictionary();
Microsoft.CodeAnalysis.VisualBasic.ExpressionCompiler (2)
CompilationContext.vb (1)
1120displayClassVariables = displayClassVariablesBuilder.ToImmutableDictionary()
Symbols\EEMethodSymbol.vb (1)
172Dim result = newDisplayClassVariables.ToImmutableDictionary()
Microsoft.CodeAnalysis.Workspaces (4)
CodeFixes\FixAllOccurrences\BatchFixAllProvider.cs (1)
103return filtered.ToImmutableDictionary();
CodeFixes\FixAllOccurrences\FixAllContext.DiagnosticProvider.cs (1)
48return result.Where(kvp => !kvp.Value.IsDefaultOrEmpty).ToImmutableDictionary();
Shared\Extensions\ILanguageMetadataExtensions.cs (1)
41return builder.Select(kvp => KeyValuePairUtil.Create(kvp.Key, kvp.Value.ToImmutableAndFree())).ToImmutableDictionary();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_Negate.cs (1)
33}.ToImmutableDictionary();
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
MSBuild\MSBuildWorkspace.cs (1)
93return new MSBuildWorkspace(hostServices, properties.ToImmutableDictionary());
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (2)
Build\ProjectBuildManager.cs (1)
57}.ToImmutableDictionary();
MSBuild\ProjectFile\CommandLineArgumentReader.cs (1)
164}.ToImmutableDictionary();
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (1)
BuildHostProcessManagerTests.cs (1)
131}.ToImmutableDictionary();
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
Options\OptionsTestHelpers.cs (1)
200=> EditorConfigNamingStyleParser.ParseDictionary(new DictionaryAnalyzerConfigOptions(options.ToImmutableDictionary()));
Microsoft.DotNet.Helix.JobSender (1)
JobDefinition.cs (1)
223Properties = _properties.ToImmutableDictionary(),
Microsoft.DotNet.SignTool (2)
src\Configuration.cs (2)
204return new BatchSignInput(_filesToSign.ToImmutableArray(), _zipDataMap.ToImmutableDictionary(), _filesToCopy.ToImmutableArray()); 806zipData = new ZipData(zipFileSignInfo, nestedParts.ToImmutableDictionary());
Microsoft.DotNet.XUnitAssert.Tests (4)
DictionaryAssertsTests.cs (4)
59 assertFailure(() => Assert.Contains("FORTY-two", dictionary.ToImmutableDictionary())); 60 assertFailure(() => Assert.Contains("FORTY-two", (IImmutableDictionary<string, int>)dictionary.ToImmutableDictionary())); 80 Assert.DoesNotContain("FORTY-two", dictionary.ToImmutableDictionary()); 81 Assert.DoesNotContain("FORTY-two", (IImmutableDictionary<string, int>)dictionary.ToImmutableDictionary());
Microsoft.Interop.ComInterfaceGenerator (1)
GeneratedComInterfaceAttributeData.cs (1)
64var args = attr.NamedArguments.ToImmutableDictionary();
Microsoft.Interop.SourceGeneration (1)
ManualTypeMarshallingHelper.cs (1)
235Modes = modes.ToImmutableDictionary()
Microsoft.ML.Transforms (1)
PermutationFeatureImportanceExtensions.cs (1)
721return output.ToImmutableDictionary();
Microsoft.VisualStudio.LanguageServices (1)
ProjectSystem\RuleSets\VisualStudioRuleSetManager.RuleSetFile.cs (1)
138_specificDiagnosticOptions = specificDiagnosticOptions.ToImmutableDictionary();
MSBuild (1)
CopyOnWriteDictionary.cs (1)
108_backing = dictionary.ToImmutableDictionary();
RunTests (1)
TestHistoryManager.cs (1)
124return testInfos.ToImmutableDictionary();
System.Windows.Forms.Analyzers.CSharp.Tests (7)
Generators\ProjectFileReaderTests.cs (7)
49CompilerAnalyzerConfigOptions configOptions = new(properties.ToImmutableDictionary()); 75CompilerAnalyzerConfigOptions configOptions = new(properties.ToImmutableDictionary()); 113CompilerAnalyzerConfigOptions configOptions = new(properties.ToImmutableDictionary()); 150CompilerAnalyzerConfigOptions configOptions = new(properties.ToImmutableDictionary()); 172CompilerAnalyzerConfigOptions configOptions = new(properties.ToImmutableDictionary()); 192CompilerAnalyzerConfigOptions configOptions = new(properties.ToImmutableDictionary()); 210CompilerAnalyzerConfigOptions configOptions = new(properties.ToImmutableDictionary());