8 implementations of IImmutableDictionary
Microsoft.Build.Framework (1)
ImmutableSegmentedDictionary`2.cs (1)
70internal readonly partial struct ImmutableSegmentedDictionary<TKey, TValue> : IImmutableDictionary<TKey, TValue>, IDictionary<TKey, TValue>, IReadOnlyDictionary<TKey, TValue>, IDictionary, IEquatable<ImmutableSegmentedDictionary<TKey, TValue>>
Microsoft.CodeAnalysis (1)
src\Dependencies\Collections\ImmutableSegmentedDictionary`2.cs (1)
70internal readonly partial struct ImmutableSegmentedDictionary<TKey, TValue> : IImmutableDictionary<TKey, TValue>, IDictionary<TKey, TValue>, IReadOnlyDictionary<TKey, TValue>, IDictionary, IEquatable<ImmutableSegmentedDictionary<TKey, TValue>>
Microsoft.CodeAnalysis.CodeStyle (1)
src\Dependencies\Collections\ImmutableSegmentedDictionary`2.cs (1)
70internal readonly partial struct ImmutableSegmentedDictionary<TKey, TValue> : IImmutableDictionary<TKey, TValue>, IDictionary<TKey, TValue>, IReadOnlyDictionary<TKey, TValue>, IDictionary, IEquatable<ImmutableSegmentedDictionary<TKey, TValue>>
Microsoft.CodeAnalysis.Collections.Package (1)
ImmutableSegmentedDictionary`2.cs (1)
70internal readonly partial struct ImmutableSegmentedDictionary<TKey, TValue> : IImmutableDictionary<TKey, TValue>, IDictionary<TKey, TValue>, IReadOnlyDictionary<TKey, TValue>, IDictionary, IEquatable<ImmutableSegmentedDictionary<TKey, TValue>>
Microsoft.CodeAnalysis.Workspaces (1)
src\Dependencies\Collections\ImmutableSegmentedDictionary`2.cs (1)
70internal readonly partial struct ImmutableSegmentedDictionary<TKey, TValue> : IImmutableDictionary<TKey, TValue>, IDictionary<TKey, TValue>, IReadOnlyDictionary<TKey, TValue>, IDictionary, IEquatable<ImmutableSegmentedDictionary<TKey, TValue>>
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
src\Dependencies\Collections\ImmutableSegmentedDictionary`2.cs (1)
70internal readonly partial struct ImmutableSegmentedDictionary<TKey, TValue> : IImmutableDictionary<TKey, TValue>, IDictionary<TKey, TValue>, IReadOnlyDictionary<TKey, TValue>, IDictionary, IEquatable<ImmutableSegmentedDictionary<TKey, TValue>>
System.Collections.Immutable (2)
System\Collections\Immutable\ImmutableDictionary_2.cs (1)
18public sealed partial class ImmutableDictionary<TKey, TValue> : IImmutableDictionary<TKey, TValue>, IImmutableDictionaryInternal<TKey, TValue>, IDictionary<TKey, TValue>, IDictionary where TKey : notnull
System\Collections\Immutable\ImmutableSortedDictionary_2.cs (1)
19public sealed partial class ImmutableSortedDictionary<TKey, TValue> : IImmutableDictionary<TKey, TValue>, IDictionary<TKey, TValue>, IDictionary
294 references to IImmutableDictionary
Microsoft.AspNetCore.Components.Endpoints (5)
FormMapping\Converters\DictionaryAdapters\ImmutableDictionaryBufferAdapter.cs (3)
22internal static DictionaryConverter<IImmutableDictionary<TKey, TValue>> CreateInterfaceConverter(FormDataConverter<TValue> valueTypeConverter) 24return new DictionaryConverter<IImmutableDictionary<TKey, TValue>, 26IImmutableDictionary<TKey, TValue>,
FormMapping\Factories\Dictionary\TypedDictionaryConverterFactory.cs (2)
31var _ when type == (typeof(IImmutableDictionary<TKey, TValue>)) => true, 87var _ when type == (typeof(IImmutableDictionary<TKey, TValue>)) =>
Microsoft.AspNetCore.Components.Endpoints.Tests (1)
Binding\FormDataMapperTests.cs (1)
948var result = FormDataMapper.Map<IImmutableDictionary<int, int>>(reader, options);
Microsoft.AspNetCore.Http.Extensions (5)
src\Components\Endpoints\src\FormMapping\Converters\DictionaryAdapters\ImmutableDictionaryBufferAdapter.cs (3)
22internal static DictionaryConverter<IImmutableDictionary<TKey, TValue>> CreateInterfaceConverter(FormDataConverter<TValue> valueTypeConverter) 24return new DictionaryConverter<IImmutableDictionary<TKey, TValue>, 26IImmutableDictionary<TKey, TValue>,
src\Components\Endpoints\src\FormMapping\Factories\Dictionary\TypedDictionaryConverterFactory.cs (2)
31var _ when type == (typeof(IImmutableDictionary<TKey, TValue>)) => true, 87var _ when type == (typeof(IImmutableDictionary<TKey, TValue>)) =>
Microsoft.Build.Framework (14)
ImmutableSegmentedDictionary`2.cs (14)
319IImmutableDictionary<TKey, TValue> IImmutableDictionary<TKey, TValue>.Clear() 322IImmutableDictionary<TKey, TValue> IImmutableDictionary<TKey, TValue>.Add(TKey key, TValue value) 325IImmutableDictionary<TKey, TValue> IImmutableDictionary<TKey, TValue>.AddRange(IEnumerable<KeyValuePair<TKey, TValue>> pairs) 328IImmutableDictionary<TKey, TValue> IImmutableDictionary<TKey, TValue>.SetItem(TKey key, TValue value) 331IImmutableDictionary<TKey, TValue> IImmutableDictionary<TKey, TValue>.SetItems(IEnumerable<KeyValuePair<TKey, TValue>> items) 334IImmutableDictionary<TKey, TValue> IImmutableDictionary<TKey, TValue>.RemoveRange(IEnumerable<TKey> keys) 337IImmutableDictionary<TKey, TValue> IImmutableDictionary<TKey, TValue>.Remove(TKey key) => Remove(key);
Microsoft.CodeAnalysis (14)
src\Dependencies\Collections\ImmutableSegmentedDictionary`2.cs (14)
310IImmutableDictionary<TKey, TValue> IImmutableDictionary<TKey, TValue>.Clear() 313IImmutableDictionary<TKey, TValue> IImmutableDictionary<TKey, TValue>.Add(TKey key, TValue value) 316IImmutableDictionary<TKey, TValue> IImmutableDictionary<TKey, TValue>.AddRange(IEnumerable<KeyValuePair<TKey, TValue>> pairs) 319IImmutableDictionary<TKey, TValue> IImmutableDictionary<TKey, TValue>.SetItem(TKey key, TValue value) 322IImmutableDictionary<TKey, TValue> IImmutableDictionary<TKey, TValue>.SetItems(IEnumerable<KeyValuePair<TKey, TValue>> items) 325IImmutableDictionary<TKey, TValue> IImmutableDictionary<TKey, TValue>.RemoveRange(IEnumerable<TKey> keys) 328IImmutableDictionary<TKey, TValue> IImmutableDictionary<TKey, TValue>.Remove(TKey key) => Remove(key);
Microsoft.CodeAnalysis.CodeStyle (14)
src\Dependencies\Collections\ImmutableSegmentedDictionary`2.cs (14)
310IImmutableDictionary<TKey, TValue> IImmutableDictionary<TKey, TValue>.Clear() 313IImmutableDictionary<TKey, TValue> IImmutableDictionary<TKey, TValue>.Add(TKey key, TValue value) 316IImmutableDictionary<TKey, TValue> IImmutableDictionary<TKey, TValue>.AddRange(IEnumerable<KeyValuePair<TKey, TValue>> pairs) 319IImmutableDictionary<TKey, TValue> IImmutableDictionary<TKey, TValue>.SetItem(TKey key, TValue value) 322IImmutableDictionary<TKey, TValue> IImmutableDictionary<TKey, TValue>.SetItems(IEnumerable<KeyValuePair<TKey, TValue>> items) 325IImmutableDictionary<TKey, TValue> IImmutableDictionary<TKey, TValue>.RemoveRange(IEnumerable<TKey> keys) 328IImmutableDictionary<TKey, TValue> IImmutableDictionary<TKey, TValue>.Remove(TKey key) => Remove(key);
Microsoft.CodeAnalysis.Collections.Package (14)
ImmutableSegmentedDictionary`2.cs (14)
310IImmutableDictionary<TKey, TValue> IImmutableDictionary<TKey, TValue>.Clear() 313IImmutableDictionary<TKey, TValue> IImmutableDictionary<TKey, TValue>.Add(TKey key, TValue value) 316IImmutableDictionary<TKey, TValue> IImmutableDictionary<TKey, TValue>.AddRange(IEnumerable<KeyValuePair<TKey, TValue>> pairs) 319IImmutableDictionary<TKey, TValue> IImmutableDictionary<TKey, TValue>.SetItem(TKey key, TValue value) 322IImmutableDictionary<TKey, TValue> IImmutableDictionary<TKey, TValue>.SetItems(IEnumerable<KeyValuePair<TKey, TValue>> items) 325IImmutableDictionary<TKey, TValue> IImmutableDictionary<TKey, TValue>.RemoveRange(IEnumerable<TKey> keys) 328IImmutableDictionary<TKey, TValue> IImmutableDictionary<TKey, TValue>.Remove(TKey key) => Remove(key);
Microsoft.CodeAnalysis.Scripting.UnitTests (2)
RuntimeMetadataReferenceResolverTests.cs (2)
69private readonly IImmutableDictionary<string, ImmutableArray<string>> _map; 71internal PackageResolver(IImmutableDictionary<string, ImmutableArray<string>> map)
Microsoft.CodeAnalysis.UnitTests (61)
Collections\ImmutableDictionaryBuilderTestBase.cs (11)
80var map = this.GetEmptyImmutableDictionary<string, int>().Add("five", 5); 88var map = this.GetEmptyImmutableDictionary<string, int>().Add("five", 5).Add("six", 6); 99var map = this.GetEmptyImmutableDictionary<string, int>().Add("five", 5).Add("six", 6); 109var map = this.GetEmptyImmutableDictionary<string, int>().Add("five", 5); 129var map = this.GetEmptyImmutableDictionary<string, int>().Add("five", 5).Add("six", 6); 138var map = this.GetEmptyImmutableDictionary<string, int>().Add("five", 5).Add("six", 6); 147var map = this.GetEmptyImmutableDictionary<string, int>().Add("five", 5).Add("six", 6); 158var map = this.GetEmptyImmutableDictionary<string, int>().Add("five", 5).Add("six", 6); 269protected abstract IDictionary<TKey, TValue> GetBuilder<TKey, TValue>(IImmutableDictionary<TKey, TValue>? basis = null) 278protected abstract IImmutableDictionary<TKey, TValue> GetEmptyImmutableDictionary<TKey, TValue>() 281protected abstract IImmutableDictionary<string, TValue> Empty<TValue>(StringComparer comparer);
Collections\ImmutableDictionaryTestBase.cs (19)
43var map = this.Empty<string, int>() 53var sameMap = map.SetItem("Microsoft", 200); 65var map = this.Empty<string, int>().SetItems(template); 113var map = this.Empty<int, int>().Add(3, 5); 123var dictionary = Empty<string, int>(); 225var dictionary = Empty<int>(StringComparer.OrdinalIgnoreCase) 237protected void EmptyTestHelper<K, V>(IImmutableDictionary<K, V?> empty, K someKey) 254protected void AddExistingKeySameValueTestHelper<TKey, TValue>(IImmutableDictionary<TKey, TValue> map, TKey key, TValue value1, TValue value2) 279protected void AddExistingKeyDifferentValueTestHelper<TKey, TValue>(IImmutableDictionary<TKey, TValue> map, TKey key, TValue value1, TValue value2) 286var map1 = map.Add(key, value1); 287var map2 = map.Add(key, value2); 292protected static void ContainsKeyTestHelper<TKey, TValue>(IImmutableDictionary<TKey, TValue> map, TKey key, TValue value) 298protected static void ContainsTestHelper<TKey, TValue>(IImmutableDictionary<TKey, TValue> map, TKey key, TValue value) 307protected void RemoveTestHelper<TKey, TValue>(IImmutableDictionary<TKey, TValue?> map, TKey key) 315var addedMap = map.Add(key, default(TValue)); 316var removedMap = addedMap.Remove(key); 321protected abstract IImmutableDictionary<TKey, TValue> Empty<TKey, TValue>() 324protected abstract IImmutableDictionary<string, TValue> Empty<TValue>(StringComparer comparer); 326protected abstract IEqualityComparer<TValue> GetValueComparer<TKey, TValue>(IImmutableDictionary<TKey, TValue> dictionary)
Collections\ImmutableDictionaryTestBase.nonnetstandard.cs (17)
90var map = Empty<int, GenericParameterHelper>(); 96var map2 = Empty<int, GenericParameterHelper>(); 97var jointMap = map2.AddRange(map); 125private static IImmutableDictionary<TKey, TValue> AddTestHelper<TKey, TValue>(IImmutableDictionary<TKey, TValue> map, TKey key, TValue value) where TKey : IComparable<TKey> 130IImmutableDictionary<TKey, TValue> addedMap = map.Add(key, value); 140protected static void AddAscendingTestHelper(IImmutableDictionary<int, GenericParameterHelper> map) 156protected static void AddDescendingTestHelper(IImmutableDictionary<int, GenericParameterHelper> map) 170protected static void AddRemoveRandomDataTestHelper(IImmutableDictionary<double, GenericParameterHelper> map) 194protected void AddRemoveEnumerableTestHelper(IImmutableDictionary<int, int> empty) 201var nonEmpty = empty.AddRange(list); 202var halfRemoved = nonEmpty.RemoveRange(Enumerable.Range(1, 5)); 207protected static void KeysTestHelper<TKey, TValue>(IImmutableDictionary<TKey, TValue?> map, TKey key) 213var nonEmpty = map.Add(key, default(TValue)); 219protected static void ValuesTestHelper<TKey, TValue>(IImmutableDictionary<TKey, TValue?> map, TKey key) 224var nonEmpty = map.Add(key, default(TValue)); 230protected static void EnumeratorTestHelper(IImmutableDictionary<int, GenericParameterHelper> map)
Collections\ImmutableSegmentedDictionaryBuilderTest.cs (3)
291protected override IImmutableDictionary<TKey, TValue> GetEmptyImmutableDictionary<TKey, TValue>() 296protected override IImmutableDictionary<string, TValue> Empty<TValue>(StringComparer comparer) 306protected override IDictionary<TKey, TValue> GetBuilder<TKey, TValue>(IImmutableDictionary<TKey, TValue>? basis)
Collections\ImmutableSegmentedDictionaryTest.cs (5)
225IImmutableDictionary<string, int> empty = ImmutableSegmentedDictionary.Create<string, int>(); 226IImmutableDictionary<string, int> populated = ImmutableSegmentedDictionary.Create<string, int>().Add("a", 5); 329protected override IImmutableDictionary<TKey, TValue> Empty<TKey, TValue>() 334protected override IImmutableDictionary<string, TValue> Empty<TValue>(StringComparer comparer) 339protected override IEqualityComparer<TValue> GetValueComparer<TKey, TValue>(IImmutableDictionary<TKey, TValue> dictionary)
Collections\ImmutableSegmentedDictionaryTest.nonnetstandard.cs (1)
33private static void EmptyTestHelperHash<TKey, TValue>(IImmutableDictionary<TKey, TValue> empty, TKey someKey)
Collections\ImmutablesTestBase.cs (2)
93protected static bool IsSame<TKey, TValue>(IImmutableDictionary<TKey, TValue> first, IImmutableDictionary<TKey, TValue> second)
Collections\TestExtensionsMethods.nonnetstandard.cs (3)
21internal static IDictionary<TKey, TValue> ToReadOnlyDictionary<TKey, TValue>(this IImmutableDictionary<TKey, TValue> dictionary) 29internal static IDictionary<TKey, TValue> ToBuilder<TKey, TValue>(this IImmutableDictionary<TKey, TValue> dictionary) 42internal static IEqualityComparer<TKey> GetKeyComparer<TKey, TValue>(this IImmutableDictionary<TKey, TValue> dictionary)
Microsoft.CodeAnalysis.Workspaces (14)
src\Dependencies\Collections\ImmutableSegmentedDictionary`2.cs (14)
310IImmutableDictionary<TKey, TValue> IImmutableDictionary<TKey, TValue>.Clear() 313IImmutableDictionary<TKey, TValue> IImmutableDictionary<TKey, TValue>.Add(TKey key, TValue value) 316IImmutableDictionary<TKey, TValue> IImmutableDictionary<TKey, TValue>.AddRange(IEnumerable<KeyValuePair<TKey, TValue>> pairs) 319IImmutableDictionary<TKey, TValue> IImmutableDictionary<TKey, TValue>.SetItem(TKey key, TValue value) 322IImmutableDictionary<TKey, TValue> IImmutableDictionary<TKey, TValue>.SetItems(IEnumerable<KeyValuePair<TKey, TValue>> items) 325IImmutableDictionary<TKey, TValue> IImmutableDictionary<TKey, TValue>.RemoveRange(IEnumerable<TKey> keys) 328IImmutableDictionary<TKey, TValue> IImmutableDictionary<TKey, TValue>.Remove(TKey key) => Remove(key);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (14)
src\Dependencies\Collections\ImmutableSegmentedDictionary`2.cs (14)
310IImmutableDictionary<TKey, TValue> IImmutableDictionary<TKey, TValue>.Clear() 313IImmutableDictionary<TKey, TValue> IImmutableDictionary<TKey, TValue>.Add(TKey key, TValue value) 316IImmutableDictionary<TKey, TValue> IImmutableDictionary<TKey, TValue>.AddRange(IEnumerable<KeyValuePair<TKey, TValue>> pairs) 319IImmutableDictionary<TKey, TValue> IImmutableDictionary<TKey, TValue>.SetItem(TKey key, TValue value) 322IImmutableDictionary<TKey, TValue> IImmutableDictionary<TKey, TValue>.SetItems(IEnumerable<KeyValuePair<TKey, TValue>> items) 325IImmutableDictionary<TKey, TValue> IImmutableDictionary<TKey, TValue>.RemoveRange(IEnumerable<TKey> keys) 328IImmutableDictionary<TKey, TValue> IImmutableDictionary<TKey, TValue>.Remove(TKey key) => Remove(key);
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (3)
FileSet.cs (3)
17private readonly IImmutableDictionary<string, object> _fileMap; 19private FileSet(IImmutableDictionary<string, object> fileMap) 49var newFileMap = _fileMap.SetItem(fileName, content);
Microsoft.DotNet.Helix.Client (42)
generated-code\Aggregate.cs (4)
77Task<IImmutableDictionary<string, Newtonsoft.Json.Linq.JToken>> PropertiesAsync( 824public async Task<IImmutableDictionary<string, Newtonsoft.Json.Linq.JToken>> PropertiesAsync( 886var _body = Client.Deserialize<IImmutableDictionary<string, Newtonsoft.Json.Linq.JToken>>(_content);
generated-code\Models\AggregateAnalysisDetail.cs (3)
12public AggregateAnalysisDetail(Newtonsoft.Json.Linq.JToken analysis, string job, string workItem, IImmutableDictionary<string, string> key) 30public IImmutableDictionary<string, string> Key { get; set; } 49if (Key == default(IImmutableDictionary<string, string>))
generated-code\Models\AggregateAnalysisSummary.cs (3)
12public AggregateAnalysisSummary(string type, string name, IImmutableDictionary<string, int> status) 26public IImmutableDictionary<string, int> Status { get; set; } 41if (Status == default(IImmutableDictionary<string, int>))
generated-code\Models\AggregateAnalysisSummaryKeyedData.cs (3)
12public AggregateAnalysisSummaryKeyedData(IImmutableDictionary<string, string> key, Models.AggregateAnalysisSummary data) 19public IImmutableDictionary<string, string> Key { get; set; } 29if (Key == default(IImmutableDictionary<string, string>))
generated-code\Models\AggregatedWorkItemCounts.cs (3)
12public AggregatedWorkItemCounts(IImmutableDictionary<string, string> key, Models.WorkItemStatusCounts data) 19public IImmutableDictionary<string, string> Key { get; set; } 29if (Key == default(IImmutableDictionary<string, string>))
generated-code\Models\AnalysisCount.cs (3)
12public AnalysisCount(string name, IImmutableDictionary<string, int> status) 22public IImmutableDictionary<string, int> Status { get; set; } 33if (Status == default(IImmutableDictionary<string, int>))
generated-code\Models\Artifact.cs (1)
20public IImmutableDictionary<string, Newtonsoft.Json.Linq.JToken> Parameters { get; set; }
generated-code\Models\BuildAggregation.cs (2)
12public BuildAggregation(string buildNumber, IImmutableDictionary<string, Models.BuildAggregationSource> sources) 22public IImmutableDictionary<string, Models.BuildAggregationSource> Sources { get; }
generated-code\Models\BuildAggregationSource.cs (2)
12public BuildAggregationSource(IImmutableDictionary<string, Models.AggregatedWorkItemCounts> types) 18public IImmutableDictionary<string, Models.AggregatedWorkItemCounts> Types { get; }
generated-code\Models\HistoricalAnalysisItem.cs (1)
23public IImmutableDictionary<string, int> Results { get; set; }
generated-code\Models\InvestigationGroup.cs (6)
12public InvestigationGroup(IImmutableDictionary<string, string> key, IImmutableDictionary<string, IImmutableList<Models.InvestigationAnalysis>> data) 19public IImmutableDictionary<string, string> Key { get; set; } 22public IImmutableDictionary<string, IImmutableList<Models.InvestigationAnalysis>> Data { get; set; } 29if (Key == default(IImmutableDictionary<string, string>)) 33if (Data == default(IImmutableDictionary<string, IImmutableList<Models.InvestigationAnalysis>>))
generated-code\Models\JobCreationRequest.cs (1)
41public IImmutableDictionary<string, string> Properties { get; set; }
generated-code\Models\JobInfo.cs (1)
36public IImmutableDictionary<string, string> Properties { get; set; }
generated-code\Models\MultiSourceResponse.cs (2)
12public MultiSourceResponse(IImmutableDictionary<string, Models.MultiSourceResponseSource> sources) 18public IImmutableDictionary<string, Models.MultiSourceResponseSource> Sources { get; }
generated-code\Models\MultiSourceResponseSource.cs (2)
12public MultiSourceResponseSource(IImmutableDictionary<string, IImmutableList<Models.AggregatedWorkItemCounts>> types) 18public IImmutableDictionary<string, IImmutableList<Models.AggregatedWorkItemCounts>> Types { get; }
generated-code\Models\UnknownWorkItemEvent.cs (1)
23public IImmutableDictionary<string, string> Values { get; set; }
generated-code\Models\WorkItemAggregateSummary.cs (1)
71public IImmutableDictionary<string, string> Key { get; set; }
generated-code\Models\WorkItemStatusCounts.cs (3)
12public WorkItemStatusCounts(IImmutableList<Models.AnalysisCount> analysis, IImmutableDictionary<string, int> workItemStatus) 22public IImmutableDictionary<string, int> WorkItemStatus { get; set; } 33if (WorkItemStatus == default(IImmutableDictionary<string, int>))
Microsoft.DotNet.XUnitAssert.Tests (4)
DictionaryAssertsTests.cs (4)
29 Assert.Equal(42, Assert.Contains("FORTY-two", (IImmutableDictionary<string, int>)dictionary.ToImmutableDictionary(StringComparer.InvariantCultureIgnoreCase))); 60 assertFailure(() => Assert.Contains("FORTY-two", (IImmutableDictionary<string, int>)dictionary.ToImmutableDictionary())); 81 Assert.DoesNotContain("FORTY-two", (IImmutableDictionary<string, int>)dictionary.ToImmutableDictionary()); 112 assertFailure(() => Assert.DoesNotContain("FORTY-two", (IImmutableDictionary<string, int>)dictionary.ToImmutableDictionary(StringComparer.InvariantCultureIgnoreCase)));
Roslyn.Compilers.Extension (3)
SetGlobalGlobalPropertiesForCPS.cs (3)
28public override Task<IImmutableDictionary<string, string>> GetGlobalPropertiesAsync(CancellationToken cancellationToken) 33? Task.FromResult<IImmutableDictionary<string, string>>(Empty.PropertiesMap.Add("RoslynHive", CompilerPackage.RoslynHive)) 34: Task.FromResult<IImmutableDictionary<string, string>>(Empty.PropertiesMap);
System.Collections.Immutable (83)
System\Collections\Immutable\IImmutableDictionary.cs (7)
19IImmutableDictionary<TKey, TValue> Clear(); 31IImmutableDictionary<TKey, TValue> Add(TKey key, TValue value); 39IImmutableDictionary<TKey, TValue> AddRange(IEnumerable<KeyValuePair<TKey, TValue>> pairs); 51IImmutableDictionary<TKey, TValue> SetItem(TKey key, TValue value); 58IImmutableDictionary<TKey, TValue> SetItems(IEnumerable<KeyValuePair<TKey, TValue>> items); 65IImmutableDictionary<TKey, TValue> RemoveRange(IEnumerable<TKey> keys); 72IImmutableDictionary<TKey, TValue> Remove(TKey key);
System\Collections\Immutable\ImmutableDictionary.cs (3)
279public static bool Contains<TKey, TValue>(this IImmutableDictionary<TKey, TValue> map, TKey key, TValue value) where TKey : notnull 292public static TValue? GetValueOrDefault<TKey, TValue>(this IImmutableDictionary<TKey, TValue> dictionary, TKey key) where TKey : notnull 308public static TValue GetValueOrDefault<TKey, TValue>(this IImmutableDictionary<TKey, TValue> dictionary, TKey key, TValue defaultValue) where TKey : notnull
System\Collections\Immutable\ImmutableDictionary_2.Builder.cs (1)
597/// See the <see cref="IImmutableDictionary{TKey, TValue}"/> interface.
System\Collections\Immutable\ImmutableDictionary_2.cs (29)
121/// See the <see cref="IImmutableDictionary{TKey, TValue}"/> interface. 204IImmutableDictionary<TKey, TValue> IImmutableDictionary<TKey, TValue>.Clear() 296/// See the <see cref="IImmutableDictionary{TKey, TValue}"/> interface. 307/// See the <see cref="IImmutableDictionary{TKey, TValue}"/> interface. 317/// See the <see cref="IImmutableDictionary{TKey, TValue}"/> interface. 341/// See the <see cref="IImmutableDictionary{TKey, TValue}"/> interface. 352/// See the <see cref="IImmutableDictionary{TKey, TValue}"/> interface. 405/// See the <see cref="IImmutableDictionary{TKey, TValue}"/> interface. 414/// See the <see cref="IImmutableDictionary{TKey, TValue}"/> interface. 423/// See the <see cref="IImmutableDictionary{TKey, TValue}"/> interface. 455/// See the <see cref="IImmutableDictionary{TKey, TValue}"/> interface. 502/// See the <see cref="IImmutableDictionary{TKey, TValue}"/> interface 504IImmutableDictionary<TKey, TValue> IImmutableDictionary<TKey, TValue>.Add(TKey key, TValue value) 510/// See the <see cref="IImmutableDictionary{TKey, TValue}"/> interface 512IImmutableDictionary<TKey, TValue> IImmutableDictionary<TKey, TValue>.SetItem(TKey key, TValue value) 522IImmutableDictionary<TKey, TValue> IImmutableDictionary<TKey, TValue>.SetItems(IEnumerable<KeyValuePair<TKey, TValue>> items) 528/// See the <see cref="IImmutableDictionary{TKey, TValue}"/> interface 530IImmutableDictionary<TKey, TValue> IImmutableDictionary<TKey, TValue>.AddRange(IEnumerable<KeyValuePair<TKey, TValue>> pairs) 536/// See the <see cref="IImmutableDictionary{TKey, TValue}"/> interface 538IImmutableDictionary<TKey, TValue> IImmutableDictionary<TKey, TValue>.RemoveRange(IEnumerable<TKey> keys) 544/// See the <see cref="IImmutableDictionary{TKey, TValue}"/> interface 546IImmutableDictionary<TKey, TValue> IImmutableDictionary<TKey, TValue>.Remove(TKey key)
System\Collections\Immutable\ImmutableSortedDictionary_2.Builder.cs (1)
472/// See the <see cref="IImmutableDictionary{TKey, TValue}"/> interface.
System\Collections\Immutable\ImmutableSortedDictionary_2.cs (37)
80/// See the <see cref="IImmutableDictionary{TKey, TValue}"/> interface. 98/// See the <see cref="IImmutableDictionary{TKey, TValue}"/> interface. 106/// See the <see cref="IImmutableDictionary{TKey, TValue}"/> interface. 114/// See the <see cref="IImmutableDictionary{TKey, TValue}"/> interface. 122/// See the <see cref="IImmutableDictionary{TKey, TValue}"/> interface. 130/// See the <see cref="IImmutableDictionary{TKey, TValue}"/> interface. 132IImmutableDictionary<TKey, TValue> IImmutableDictionary<TKey, TValue>.Clear() 171/// See the <see cref="IImmutableDictionary{TKey, TValue}"/> interface. 243/// See the <see cref="IImmutableDictionary{TKey, TValue}"/> interface. 253/// See the <see cref="IImmutableDictionary{TKey, TValue}"/> interface. 276/// See the <see cref="IImmutableDictionary{TKey, TValue}"/> interface. 286/// See the <see cref="IImmutableDictionary{TKey, TValue}"/> interface. 296/// See the <see cref="IImmutableDictionary{TKey, TValue}"/> interface. 319/// See the <see cref="IImmutableDictionary{TKey, TValue}"/> interface. 350/// See the <see cref="IImmutableDictionary{TKey, TValue}"/> interface. 379/// See the <see cref="IImmutableDictionary{TKey, TValue}"/> interface. 381IImmutableDictionary<TKey, TValue> IImmutableDictionary<TKey, TValue>.Add(TKey key, TValue value) 387/// See the <see cref="IImmutableDictionary{TKey, TValue}"/> interface. 389IImmutableDictionary<TKey, TValue> IImmutableDictionary<TKey, TValue>.SetItem(TKey key, TValue value) 399IImmutableDictionary<TKey, TValue> IImmutableDictionary<TKey, TValue>.SetItems(IEnumerable<KeyValuePair<TKey, TValue>> items) 405/// See the <see cref="IImmutableDictionary{TKey, TValue}"/> interface. 407IImmutableDictionary<TKey, TValue> IImmutableDictionary<TKey, TValue>.AddRange(IEnumerable<KeyValuePair<TKey, TValue>> pairs) 413/// See the <see cref="IImmutableDictionary{TKey, TValue}"/> interface. 415IImmutableDictionary<TKey, TValue> IImmutableDictionary<TKey, TValue>.RemoveRange(IEnumerable<TKey> keys) 421/// See the <see cref="IImmutableDictionary{TKey, TValue}"/> interface. 423IImmutableDictionary<TKey, TValue> IImmutableDictionary<TKey, TValue>.Remove(TKey key) 429/// See the <see cref="IImmutableDictionary{TKey, TValue}"/> interface. 438/// See the <see cref="IImmutableDictionary{TKey, TValue}"/> interface. 446/// See the <see cref="IImmutableDictionary{TKey, TValue}"/> interface. 455/// See the <see cref="IImmutableDictionary{TKey, TValue}"/> interface.
System\Collections\Immutable\KeysOrValuesCollectionAccessor.cs (5)
20private readonly IImmutableDictionary<TKey, TValue> _dictionary; 32protected KeysOrValuesCollectionAccessor(IImmutableDictionary<TKey, TValue> dictionary, IEnumerable<T> keysOrValues) 61protected IImmutableDictionary<TKey, TValue> Dictionary 172internal KeysCollectionAccessor(IImmutableDictionary<TKey, TValue> dictionary) 194internal ValuesCollectionAccessor(IImmutableDictionary<TKey, TValue> dictionary)
System.Text.Json.SourceGeneration (1)
Helpers\KnownTypeSymbols.cs (1)
118public INamedTypeSymbol? IImmutableDictionaryType => GetOrResolveType(typeof(IImmutableDictionary<,>), ref _IImmutableDictionaryType);