4 interfaces inheriting from ICollection
Microsoft.Build (1)
Collections\RetrievableEntryHashSet\IRetrievableEntryHashSet.cs (1)
12ICollection<T>,
System.Private.CoreLib (3)
73 implementations of ICollection
Microsoft.AspNetCore.Components.Endpoints.Tests (1)
Microsoft.AspNetCore.Mvc.Abstractions.Test (1)
Microsoft.AspNetCore.Mvc.IntegrationTests (4)
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
Microsoft.AspNetCore.Routing (1)
Microsoft.AspNetCore.Server.HttpSys (1)
Microsoft.AspNetCore.Server.Kestrel.Core (2)
Microsoft.Build (5)
Microsoft.Build.Engine (1)
Microsoft.Build.Framework (6)
Microsoft.Build.Tasks.Core (2)
Microsoft.Build.Utilities.Core (1)
MSBuild (1)
MSBuildTaskHost (1)
PresentationCore (6)
PresentationFramework (5)
System.Collections (4)
System.Collections.Immutable (4)
System.ComponentModel.Composition (3)
System.DirectoryServices.AccountManagement (2)
System.Linq (2)
System\Linq\Lookup.cs (2)
262internal sealed class CollectionLookup<TKey, TElement> : Lookup<TKey, TElement>, ICollection<IGrouping<TKey, TElement>>, IReadOnlyCollection<IGrouping<TKey, TElement>>
302internal sealed class EmptyLookup<TKey, TElement> : ILookup<TKey, TElement>, ICollection<IGrouping<TKey, TElement>>, IReadOnlyCollection<IGrouping<TKey, TElement>>
System.Linq.Expressions (2)
System.Net.Http (2)
System.Net.HttpListener (1)
System.Net.NetworkInformation (4)
System.Net.Primitives (2)
System.Private.CoreLib (5)
System.Security.Principal.Windows (1)
System.Speech (1)
2144 references to ICollection
dotnet-dev-certs (2)
dotnet-openapi (3)
HtmlGenerationWebSite (1)
Identity.DefaultUI.WebSite (5)
IdentitySample.Mvc (2)
illink (3)
InMemory.FunctionalTests (5)
Microsoft.Arcade.Test.Common (3)
Microsoft.AspNetCore (5)
Microsoft.AspNetCore.App.Analyzers.Test (1)
Microsoft.AspNetCore.Authentication.Core.Test (4)
Microsoft.AspNetCore.Authentication.Facebook (1)
Microsoft.AspNetCore.Authentication.OAuth (5)
Microsoft.AspNetCore.Authentication.OpenIdConnect (3)
Microsoft.AspNetCore.Authentication.Test (15)
OpenIdConnect\TestSettings.cs (15)
163ICollection<string> errors,
212private void ValidateExpectedAuthority(string absoluteUri, ICollection<string> errors, OpenIdConnectRequestType requestType)
234private void ValidateClientId(IDictionary<string, string> actualParams, ICollection<string> errors, bool htmlEncoded) =>
237private void ValidateResponseType(IDictionary<string, string> actualParams, ICollection<string> errors, bool htmlEncoded) =>
240private void ValidateResponseMode(IDictionary<string, string> actualParams, ICollection<string> errors, bool htmlEncoded) =>
243private void ValidateScope(IDictionary<string, string> actualParams, ICollection<string> errors, bool htmlEncoded) =>
246private void ValidateRedirectUri(IDictionary<string, string> actualParams, ICollection<string> errors, bool htmlEncoded) =>
249private void ValidateResource(IDictionary<string, string> actualParams, ICollection<string> errors, bool htmlEncoded) =>
252private void ValidateState(IDictionary<string, string> actualParams, ICollection<string> errors, bool htmlEncoded) =>
255private static void ValidateSkuTelemetry(IDictionary<string, string> actualParams, ICollection<string> errors)
263private void ValidateVersionTelemetry(IDictionary<string, string> actualParams, ICollection<string> errors, bool htmlEncoded) =>
266private void ValidatePostLogoutRedirectUri(IDictionary<string, string> actualParams, ICollection<string> errors, bool htmlEncoded) =>
269private void ValidateMaxAge(IDictionary<string, string> actualQuery, ICollection<string> errors, bool htmlEncoded)
283private void ValidatePrompt(IDictionary<string, string> actualParams, ICollection<string> errors, bool htmlEncoded) =>
290ICollection<string> errors,
Microsoft.AspNetCore.Authentication.WsFederation (3)
Microsoft.AspNetCore.Components (7)
Microsoft.AspNetCore.Components.Endpoints (9)
Microsoft.AspNetCore.Components.Endpoints.Tests (3)
Microsoft.AspNetCore.Components.QuickGrid (2)
Microsoft.AspNetCore.Components.Server (1)
Microsoft.AspNetCore.Components.Web (1)
Microsoft.AspNetCore.Components.Web.Tests (1)
Microsoft.AspNetCore.Components.WebAssembly.Server (1)
Microsoft.AspNetCore.Connections.Abstractions (10)
ConnectionItems.cs (9)
64ICollection<object> IDictionary<object, object?>.Keys
79ICollection<object?> IDictionary<object, object?>.Values
84void ICollection<KeyValuePair<object, object?>>.Add(KeyValuePair<object, object?> item)
89void ICollection<KeyValuePair<object, object?>>.Clear()
94bool ICollection<KeyValuePair<object, object?>>.Contains(KeyValuePair<object, object?> item)
99void ICollection<KeyValuePair<object, object?>>.CopyTo(KeyValuePair<object, object?>[] array, int arrayIndex)
104int ICollection<KeyValuePair<object, object?>>.Count
109bool ICollection<KeyValuePair<object, object?>>.IsReadOnly
114bool ICollection<KeyValuePair<object, object?>>.Remove(KeyValuePair<object, object?> item)
Microsoft.AspNetCore.DeveloperCertificates.XPlat (2)
Microsoft.AspNetCore.Diagnostics (1)
Microsoft.AspNetCore.Grpc.JsonTranscoding.IntegrationTests (1)
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (1)
Microsoft.AspNetCore.Hosting (6)
Microsoft.AspNetCore.Hosting.Server.Abstractions (2)
Microsoft.AspNetCore.Hosting.Tests (4)
Microsoft.AspNetCore.Http (33)
Internal\ItemsDictionary.cs (10)
54ICollection<object> IDictionary<object, object?>.Keys
76ICollection<object?> IDictionary<object, object?>.Values
89void ICollection<KeyValuePair<object, object?>>.Add(KeyValuePair<object, object?> item)
95void ICollection<KeyValuePair<object, object?>>.Clear() => _items?.Clear();
97bool ICollection<KeyValuePair<object, object?>>.Contains(KeyValuePair<object, object?> item)
100void ICollection<KeyValuePair<object, object?>>.CopyTo(KeyValuePair<object, object?>[] array, int arrayIndex)
111int ICollection<KeyValuePair<object, object?>>.Count => _items?.Count ?? 0;
113bool ICollection<KeyValuePair<object, object?>>.IsReadOnly => _items?.IsReadOnly ?? false;
115bool ICollection<KeyValuePair<object, object?>>.Remove(KeyValuePair<object, object?> item)
164public static ICollection<KeyValuePair<object, object?>> Collection => Dictionary;
src\Shared\Dictionary\AdaptiveCapacityDictionary.cs (11)
150bool ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly => false;
153public ICollection<TKey> Keys
178public ICollection<TValue> Values
203void ICollection<KeyValuePair<TKey, TValue>>.Add(KeyValuePair<TKey, TValue> item)
211((ICollection<KeyValuePair<TKey, TValue>>)_dictionaryStorage!).Add(item);
264bool ICollection<KeyValuePair<TKey, TValue>>.Contains(KeyValuePair<TKey, TValue> item)
268return ((ICollection<KeyValuePair<TKey, TValue>>)_dictionaryStorage).Contains(item);
291void ICollection<KeyValuePair<TKey, TValue>>.CopyTo(
314((ICollection<KeyValuePair<TKey, TValue>>)_dictionaryStorage!).CopyTo(array, arrayIndex);
346bool ICollection<KeyValuePair<TKey, TValue>>.Remove(KeyValuePair<TKey, TValue> item)
368return ((ICollection<KeyValuePair<TKey, TValue>>)_dictionaryStorage!).Remove(item);
Microsoft.AspNetCore.Http.Abstractions (7)
Microsoft.AspNetCore.Http.Abstractions.Tests (22)
RouteValueDictionaryTests.cs (21)
432var result = ((ICollection<KeyValuePair<string, object?>>)dict).IsReadOnly;
734var keys = dict.Keys;
748var keys = dict.Keys;
765var keys = dict.Keys;
779var values = dict.Values;
793var values = dict.Values;
810var values = dict.Values;
941((ICollection<KeyValuePair<string, object?>>)dict).Add(new KeyValuePair<string, object?>("key", "value"));
1024var result = ((ICollection<KeyValuePair<string, object?>>)dict).Contains(input);
1043var result = ((ICollection<KeyValuePair<string, object?>>)dict).Contains(input);
1062var result = ((ICollection<KeyValuePair<string, object?>>)dict).Contains(input);
1082var result = ((ICollection<KeyValuePair<string, object?>>)dict).Contains(input);
1098var result = ((ICollection<KeyValuePair<string, object?>>)dict).Contains(input);
1118var result = ((ICollection<KeyValuePair<string, object?>>)dict).Contains(input);
1138var result = ((ICollection<KeyValuePair<string, object?>>)dict).Contains(input);
1159var result = ((ICollection<KeyValuePair<string, object?>>)dict).Contains(input);
1304((ICollection<KeyValuePair<string, object?>>)dict).CopyTo(array, 1);
1329var result = ((ICollection<KeyValuePair<string, object?>>)dict).Remove(input);
1349var result = ((ICollection<KeyValuePair<string, object?>>)dict).Remove(input);
1369var result = ((ICollection<KeyValuePair<string, object?>>)dict).Remove(input);
1390var result = ((ICollection<KeyValuePair<string, object?>>)dict).Remove(input);
Microsoft.AspNetCore.Http.Extensions (8)
Microsoft.AspNetCore.Http.Extensions.Tests (1)
Microsoft.AspNetCore.Http.Features (10)
Microsoft.AspNetCore.Http.Microbenchmarks (1)
Microsoft.AspNetCore.Http.Results (1)
Microsoft.AspNetCore.Http.Tests (2)
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (5)
Microsoft.AspNetCore.Identity.InMemory.Test (5)
Microsoft.AspNetCore.Identity.Test (5)
Microsoft.AspNetCore.JsonPatch.Tests (4)
Microsoft.AspNetCore.Mvc.Abstractions (4)
Microsoft.AspNetCore.Mvc.Api.Analyzers (2)
Microsoft.AspNetCore.Mvc.ApiExplorer (4)
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (18)
Microsoft.AspNetCore.Mvc.Core (37)
Microsoft.AspNetCore.Mvc.Core.Test (26)
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (1)
Microsoft.AspNetCore.Mvc.IntegrationTests (60)
DictionaryModelBinderIntegrationTest.cs (18)
1533int ICollection<KeyValuePair<string, string>>.Count
1541bool ICollection<KeyValuePair<string, string>>.IsReadOnly
1549ICollection<string> IDictionary<string, string>.Keys
1557ICollection<string> IDictionary<string, string>.Values
1565void ICollection<KeyValuePair<string, string>>.Add(KeyValuePair<string, string> item)
1575void ICollection<KeyValuePair<string, string>>.Clear()
1580bool ICollection<KeyValuePair<string, string>>.Contains(KeyValuePair<string, string> item)
1590void ICollection<KeyValuePair<string, string>>.CopyTo(KeyValuePair<string, string>[] array, int arrayIndex)
1605bool ICollection<KeyValuePair<string, string>>.Remove(KeyValuePair<string, string> item)
1638int ICollection<KeyValuePair<TKey, TValue>>.Count
1646bool ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly
1654ICollection<TKey> IDictionary<TKey, TValue>.Keys
1662ICollection<TValue> IDictionary<TKey, TValue>.Values
1670void ICollection<KeyValuePair<TKey, TValue>>.Add(KeyValuePair<TKey, TValue> item)
1680void ICollection<KeyValuePair<TKey, TValue>>.Clear()
1685bool ICollection<KeyValuePair<TKey, TValue>>.Contains(KeyValuePair<TKey, TValue> item)
1695void ICollection<KeyValuePair<TKey, TValue>>.CopyTo(KeyValuePair<TKey, TValue>[] array, int arrayIndex)
1710bool ICollection<KeyValuePair<TKey, TValue>>.Remove(KeyValuePair<TKey, TValue> item)
Microsoft.AspNetCore.Mvc.NewtonsoftJson (3)
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (7)
Microsoft.AspNetCore.Mvc.Razor (2)
Microsoft.AspNetCore.Mvc.TagHelpers (4)
Microsoft.AspNetCore.Mvc.TagHelpers.Test (6)
OptionTagHelperTest.cs (6)
13public static TheoryData<string, string, string, ICollection<string>, TagHelperOutput> GeneratesExpectedDataSet
17return new TheoryData<string, string, string, ICollection<string>, TagHelperOutput>
358entry => (entry[1] != null || entry[3] == null || ((ICollection<string>)(entry[3])).Count == 0));
379ICollection<string> currentValues,
451ICollection<string> currentValues,
515ICollection<string> _,
Microsoft.AspNetCore.Mvc.ViewFeatures (29)
TempDataDictionary.cs (12)
55public ICollection<string> Keys
65public ICollection<object?> Values
75bool ICollection<KeyValuePair<string, object?>>.IsReadOnly
80return ((ICollection<KeyValuePair<string, object?>>)_data).IsReadOnly;
242void ICollection<KeyValuePair<string, object?>>.CopyTo(KeyValuePair<string, object?>[] array, int index)
245((ICollection<KeyValuePair<string, object?>>)_data).CopyTo(array, index);
248void ICollection<KeyValuePair<string, object?>>.Add(KeyValuePair<string, object?> keyValuePair)
252((ICollection<KeyValuePair<string, object?>>)_data).Add(keyValuePair);
255bool ICollection<KeyValuePair<string, object?>>.Contains(KeyValuePair<string, object?> keyValuePair)
258return ((ICollection<KeyValuePair<string, object?>>)_data).Contains(keyValuePair);
261bool ICollection<KeyValuePair<string, object?>>.Remove(KeyValuePair<string, object?> keyValuePair)
265return ((ICollection<KeyValuePair<string, object?>>)_data).Remove(keyValuePair);
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (14)
Microsoft.AspNetCore.OpenApi.Tests (1)
Microsoft.AspNetCore.Owin (27)
DictionaryStringArrayWrapper.cs (9)
32int ICollection<KeyValuePair<string, string[]>>.Count => Inner.Count;
34bool ICollection<KeyValuePair<string, string[]>>.IsReadOnly => Inner.IsReadOnly;
36ICollection<string> IDictionary<string, string[]>.Keys => Inner.Keys;
38ICollection<string[]> IDictionary<string, string[]>.Values => Inner.Values.Select(Convert).ToList();
40void ICollection<KeyValuePair<string, string[]>>.Add(KeyValuePair<string, string[]> item) => Inner.Add(Convert(item));
44void ICollection<KeyValuePair<string, string[]>>.Clear() => Inner.Clear();
46bool ICollection<KeyValuePair<string, string[]>>.Contains(KeyValuePair<string, string[]> item) => Inner.Contains(Convert(item));
50void ICollection<KeyValuePair<string, string[]>>.CopyTo(KeyValuePair<string, string[]>[] array, int arrayIndex)
62bool ICollection<KeyValuePair<string, string[]>>.Remove(KeyValuePair<string, string[]> item) => Inner.Remove(Convert(item));
DictionaryStringValuesWrapper.cs (9)
77int ICollection<KeyValuePair<string, StringValues>>.Count => Inner.Count;
79bool ICollection<KeyValuePair<string, StringValues>>.IsReadOnly => Inner.IsReadOnly;
81ICollection<string> IDictionary<string, StringValues>.Keys => Inner.Keys;
83ICollection<StringValues> IDictionary<string, StringValues>.Values => Inner.Values.Select(Convert).ToList();
85void ICollection<KeyValuePair<string, StringValues>>.Add(KeyValuePair<string, StringValues> item) => Inner.Add(Convert(item));
89void ICollection<KeyValuePair<string, StringValues>>.Clear() => Inner.Clear();
91bool ICollection<KeyValuePair<string, StringValues>>.Contains(KeyValuePair<string, StringValues> item) => Inner.Contains(Convert(item));
95void ICollection<KeyValuePair<string, StringValues>>.CopyTo(KeyValuePair<string, StringValues>[] array, int arrayIndex)
107bool ICollection<KeyValuePair<string, StringValues>>.Remove(KeyValuePair<string, StringValues> item) => Inner.Remove(Convert(item));
OwinEnvironment.cs (9)
158ICollection<string> IDictionary<string, object>.Keys
186ICollection<object> IDictionary<string, object>.Values
239void ICollection<KeyValuePair<string, object>>.Add(KeyValuePair<string, object> item)
244void ICollection<KeyValuePair<string, object>>.Clear()
250bool ICollection<KeyValuePair<string, object>>.Contains(KeyValuePair<string, object> item)
255void ICollection<KeyValuePair<string, object>>.CopyTo(KeyValuePair<string, object>[] array, int arrayIndex)
271int ICollection<KeyValuePair<string, object>>.Count
276bool ICollection<KeyValuePair<string, object>>.IsReadOnly
281bool ICollection<KeyValuePair<string, object>>.Remove(KeyValuePair<string, object> item)
Microsoft.AspNetCore.Owin.Tests (2)
Microsoft.AspNetCore.Razor (1)
Microsoft.AspNetCore.Razor.Runtime (6)
Microsoft.AspNetCore.Razor.Test (2)
Microsoft.AspNetCore.Routing (13)
Microsoft.AspNetCore.Routing.Microbenchmarks (1)
Microsoft.AspNetCore.Server.HttpSys (12)
src\Shared\HttpSys\RequestProcessing\RequestHeaders.cs (8)
89public ICollection<string> Keys
110ICollection<StringValues> IDictionary<string, StringValues>.Values
145void ICollection<KeyValuePair<string, StringValues>>.Add(KeyValuePair<string, StringValues> item)
150void ICollection<KeyValuePair<string, StringValues>>.Clear()
159bool ICollection<KeyValuePair<string, StringValues>>.Contains(KeyValuePair<string, StringValues> item)
164void ICollection<KeyValuePair<string, StringValues>>.CopyTo(KeyValuePair<string, StringValues>[] array, int arrayIndex)
169bool ICollection<KeyValuePair<string, StringValues>>.IsReadOnly
239bool ICollection<KeyValuePair<string, StringValues>>.Remove(KeyValuePair<string, StringValues> item)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (1)
Microsoft.AspNetCore.Server.HttpSys.Microbenchmarks (2)
Microsoft.AspNetCore.Server.IIS (11)
src\Shared\HttpSys\RequestProcessing\RequestHeaders.cs (8)
89public ICollection<string> Keys
110ICollection<StringValues> IDictionary<string, StringValues>.Values
145void ICollection<KeyValuePair<string, StringValues>>.Add(KeyValuePair<string, StringValues> item)
150void ICollection<KeyValuePair<string, StringValues>>.Clear()
159bool ICollection<KeyValuePair<string, StringValues>>.Contains(KeyValuePair<string, StringValues> item)
164void ICollection<KeyValuePair<string, StringValues>>.CopyTo(KeyValuePair<string, StringValues>[] array, int arrayIndex)
169bool ICollection<KeyValuePair<string, StringValues>>.IsReadOnly
239bool ICollection<KeyValuePair<string, StringValues>>.Remove(KeyValuePair<string, StringValues> item)
Microsoft.AspNetCore.Server.Kestrel.Core (17)
Internal\Http\HttpHeaders.cs (8)
117bool ICollection<KeyValuePair<string, StringValues>>.IsReadOnly => _isReadOnly;
119ICollection<string> IDictionary<string, StringValues>.Keys => ((IDictionary<string, StringValues>)this).Select(pair => pair.Key).ToHashSet(StringComparer.OrdinalIgnoreCase);
121ICollection<StringValues> IDictionary<string, StringValues>.Values => ((IDictionary<string, StringValues>)this).Select(pair => pair.Value).ToList();
184void ICollection<KeyValuePair<string, StringValues>>.Add(KeyValuePair<string, StringValues> item)
206void ICollection<KeyValuePair<string, StringValues>>.Clear()
215bool ICollection<KeyValuePair<string, StringValues>>.Contains(KeyValuePair<string, StringValues> item)
227void ICollection<KeyValuePair<string, StringValues>>.CopyTo(KeyValuePair<string, StringValues>[] array, int arrayIndex)
245bool ICollection<KeyValuePair<string, StringValues>>.Remove(KeyValuePair<string, StringValues> item)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (5)
Microsoft.AspNetCore.Session (4)
Microsoft.AspNetCore.Shared.Tests (61)
AdaptiveCapacityDictionaryTests.cs (15)
94var result = ((ICollection<KeyValuePair<string, object?>>)dict).IsReadOnly;
293var keys = dict.Keys;
310var keys = dict.Keys;
324var values = dict.Values;
341var values = dict.Values;
447((ICollection<KeyValuePair<string, object?>>)dict).Add(new KeyValuePair<string, object?>("key", "value"));
500var result = ((ICollection<KeyValuePair<string, object?>>)dict).Contains(input);
519var result = ((ICollection<KeyValuePair<string, object?>>)dict).Contains(input);
538var result = ((ICollection<KeyValuePair<string, object?>>)dict).Contains(input);
558var result = ((ICollection<KeyValuePair<string, object?>>)dict).Contains(input);
654((ICollection<KeyValuePair<string, object?>>)dict).CopyTo(array, 1);
679var result = ((ICollection<KeyValuePair<string, object?>>)dict).Remove(input);
699var result = ((ICollection<KeyValuePair<string, object?>>)dict).Remove(input);
719var result = ((ICollection<KeyValuePair<string, object?>>)dict).Remove(input);
740var result = ((ICollection<KeyValuePair<string, object?>>)dict).Remove(input);
ClosedGenericMatcherTest.cs (18)
39typeof(ICollection<BaseClass>),
66typeof(ICollection<>),
67typeof(ICollection<KeyValuePair<string, object>>)
82typeof(ICollection<>),
83typeof(ICollection<KeyValuePair<string, object>>)
98typeof(ICollection<>),
99typeof(ICollection<KeyValuePair<string, object>>)
109typeof(ICollection<>),
110typeof(ICollection<BaseClass>)
251int ICollection<KeyValuePair<string, object>>.Count
259bool ICollection<KeyValuePair<string, object>>.IsReadOnly
267ICollection<string> IDictionary<string, object>.Keys
275ICollection<object> IDictionary<string, object>.Values
288void ICollection<KeyValuePair<string, object>>.Add(KeyValuePair<string, object> item)
298void ICollection<KeyValuePair<string, object>>.Clear()
303bool ICollection<KeyValuePair<string, object>>.Contains(KeyValuePair<string, object> item)
313void ICollection<KeyValuePair<string, object>>.CopyTo(KeyValuePair<string, object>[] array, int arrayIndex)
328bool ICollection<KeyValuePair<string, object>>.Remove(KeyValuePair<string, object> item)
src\Shared\Dictionary\AdaptiveCapacityDictionary.cs (11)
150bool ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly => false;
153public ICollection<TKey> Keys
178public ICollection<TValue> Values
203void ICollection<KeyValuePair<TKey, TValue>>.Add(KeyValuePair<TKey, TValue> item)
211((ICollection<KeyValuePair<TKey, TValue>>)_dictionaryStorage!).Add(item);
264bool ICollection<KeyValuePair<TKey, TValue>>.Contains(KeyValuePair<TKey, TValue> item)
268return ((ICollection<KeyValuePair<TKey, TValue>>)_dictionaryStorage).Contains(item);
291void ICollection<KeyValuePair<TKey, TValue>>.CopyTo(
314((ICollection<KeyValuePair<TKey, TValue>>)_dictionaryStorage!).CopyTo(array, arrayIndex);
346bool ICollection<KeyValuePair<TKey, TValue>>.Remove(KeyValuePair<TKey, TValue> item)
368return ((ICollection<KeyValuePair<TKey, TValue>>)_dictionaryStorage!).Remove(item);
src\Shared\HttpSys\RequestProcessing\RequestHeaders.cs (8)
89public ICollection<string> Keys
110ICollection<StringValues> IDictionary<string, StringValues>.Values
145void ICollection<KeyValuePair<string, StringValues>>.Add(KeyValuePair<string, StringValues> item)
150void ICollection<KeyValuePair<string, StringValues>>.Clear()
159bool ICollection<KeyValuePair<string, StringValues>>.Contains(KeyValuePair<string, StringValues> item)
164void ICollection<KeyValuePair<string, StringValues>>.CopyTo(KeyValuePair<string, StringValues>[] array, int arrayIndex)
169bool ICollection<KeyValuePair<string, StringValues>>.IsReadOnly
239bool ICollection<KeyValuePair<string, StringValues>>.Remove(KeyValuePair<string, StringValues> item)
Microsoft.AspNetCore.SignalR.Core (1)
Microsoft.AspNetCore.StaticAssets (1)
Microsoft.AspNetCore.StaticFiles (1)
Microsoft.AspNetCore.StaticFiles.FunctionalTests (1)
Microsoft.AspNetCore.Tests (3)
Microsoft.Build (290)
Collections\CopyOnWritePropertyDictionary.cs (7)
68ICollection<string> IDictionary<string, T>.Keys => ((IDictionary<string, T>)_backing).Keys;
73ICollection<T> IDictionary<string, T>.Values => ((IDictionary<string, T>)_backing).Values;
78bool ICollection<KeyValuePair<string, T>>.IsReadOnly => false;
212void ICollection<KeyValuePair<string, T>>.Add(KeyValuePair<string, T> item)
220bool ICollection<KeyValuePair<string, T>>.Contains(KeyValuePair<string, T> item)
233void ICollection<KeyValuePair<string, T>>.CopyTo(KeyValuePair<string, T>[] array, int arrayIndex)
241bool ICollection<KeyValuePair<string, T>>.Remove(KeyValuePair<string, T> item)
Collections\PropertyDictionary.cs (14)
108ICollection<string> IDictionary<string, T>.Keys
123ICollection<T> IDictionary<string, T>.Values
138int ICollection<KeyValuePair<string, T>>.Count => Count;
144bool ICollection<KeyValuePair<string, T>>.IsReadOnly => false;
155return ((ICollection<T>)_properties).Count;
231((ICollection<T>)_properties).Clear();
376void ICollection<KeyValuePair<string, T>>.Add(KeyValuePair<string, T> item)
384void ICollection<KeyValuePair<string, T>>.Clear()
392bool ICollection<KeyValuePair<string, T>>.Contains(KeyValuePair<string, T> item)
408void ICollection<KeyValuePair<string, T>>.CopyTo(KeyValuePair<string, T>[] array, int arrayIndex)
416bool ICollection<KeyValuePair<string, T>>.Remove(KeyValuePair<string, T> item)
503var dictionary = new Dictionary<string, string>(((ICollection<T>)_properties).Count, MSBuildNameIgnoreCaseComparer.Default);
518foreach (var kvp in (ICollection<T>)_properties)
530foreach (T property in (ICollection<T>)_properties)
Graph\GraphBuildRequestData.cs (14)
30public GraphBuildRequestData(ProjectGraph projectGraph, ICollection<string> targetsToBuild)
41public GraphBuildRequestData(ProjectGraph projectGraph, ICollection<string> targetsToBuild, HostServices hostServices)
53public GraphBuildRequestData(ProjectGraph projectGraph, ICollection<string> targetsToBuild, HostServices hostServices, BuildRequestDataFlags flags)
68public GraphBuildRequestData(string projectFullPath, IDictionary<string, string> globalProperties, ICollection<string> targetsToBuild, HostServices hostServices)
81public GraphBuildRequestData(string projectFullPath, IDictionary<string, string> globalProperties, ICollection<string> targetsToBuild, HostServices hostServices, BuildRequestDataFlags flags)
91public GraphBuildRequestData(ProjectGraphEntryPoint projectGraphEntryPoint, ICollection<string> targetsToBuild)
102public GraphBuildRequestData(ProjectGraphEntryPoint projectGraphEntryPoint, ICollection<string> targetsToBuild, HostServices hostServices)
114public GraphBuildRequestData(ProjectGraphEntryPoint projectGraphEntryPoint, ICollection<string> targetsToBuild, HostServices hostServices, BuildRequestDataFlags flags)
124public GraphBuildRequestData(IEnumerable<ProjectGraphEntryPoint> projectGraphEntryPoints, ICollection<string> targetsToBuild)
135public GraphBuildRequestData(IEnumerable<ProjectGraphEntryPoint> projectGraphEntryPoints, ICollection<string> targetsToBuild, HostServices hostServices)
147public GraphBuildRequestData(IEnumerable<ProjectGraphEntryPoint> projectGraphEntryPoints, ICollection<string> targetsToBuild, HostServices hostServices, BuildRequestDataFlags flags)
155public GraphBuildRequestData(IEnumerable<ProjectGraphEntryPoint> projectGraphEntryPoints, ICollection<string> targetsToBuild, HostServices hostServices, BuildRequestDataFlags flags, GraphBuildOptions graphBuildOptions)
166private GraphBuildRequestData(ICollection<string> targetsToBuild, HostServices hostServices, BuildRequestDataFlags flags, GraphBuildOptions graphBuildOptions = null)
198public ICollection<string> TargetNames { get; }
Microsoft.Build.Engine (2)
Microsoft.Build.Engine.OM.UnitTests (61)
ObjectModelRemoting\Helpers\ViewValidation.construction.cs (8)
129public ICollection<ElementLinkPair<CT>> QueryChildrenWithValidation<CT>(Func<CT, bool> matcher, int expectedCount)
132var result = QueryChildrenWithValidation(matcher);
137public ICollection<ElementLinkPair<CT>> QueryChildrenWithValidation<CT>(Func<T, IEnumerable> getter, Func<CT, bool> matcher, int expectedCount)
140var result = QueryChildrenWithValidation(getter, matcher);
145public ICollection<ElementLinkPair<CT>> QueryChildrenWithValidation<CT>(Func<T, IEnumerable> getter, Func<CT, bool> matcher)
184public ICollection<ElementLinkPair<CT>> QueryChildrenWithValidation<CT>(Func<CT, bool> matcher)
196var result = QueryChildrenWithValidation(matcher, 1);
203var result = QueryChildrenWithValidation(getter, matcher, 1);
Microsoft.Build.Engine.UnitTests (112)
Microsoft.Build.Framework (80)
ImmutableSegmentedDictionary`2.cs (9)
96ICollection<TKey> IDictionary<TKey, TValue>.Keys => Keys;
98ICollection<TValue> IDictionary<TKey, TValue>.Values => Values;
104bool ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly => true;
168ICollection<KeyValuePair<TKey, TValue>> collectionToCheck = dictionary ?? self._dictionary;
348void ICollection<KeyValuePair<TKey, TValue>>.CopyTo(KeyValuePair<TKey, TValue>[] array, int arrayIndex)
349=> ((ICollection<KeyValuePair<TKey, TValue>>)_dictionary).CopyTo(array, arrayIndex);
363void ICollection<KeyValuePair<TKey, TValue>>.Add(KeyValuePair<TKey, TValue> item)
366void ICollection<KeyValuePair<TKey, TValue>>.Clear()
369bool ICollection<KeyValuePair<TKey, TValue>>.Remove(KeyValuePair<TKey, TValue> item)
SegmentedDictionary`2.cs (18)
144: this((collection as ICollection<KeyValuePair<TKey, TValue>>)?.Count ?? 0, comparer)
169ICollection<TKey> IDictionary<TKey, TValue>.Keys => Keys;
175ICollection<TValue> IDictionary<TKey, TValue>.Values => Values;
205void ICollection<KeyValuePair<TKey, TValue>>.Add(KeyValuePair<TKey, TValue> keyValuePair)
208bool ICollection<KeyValuePair<TKey, TValue>>.Contains(KeyValuePair<TKey, TValue> keyValuePair)
219bool ICollection<KeyValuePair<TKey, TValue>>.Remove(KeyValuePair<TKey, TValue> keyValuePair)
840bool ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly => false;
842void ICollection<KeyValuePair<TKey, TValue>>.CopyTo(KeyValuePair<TKey, TValue>[] array, int index)
1303bool ICollection<TKey>.IsReadOnly => true;
1305void ICollection<TKey>.Add(TKey item)
1308void ICollection<TKey>.Clear()
1311bool ICollection<TKey>.Contains(TKey item)
1314bool ICollection<TKey>.Remove(TKey item)
1503bool ICollection<TValue>.IsReadOnly => true;
1505void ICollection<TValue>.Add(TValue item)
1508bool ICollection<TValue>.Remove(TValue item)
1514void ICollection<TValue>.Clear()
1517bool ICollection<TValue>.Contains(TValue item)
Microsoft.Build.Tasks.Core (20)
Microsoft.Build.Tasks.UnitTests (3)
Microsoft.Build.UnitTests.Shared (3)
Microsoft.Build.Utilities.Core (10)
Microsoft.Cci.Extensions (14)
Microsoft.CSharp (2)
Microsoft.DotNet.Build.Tasks.Packaging (3)
Microsoft.DotNet.PackageTesting (1)
Microsoft.DotNet.SharedFramework.Sdk (1)
Microsoft.DotNet.SignCheckLibrary (3)
Microsoft.Extensions.Caching.Hybrid (4)
Microsoft.Extensions.Caching.Memory (1)
Microsoft.Extensions.Configuration (2)
Microsoft.Extensions.Configuration.Binder (2)
Microsoft.Extensions.DependencyInjection (2)
Microsoft.Extensions.DependencyInjection.Abstractions (1)
Microsoft.Extensions.Diagnostics (1)
Microsoft.Extensions.Diagnostics.HealthChecks (2)
Microsoft.Extensions.Options.SourceGeneration (2)
Microsoft.Extensions.Primitives (6)
Microsoft.Interop.SourceGeneration (8)
ValueEqualityImmutableDictionary.cs (7)
47public ICollection<T> Keys => ((IDictionary<T, U>)Map).Keys;
48public ICollection<U> Values => ((IDictionary<T, U>)Map).Values;
50public bool IsReadOnly => ((ICollection<KeyValuePair<T, U>>)Map).IsReadOnly;
53public void CopyTo(KeyValuePair<T, U>[] array, int arrayIndex) => ((ICollection<KeyValuePair<T, U>>)Map).CopyTo(array, arrayIndex);
56public bool Remove(KeyValuePair<T, U> item) => ((ICollection<KeyValuePair<T, U>>)Map).Remove(item);
60public void Add(KeyValuePair<T, U> item) => ((ICollection<KeyValuePair<T, U>>)Map).Add(item);
61public void Clear() => ((ICollection<KeyValuePair<T, U>>)Map).Clear();
Microsoft.Net.Http.Headers (13)
MonoTargetsTasks (1)
MSBuild (17)
MSBuildTaskHost (28)
mscorlib (1)
netstandard (1)
PresentationCore (131)
PresentationFramework (44)
MS\Internal\Annotations\ObservableDictionary.cs (10)
155void ICollection<KeyValuePair<string, string>>.Add(KeyValuePair<string, string> pair)
157((ICollection<KeyValuePair<string, string>>)_nameValues).Add(pair);
166bool ICollection<KeyValuePair<string, string>>.Contains(KeyValuePair<string, string> pair)
168return ((ICollection<KeyValuePair<string, string>>)_nameValues).Contains(pair);
177bool ICollection<KeyValuePair<string, string>>.Remove(KeyValuePair<string, string> pair)
179return ((ICollection<KeyValuePair<string, string>>)_nameValues).Remove(pair);
189void ICollection<KeyValuePair<string, string>>.CopyTo(KeyValuePair<string, string>[] target, int startIndex)
195((ICollection<KeyValuePair<string, string>>)_nameValues).CopyTo(target, startIndex);
281public ICollection<string> Keys
293public ICollection<string> Values
PresentationUI (4)
ReachFramework (13)
Sockets.BindTests (3)
StartRequestDelegateUrlApp (1)
StartRouteBuilderUrlApp (1)
StartWithIApplicationBuilderUrlApp (1)
System.Collections (38)
System\Collections\Generic\SortedList.cs (7)
189void ICollection<KeyValuePair<TKey, TValue>>.Add(KeyValuePair<TKey, TValue> keyValuePair)
194bool ICollection<KeyValuePair<TKey, TValue>>.Contains(KeyValuePair<TKey, TValue> keyValuePair)
204bool ICollection<KeyValuePair<TKey, TValue>>.Remove(KeyValuePair<TKey, TValue> keyValuePair)
301ICollection<TKey> IDictionary<TKey, TValue>.Keys
337ICollection<TValue> IDictionary<TKey, TValue>.Values
365bool ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly
431void ICollection<KeyValuePair<TKey, TValue>>.CopyTo(KeyValuePair<TKey, TValue>[] array, int arrayIndex)
System.Collections.Concurrent (14)
System\Collections\Concurrent\ConcurrentDictionary.cs (14)
238ICollection<KeyValuePair<TKey, TValue>> c => Math.Max(DefaultCapacity, c.Count),
691/// Copies the elements of the <see cref="ICollection{T}"/> to an array of type <see cref="KeyValuePair{TKey,TValue}"/>,
706void ICollection<KeyValuePair<TKey, TValue>>.CopyTo(KeyValuePair<TKey, TValue>[] array, int index)
1549public ICollection<TKey> Keys => GetKeys();
1558public ICollection<TValue> Values => GetValues();
1567/// Adds the specified value to the <see cref="ICollection{TValue}"/>
1580void ICollection<KeyValuePair<TKey, TValue>>.Add(KeyValuePair<TKey, TValue> keyValuePair) => ((IDictionary<TKey, TValue>)this).Add(keyValuePair.Key, keyValuePair.Value);
1583/// Determines whether the <see cref="ICollection{T}"/>
1588/// cref="ICollection{TValue}"/>.</param>
1590/// cref="ICollection{T}"/>; otherwise, false.</returns>
1591bool ICollection<KeyValuePair<TKey, TValue>>.Contains(KeyValuePair<TKey, TValue> keyValuePair) =>
1598/// <value>true if the <see cref="ICollection{T}"/> is
1602bool ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly => false;
1615bool ICollection<KeyValuePair<TKey, TValue>>.Remove(KeyValuePair<TKey, TValue> keyValuePair) =>
System.Collections.Immutable (171)
System\Collections\Frozen\FrozenDictionary.cs (7)
282ICollection<TKey> IDictionary<TKey, TValue>.Keys =>
303ICollection<TValue> IDictionary<TKey, TValue>.Values =>
408bool ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly => true;
496bool ICollection<KeyValuePair<TKey, TValue>>.Contains(KeyValuePair<TKey, TValue> item) =>
546void ICollection<KeyValuePair<TKey, TValue>>.Add(KeyValuePair<TKey, TValue> item) => throw new NotSupportedException();
555bool ICollection<KeyValuePair<TKey, TValue>>.Remove(KeyValuePair<TKey, TValue> item) => throw new NotSupportedException();
561void ICollection<KeyValuePair<TKey, TValue>>.Clear() => throw new NotSupportedException();
System\Collections\Immutable\ImmutableDictionary_2.Builder.cs (32)
137/// Gets the number of elements contained in the <see cref="ICollection{T}"/>.
139/// <returns>The number of elements contained in the <see cref="ICollection{T}"/>.</returns>
146/// Gets a value indicating whether the <see cref="ICollection{T}"/> is read-only.
148/// <returns>true if the <see cref="ICollection{T}"/> is read-only; otherwise, false.</returns>
149bool ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly
169/// Gets an <see cref="ICollection{T}"/> containing the keys of the <see cref="IDictionary{TKey, TValue}"/>.
171/// <returns>An <see cref="ICollection{T}"/> containing the keys of the object that implements <see cref="IDictionary{TKey, TValue}"/>.</returns>
172ICollection<TKey> IDictionary<TKey, TValue>.Keys
192/// Gets an <see cref="ICollection{T}"/> containing the values in the <see cref="IDictionary{TKey, TValue}"/>.
194/// <returns>An <see cref="ICollection{T}"/> containing the values in the object that implements <see cref="IDictionary{TKey, TValue}"/>.</returns>
195ICollection<TValue> IDictionary<TKey, TValue>.Values
214/// Gets a value indicating whether the <see cref="ICollection{T}"/> is read-only.
216/// <returns>true if the <see cref="ICollection{T}"/> is read-only; otherwise, false.
224/// Gets an <see cref="ICollection{T}"/> containing the keys of the <see cref="IDictionary{TKey, TValue}"/>.
227/// An <see cref="ICollection{T}"/> containing the keys of the object that implements <see cref="IDictionary{TKey, TValue}"/>.
235/// Gets an <see cref="ICollection{T}"/> containing the values in the <see cref="IDictionary{TKey, TValue}"/>.
238/// An <see cref="ICollection{T}"/> containing the values in the object that implements <see cref="IDictionary{TKey, TValue}"/>.
605/// Adds an item to the <see cref="ICollection{T}"/>.
607/// <param name="item">The object to add to the <see cref="ICollection{T}"/>.</param>
608/// <exception cref="NotSupportedException">The <see cref="ICollection{T}"/> is read-only.</exception>
615/// Removes all items from the <see cref="ICollection{T}"/>.
617/// <exception cref="NotSupportedException">The <see cref="ICollection{T}"/> is read-only. </exception>
625/// Determines whether the <see cref="ICollection{T}"/> contains a specific value.
627/// <param name="item">The object to locate in the <see cref="ICollection{T}"/>.</param>
629/// true if <paramref name="item"/> is found in the <see cref="ICollection{T}"/>; otherwise, false.
637/// See the <see cref="ICollection{T}"/> interface.
639void ICollection<KeyValuePair<TKey, TValue>>.CopyTo(KeyValuePair<TKey, TValue>[] array, int arrayIndex)
654/// Removes the first occurrence of a specific object from the <see cref="ICollection{T}"/>.
656/// <param name="item">The object to remove from the <see cref="ICollection{T}"/>.</param>
658/// true if <paramref name="item"/> was successfully removed from the <see cref="ICollection{T}"/>; otherwise, false. This method also returns false if <paramref name="item"/> is not found in the original <see cref="ICollection{T}"/>.
660/// <exception cref="NotSupportedException">The <see cref="ICollection{T}"/> is read-only.</exception>
System\Collections\Immutable\ImmutableDictionary_2.cs (13)
216ICollection<TKey> IDictionary<TKey, TValue>.Keys
224ICollection<TValue> IDictionary<TKey, TValue>.Values
269bool ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly
594void ICollection<KeyValuePair<TKey, TValue>>.Add(KeyValuePair<TKey, TValue> item)
599void ICollection<KeyValuePair<TKey, TValue>>.Clear()
604bool ICollection<KeyValuePair<TKey, TValue>>.Remove(KeyValuePair<TKey, TValue> item)
609void ICollection<KeyValuePair<TKey, TValue>>.CopyTo(KeyValuePair<TKey, TValue>[] array, int arrayIndex)
635/// Gets a value indicating whether the <see cref="ICollection{T}"/> is read-only.
637/// <returns>true if the <see cref="ICollection{T}"/> is read-only; otherwise, false.
645/// Gets an <see cref="ICollection{T}"/> containing the keys of the <see cref="IDictionary{TKey, TValue}"/>.
648/// An <see cref="ICollection{T}"/> containing the keys of the object that implements <see cref="IDictionary{TKey, TValue}"/>.
656/// Gets an <see cref="ICollection{T}"/> containing the values in the <see cref="IDictionary{TKey, TValue}"/>.
659/// An <see cref="ICollection{T}"/> containing the values in the object that implements <see cref="IDictionary{TKey, TValue}"/>.
System\Collections\Immutable\ImmutableSortedDictionary_2.Builder.cs (10)
86ICollection<TKey> IDictionary<TKey, TValue>.Keys
102ICollection<TValue> IDictionary<TKey, TValue>.Values
127bool ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly
225/// Gets a value indicating whether the <see cref="ICollection{T}"/> is read-only.
227/// <returns>true if the <see cref="ICollection{T}"/> is read-only; otherwise, false.
235/// Gets an <see cref="ICollection{T}"/> containing the keys of the <see cref="IDictionary{TKey, TValue}"/>.
238/// An <see cref="ICollection{T}"/> containing the keys of the object that implements <see cref="IDictionary{TKey, TValue}"/>.
246/// Gets an <see cref="ICollection{T}"/> containing the values in the <see cref="IDictionary{TKey, TValue}"/>.
249/// An <see cref="ICollection{T}"/> containing the values in the object that implements <see cref="IDictionary{TKey, TValue}"/>.
508void ICollection<KeyValuePair<TKey, TValue>>.CopyTo(KeyValuePair<TKey, TValue>[] array, int arrayIndex)
System\Collections\Immutable\ImmutableSortedDictionary_2.cs (13)
144ICollection<TKey> IDictionary<TKey, TValue>.Keys
152ICollection<TValue> IDictionary<TKey, TValue>.Values
161bool ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly
514void ICollection<KeyValuePair<TKey, TValue>>.Add(KeyValuePair<TKey, TValue> item)
519void ICollection<KeyValuePair<TKey, TValue>>.Clear()
524bool ICollection<KeyValuePair<TKey, TValue>>.Remove(KeyValuePair<TKey, TValue> item)
529void ICollection<KeyValuePair<TKey, TValue>>.CopyTo(KeyValuePair<TKey, TValue>[] array, int arrayIndex)
555/// Gets a value indicating whether the <see cref="ICollection{T}"/> is read-only.
557/// <returns>true if the <see cref="ICollection{T}"/> is read-only; otherwise, false.
565/// Gets an <see cref="ICollection{T}"/> containing the keys of the <see cref="IDictionary{TKey, TValue}"/>.
568/// An <see cref="ICollection{T}"/> containing the keys of the object that implements <see cref="IDictionary{TKey, TValue}"/>.
576/// Gets an <see cref="ICollection{T}"/> containing the values in the <see cref="IDictionary{TKey, TValue}"/>.
579/// An <see cref="ICollection{T}"/> containing the values in the object that implements <see cref="IDictionary{TKey, TValue}"/>.
System.ComponentModel.Annotations (4)
System.ComponentModel.Composition (15)
System.Composition.Convention (1)
System.Composition.Hosting (3)
System.Composition.TypedParts (6)
System.Data.Common (2)
System.Diagnostics.DiagnosticSource (3)
System.Diagnostics.Process (2)
System.Linq (58)
System\Linq\Lookup.cs (6)
266void ICollection<IGrouping<TKey, TElement>>.CopyTo(IGrouping<TKey, TElement>[] array, int arrayIndex)
288bool ICollection<IGrouping<TKey, TElement>>.Contains(IGrouping<TKey, TElement> item)
294bool ICollection<IGrouping<TKey, TElement>>.IsReadOnly => true;
295void ICollection<IGrouping<TKey, TElement>>.Add(IGrouping<TKey, TElement> item) => throw new NotSupportedException();
296void ICollection<IGrouping<TKey, TElement>>.Clear() => throw new NotSupportedException();
297bool ICollection<IGrouping<TKey, TElement>>.Remove(IGrouping<TKey, TElement> item) => throw new NotSupportedException();
System.Linq.Expressions (67)
System\Dynamic\ExpandoObject.cs (14)
327private readonly ICollection<string> _collection;
329public KeyCollectionDebugView(ICollection<string> collection)
466private readonly ICollection<object> _collection;
468public ValueCollectionDebugView(ICollection<object> collection)
617ICollection<string> IDictionary<string, object?>.Keys => new KeyCollection(this);
619ICollection<object?> IDictionary<string, object?>.Values => new ValueCollection(this);
669int ICollection<KeyValuePair<string, object?>>.Count => _count;
671bool ICollection<KeyValuePair<string, object?>>.IsReadOnly => false;
673void ICollection<KeyValuePair<string, object?>>.Add(KeyValuePair<string, object?> item)
678void ICollection<KeyValuePair<string, object?>>.Clear()
703bool ICollection<KeyValuePair<string, object?>>.Contains(KeyValuePair<string, object?> item)
713void ICollection<KeyValuePair<string, object?>>.CopyTo(KeyValuePair<string, object?>[] array, int arrayIndex)
720ContractUtils.RequiresArrayRange(array, arrayIndex, _count, nameof(arrayIndex), nameof(ICollection<KeyValuePair<string, object>>.Count));
728bool ICollection<KeyValuePair<string, object?>>.Remove(KeyValuePair<string, object?> item)
System.Linq.Parallel (8)
System.Net.Http (24)
System\Net\Http\HttpRequestOptions.cs (9)
33ICollection<string> IDictionary<string, object?>.Keys => Options.Keys;
34ICollection<object?> IDictionary<string, object?>.Values => Options.Values;
35int ICollection<KeyValuePair<string, object?>>.Count => Options.Count;
36bool ICollection<KeyValuePair<string, object?>>.IsReadOnly => ((IDictionary<string, object?>)Options).IsReadOnly;
38void ICollection<KeyValuePair<string, object?>>.Add(KeyValuePair<string, object?> item) => ((IDictionary<string, object?>)Options).Add(item);
39void ICollection<KeyValuePair<string, object?>>.Clear() => Options.Clear();
40bool ICollection<KeyValuePair<string, object?>>.Contains(KeyValuePair<string, object?> item) => ((IDictionary<string, object?>)Options).Contains(item);
42void ICollection<KeyValuePair<string, object?>>.CopyTo(KeyValuePair<string, object?>[] array, int arrayIndex) =>
47bool ICollection<KeyValuePair<string, object?>>.Remove(KeyValuePair<string, object?> item) => ((IDictionary<string, object?>)Options).Remove(item);
System.Net.NameResolution (2)
System.Net.Primitives (1)
System.Net.Security (2)
System.ObjectModel (2)
System.Private.CoreLib (77)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Dictionary.cs (17)
101this((collection as ICollection<KeyValuePair<TKey, TValue>>)?.Count ?? 0, comparer)
218ICollection<TKey> IDictionary<TKey, TValue>.Keys => Keys;
224ICollection<TValue> IDictionary<TKey, TValue>.Values => Values;
254void ICollection<KeyValuePair<TKey, TValue>>.Add(KeyValuePair<TKey, TValue> keyValuePair) =>
257bool ICollection<KeyValuePair<TKey, TValue>>.Contains(KeyValuePair<TKey, TValue> keyValuePair)
268bool ICollection<KeyValuePair<TKey, TValue>>.Remove(KeyValuePair<TKey, TValue> keyValuePair)
1033bool ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly => false;
1035void ICollection<KeyValuePair<TKey, TValue>>.CopyTo(KeyValuePair<TKey, TValue>[] array, int index) =>
1504bool ICollection<TKey>.IsReadOnly => true;
1506void ICollection<TKey>.Add(TKey item) =>
1509void ICollection<TKey>.Clear() =>
1515bool ICollection<TKey>.Remove(TKey item)
1699bool ICollection<TValue>.IsReadOnly => true;
1701void ICollection<TValue>.Add(TValue item) =>
1704bool ICollection<TValue>.Remove(TValue item)
1710void ICollection<TValue>.Clear() =>
1713bool ICollection<TValue>.Contains(TValue item) => _dictionary.ContainsValue(item);
src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\ReadOnlyDictionary.cs (21)
44ICollection<TKey> IDictionary<TKey, TValue>.Keys => Keys;
51ICollection<TValue> IDictionary<TKey, TValue>.Values => Values;
73bool ICollection<KeyValuePair<TKey, TValue>>.Contains(KeyValuePair<TKey, TValue> item)
78void ICollection<KeyValuePair<TKey, TValue>>.CopyTo(KeyValuePair<TKey, TValue>[] array, int arrayIndex)
83bool ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly => true;
85void ICollection<KeyValuePair<TKey, TValue>>.Add(KeyValuePair<TKey, TValue> item)
90void ICollection<KeyValuePair<TKey, TValue>>.Clear()
95bool ICollection<KeyValuePair<TKey, TValue>>.Remove(KeyValuePair<TKey, TValue> item)
254private readonly ICollection<TKey> _collection;
256internal KeyCollection(ICollection<TKey> collection)
263void ICollection<TKey>.Add(TKey item)
268void ICollection<TKey>.Clear()
285bool ICollection<TKey>.IsReadOnly => true;
287bool ICollection<TKey>.Remove(TKey item)
310private readonly ICollection<TValue> _collection;
312internal ValueCollection(ICollection<TValue> collection)
319void ICollection<TValue>.Add(TValue item)
324void ICollection<TValue>.Clear()
329bool ICollection<TValue>.Contains(TValue item) => _collection.Contains(item);
338bool ICollection<TValue>.IsReadOnly => true;
340bool ICollection<TValue>.Remove(TValue item)
System.Private.DataContractSerialization (15)
System.Private.Xml (12)
System.Private.Xml.Linq (1)
System.Runtime (1)
System.Security.Cryptography (1)
System.Security.Cryptography.Cose (3)
System.Security.Principal.Windows (1)
System.Speech (7)
artifacts\obj\System.Speech\Debug\net9.0\System.Speech.notsupported.cs (7)
303bool System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String,System.Speech.Recognition.SemanticValue>>.IsReadOnly { get { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_SystemSpeech); } }
304System.Collections.Generic.ICollection<string> System.Collections.Generic.IDictionary<System.String,System.Speech.Recognition.SemanticValue>.Keys { get { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_SystemSpeech); } }
305System.Collections.Generic.ICollection<System.Speech.Recognition.SemanticValue> System.Collections.Generic.IDictionary<System.String,System.Speech.Recognition.SemanticValue>.Values { get { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_SystemSpeech); } }
311void System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String,System.Speech.Recognition.SemanticValue>>.Add(System.Collections.Generic.KeyValuePair<string, System.Speech.Recognition.SemanticValue> key) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_SystemSpeech); }
312void System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String,System.Speech.Recognition.SemanticValue>>.Clear() { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_SystemSpeech); }
313void System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String,System.Speech.Recognition.SemanticValue>>.CopyTo(System.Collections.Generic.KeyValuePair<string, System.Speech.Recognition.SemanticValue>[] array, int index) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_SystemSpeech); }
314bool System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String,System.Speech.Recognition.SemanticValue>>.Remove(System.Collections.Generic.KeyValuePair<string, System.Speech.Recognition.SemanticValue> key) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_SystemSpeech); }
System.Text.Json (17)
System\Text\Json\Nodes\JsonObject.IDictionary.cs (6)
117bool ICollection<KeyValuePair<string, JsonNode?>>.Contains(KeyValuePair<string, JsonNode?> item) => Dictionary.Contains(item);
136void ICollection<KeyValuePair<string, JsonNode?>>.CopyTo(KeyValuePair<string, JsonNode?>[] array, int index) => Dictionary.CopyTo(array, index);
155bool ICollection<KeyValuePair<string, JsonNode?>>.Remove(KeyValuePair<string, JsonNode?> item) => Remove(item.Key);
160ICollection<string> IDictionary<string, JsonNode?>.Keys => Dictionary.Keys;
165ICollection<JsonNode?> IDictionary<string, JsonNode?>.Values => Dictionary.Values;
186bool ICollection<KeyValuePair<string, JsonNode?>>.IsReadOnly => false;
System.Text.Json.SourceGeneration (3)
System.Text.RegularExpressions (17)
System.Threading.Tasks.Dataflow (1)
System.Xaml (45)
System\Xaml\NameScopeDictionary.cs (9)
245int ICollection<KeyValuePair<string, object>>.Count
253bool ICollection<KeyValuePair<string, object>>.IsReadOnly
261void ICollection<KeyValuePair<string, object>>.Clear()
266void ICollection<KeyValuePair<string, object>>.CopyTo(KeyValuePair<string, object>[] array, int arrayIndex)
271bool ICollection<KeyValuePair<string, object>>.Remove(KeyValuePair<string, object> item)
276void ICollection<KeyValuePair<string, object>>.Add(KeyValuePair<string, object> item)
281bool ICollection<KeyValuePair<string, object>>.Contains(KeyValuePair<string, object> item)
321ICollection<string> IDictionary<string, object>.Keys
329ICollection<object> IDictionary<string, object>.Values
Templates.Blazor.Tests (2)
Templates.Blazor.WebAssembly.Auth.Tests (3)
Templates.Blazor.WebAssembly.Tests (3)
Templates.Mvc.Tests (3)
Templates.Tests (3)
xunit.console (4)