16 references to ToImmutableDictionary
Microsoft.CodeAnalysis (2)
src\Dependencies\PooledObjects\PooledDictionary.cs (2)
26var result = this.ToImmutableDictionary(this.Comparer); 31public ImmutableDictionary<K, V> ToImmutableDictionary() => this.ToImmutableDictionary(this.Comparer);
Microsoft.CodeAnalysis.CodeStyle (2)
src\Dependencies\PooledObjects\PooledDictionary.cs (2)
26var result = this.ToImmutableDictionary(this.Comparer); 31public ImmutableDictionary<K, V> ToImmutableDictionary() => this.ToImmutableDictionary(this.Comparer);
Microsoft.CodeAnalysis.CSharp (1)
CSharpParseOptions.cs (1)
166features?.ToImmutableDictionary(StringComparer.OrdinalIgnoreCase)
Microsoft.CodeAnalysis.PooledObjects.Package (2)
PooledDictionary.cs (2)
26var result = this.ToImmutableDictionary(this.Comparer); 31public ImmutableDictionary<K, V> ToImmutableDictionary() => this.ToImmutableDictionary(this.Comparer);
Microsoft.CodeAnalysis.Workspaces (2)
src\Dependencies\PooledObjects\PooledDictionary.cs (2)
26var result = this.ToImmutableDictionary(this.Comparer); 31public ImmutableDictionary<K, V> ToImmutableDictionary() => this.ToImmutableDictionary(this.Comparer);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (2)
src\Dependencies\PooledObjects\PooledDictionary.cs (2)
26var result = this.ToImmutableDictionary(this.Comparer); 31public ImmutableDictionary<K, V> ToImmutableDictionary() => this.ToImmutableDictionary(this.Comparer);
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
EditorConfigStorageLocation\NamingStylePreferenceEditorConfigStorageLocationTests.cs (1)
33}.ToImmutableDictionary(AnalyzerConfigOptions.KeyComparer)));
Microsoft.DotNet.XUnitAssert.Tests (4)
DictionaryAssertsTests.cs (4)
28 Assert.Equal(42, Assert.Contains("FORTY-two", dictionary.ToImmutableDictionary(StringComparer.InvariantCultureIgnoreCase))); 29 Assert.Equal(42, Assert.Contains("FORTY-two", (IImmutableDictionary<string, int>)dictionary.ToImmutableDictionary(StringComparer.InvariantCultureIgnoreCase))); 111 assertFailure(() => Assert.DoesNotContain("FORTY-two", dictionary.ToImmutableDictionary(StringComparer.InvariantCultureIgnoreCase))); 112 assertFailure(() => Assert.DoesNotContain("FORTY-two", (IImmutableDictionary<string, int>)dictionary.ToImmutableDictionary(StringComparer.InvariantCultureIgnoreCase)));