255 implementations of Remove
InMemory.FunctionalTests (2)
Http2\Http2ConnectionTests.cs (1)
301public bool Remove(KeyValuePair<string, StringValues> item) => _innerHeaders.Remove(item);
Http3\Http3ConnectionTests.cs (1)
652public bool Remove(KeyValuePair<string, StringValues> item) => _innerHeaders.Remove(item);
Microsoft.AspNetCore.Components (1)
src\Http\Http.Abstractions\src\Routing\RouteValueDictionary.cs (1)
484bool ICollection<KeyValuePair<string, object?>>.Remove(KeyValuePair<string, object?> item)
Microsoft.AspNetCore.Components.Endpoints.Tests (1)
Binding\FormDataMapperTests.cs (1)
2425public bool Remove(T item) => _inner.Remove(item);
Microsoft.AspNetCore.Connections.Abstractions (1)
ConnectionItems.cs (1)
114bool ICollection<KeyValuePair<object, object?>>.Remove(KeyValuePair<object, object?> item)
Microsoft.AspNetCore.Hosting.Tests (1)
WebHostTests.cs (1)
1434public bool Remove(KeyValuePair<string, StringValues> item) => false;
Microsoft.AspNetCore.Http (4)
HeaderDictionary.cs (1)
281public bool Remove(KeyValuePair<string, StringValues> item)
Internal\ItemsDictionary.cs (1)
115bool ICollection<KeyValuePair<object, object?>>.Remove(KeyValuePair<object, object?> item)
src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionary.cs (1)
139public bool Remove(KeyValuePair<TKey, TValue> item)
src\Shared\Dictionary\AdaptiveCapacityDictionary.cs (1)
346bool ICollection<KeyValuePair<TKey, TValue>>.Remove(KeyValuePair<TKey, TValue> item)
Microsoft.AspNetCore.Http.Abstractions (11)
EndpointFilterInvocationContextOfT.Generated.cs (10)
118public bool Remove(object? item) 247public bool Remove(object? item) 383public bool Remove(object? item) 526public bool Remove(object? item) 676public bool Remove(object? item) 833public bool Remove(object? item) 997public bool Remove(object? item) 1168public bool Remove(object? item) 1346public bool Remove(object? item) 1531public bool Remove(object? item)
Routing\RouteValueDictionary.cs (1)
484bool ICollection<KeyValuePair<string, object?>>.Remove(KeyValuePair<string, object?> item)
Microsoft.AspNetCore.Mvc.Abstractions (1)
ModelBinding\Validation\ValidationStateDictionary.cs (1)
117public bool Remove(KeyValuePair<object, ValidationStateEntry> item)
Microsoft.AspNetCore.Mvc.Abstractions.Test (1)
ModelBinding\ModelMetadataTest.cs (1)
779public bool Remove(string item)
Microsoft.AspNetCore.Mvc.Core (2)
Infrastructure\CopyOnWriteList.cs (1)
104public bool Remove(T item)
src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionary.cs (1)
139public bool Remove(KeyValuePair<TKey, TValue> item)
Microsoft.AspNetCore.Mvc.IntegrationTests (8)
ActionParametersIntegrationTest.cs (1)
1044public bool Remove(T item)
CollectionModelBinderIntegrationTest.cs (4)
1282bool ICollection<string>.Remove(string item) 1361bool ICollection<string>.Remove(string item) 1422bool ICollection<T>.Remove(T item) 1501bool ICollection<T>.Remove(T item)
DictionaryModelBinderIntegrationTest.cs (2)
1605bool ICollection<KeyValuePair<string, string>>.Remove(KeyValuePair<string, string> item) 1710bool ICollection<KeyValuePair<TKey, TValue>>.Remove(KeyValuePair<TKey, TValue> item)
TryUpdateModelIntegrationTest.cs (1)
1335public bool Remove(T item)
Microsoft.AspNetCore.Mvc.ViewFeatures (5)
AttributeDictionary.cs (3)
247public bool Remove(KeyValuePair<string, string?> item) 424public bool Remove(string item) 529public bool Remove(string? item)
TempDataDictionary.cs (1)
261bool ICollection<KeyValuePair<string, object?>>.Remove(KeyValuePair<string, object?> keyValuePair)
ViewDataDictionary.cs (1)
580public bool Remove(KeyValuePair<string, object?> item)
Microsoft.AspNetCore.Owin (3)
DictionaryStringArrayWrapper.cs (1)
62bool ICollection<KeyValuePair<string, string[]>>.Remove(KeyValuePair<string, string[]> item) => Inner.Remove(Convert(item));
DictionaryStringValuesWrapper.cs (1)
107bool ICollection<KeyValuePair<string, StringValues>>.Remove(KeyValuePair<string, StringValues> item) => Inner.Remove(Convert(item));
OwinEnvironment.cs (1)
281bool ICollection<KeyValuePair<string, object>>.Remove(KeyValuePair<string, object> item)
Microsoft.AspNetCore.Razor (1)
TagHelpers\TagHelperAttributeList.cs (1)
155public bool Remove(TagHelperAttribute attribute)
Microsoft.AspNetCore.Razor.Runtime (1)
src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionary.cs (1)
139public bool Remove(KeyValuePair<TKey, TValue> item)
Microsoft.AspNetCore.Server.HttpSys (3)
src\Shared\HttpSys\RequestProcessing\HeaderCollection.cs (1)
230public bool Remove(KeyValuePair<string, StringValues> item)
src\Shared\HttpSys\RequestProcessing\RequestHeaders.cs (1)
239bool ICollection<KeyValuePair<string, StringValues>>.Remove(KeyValuePair<string, StringValues> item)
UrlPrefixCollection.cs (1)
146public bool Remove(UrlPrefix item)
Microsoft.AspNetCore.Server.IIS (2)
src\Shared\HttpSys\RequestProcessing\HeaderCollection.cs (1)
230public bool Remove(KeyValuePair<string, StringValues> item)
src\Shared\HttpSys\RequestProcessing\RequestHeaders.cs (1)
239bool ICollection<KeyValuePair<string, StringValues>>.Remove(KeyValuePair<string, StringValues> item)
Microsoft.AspNetCore.Server.Kestrel.Core (3)
Internal\Http\HttpHeaders.cs (1)
245bool ICollection<KeyValuePair<string, StringValues>>.Remove(KeyValuePair<string, StringValues> item)
Internal\ServerAddressesCollection.cs (2)
54public bool Remove(string item) 126public bool Remove(string item)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
Http1\Http1ConnectionTests.cs (1)
1209public bool Remove(KeyValuePair<string, StringValues> item) => _innerHeaders.Remove(item);
Microsoft.AspNetCore.Shared.Tests (5)
ClosedGenericMatcherTest.cs (1)
328bool ICollection<KeyValuePair<string, object>>.Remove(KeyValuePair<string, object> item)
src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionary.cs (1)
139public bool Remove(KeyValuePair<TKey, TValue> item)
src\Shared\Dictionary\AdaptiveCapacityDictionary.cs (1)
346bool ICollection<KeyValuePair<TKey, TValue>>.Remove(KeyValuePair<TKey, TValue> item)
src\Shared\HttpSys\RequestProcessing\HeaderCollection.cs (1)
230public bool Remove(KeyValuePair<string, StringValues> item)
src\Shared\HttpSys\RequestProcessing\RequestHeaders.cs (1)
239bool ICollection<KeyValuePair<string, StringValues>>.Remove(KeyValuePair<string, StringValues> item)
Microsoft.Build (15)
Collections\ArrayDictionary.cs (1)
177public bool Remove(KeyValuePair<TKey, TValue> item)
Collections\CopyOnWritePropertyDictionary.cs (1)
241bool ICollection<KeyValuePair<string, T>>.Remove(KeyValuePair<string, T> item)
Collections\PropertyDictionary.cs (1)
416bool ICollection<KeyValuePair<string, T>>.Remove(KeyValuePair<string, T> item)
Collections\ReadOnlyConvertingDictionary.cs (1)
169public bool Remove(KeyValuePair<K, N> item)
Collections\RetrievableEntryHashSet\HashSet.cs (2)
394public bool Remove(T item) 399bool ICollection<KeyValuePair<string, T>>.Remove(KeyValuePair<string, T> entry)
Construction\ProjectElementContainer.cs (1)
838public bool Remove(T item)
CopyOnWriteDictionary.cs (1)
288public bool Remove(KeyValuePair<string, V> item)
Instance\ImmutableProjectCollections\ImmutableElementCollectionConverter.cs (3)
88public bool Remove(T item) => throw new NotSupportedException(); 92public bool Remove(KeyValuePair<string, T> item) => throw new NotSupportedException(); 197public bool Remove(T item) => throw new NotSupportedException();
Instance\ImmutableProjectCollections\ImmutableItemDictionary.cs (1)
172public bool Remove(T item) => throw new NotSupportedException();
ReadOnlyCollection.cs (1)
153public bool Remove(T item)
ReadOnlyEmptyCollection.cs (1)
116public bool Remove(T item)
ReadOnlyEmptyDictionary.cs (1)
248public bool Remove(KeyValuePair<K, V> item)
Microsoft.Build.Engine (1)
Engine\ToolsetCollection.cs (1)
195public bool Remove(Toolset item)
Microsoft.Build.Framework (14)
ImmutableSegmentedDictionary`2.cs (1)
369bool ICollection<KeyValuePair<TKey, TValue>>.Remove(KeyValuePair<TKey, TValue> item)
ImmutableSegmentedDictionary`2+Builder.cs (1)
173public bool Remove(KeyValuePair<TKey, TValue> item)
ImmutableSegmentedDictionary`2+Builder+KeyCollection.cs (1)
49public bool Remove(TKey item)
ImmutableSegmentedDictionary`2+Builder+ValueCollection.cs (1)
49bool ICollection<TValue>.Remove(TValue item)
ImmutableSegmentedDictionary`2+KeyCollection.cs (1)
54bool ICollection<TKey>.Remove(TKey item)
ImmutableSegmentedDictionary`2+ValueCollection.cs (1)
54bool ICollection<TValue>.Remove(TValue item)
ImmutableSegmentedList`1.cs (1)
655bool ICollection<T>.Remove(T item)
ImmutableSegmentedList`1+Builder.cs (1)
182public bool Remove(T item)
ImmutableSegmentedList`1+ValueBuilder.cs (1)
254public bool Remove(T item)
SegmentedArray`1.cs (1)
285bool ICollection<T>.Remove(T value)
SegmentedDictionary`2.cs (3)
219bool ICollection<KeyValuePair<TKey, TValue>>.Remove(KeyValuePair<TKey, TValue> keyValuePair) 1314bool ICollection<TKey>.Remove(TKey item) 1508bool ICollection<TValue>.Remove(TValue item)
SegmentedList`1.cs (1)
910public bool Remove(T item)
Microsoft.Build.Tasks.Core (4)
CopyOnWriteDictionary.cs (1)
288public bool Remove(KeyValuePair<string, V> item)
ReadOnlyCollection.cs (1)
153public bool Remove(T item)
ReadOnlyEmptyCollection.cs (1)
116public bool Remove(T item)
ReadOnlyEmptyDictionary.cs (1)
248public bool Remove(KeyValuePair<K, V> item)
Microsoft.Build.Utilities.Core (3)
CopyOnWriteDictionary.cs (1)
288public bool Remove(KeyValuePair<string, V> item)
ReadOnlyEmptyCollection.cs (1)
116public bool Remove(T item)
ReadOnlyEmptyDictionary.cs (1)
248public bool Remove(KeyValuePair<K, V> item)
Microsoft.Extensions.Configuration (2)
ConfigurationManager.cs (2)
245public bool Remove(IConfigurationSource source) 336public bool Remove(KeyValuePair<string, object> item)
Microsoft.Extensions.DependencyInjection.Abstractions (1)
ServiceCollection.cs (1)
61public bool Remove(ServiceDescriptor item)
Microsoft.Extensions.Http (1)
DependencyInjection\DefaultHttpClientBuilderServiceCollection.cs (1)
72public bool Remove(ServiceDescriptor item) => _services.Remove(item);
Microsoft.Extensions.Primitives (1)
StringValues.cs (1)
392bool ICollection<string?>.Remove(string? item) => throw new NotSupportedException();
Microsoft.Interop.SourceGeneration (1)
ValueEqualityImmutableDictionary.cs (1)
56public bool Remove(KeyValuePair<T, U> item) => ((ICollection<KeyValuePair<T, U>>)Map).Remove(item);
MSBuild (3)
CopyOnWriteDictionary.cs (1)
288public bool Remove(KeyValuePair<string, V> item)
ReadOnlyEmptyCollection.cs (1)
116public bool Remove(T item)
ReadOnlyEmptyDictionary.cs (1)
248public bool Remove(KeyValuePair<K, V> item)
MSBuildTaskHost (4)
CopyOnWriteDictionary.cs (1)
288public bool Remove(KeyValuePair<string, V> item)
Immutable\ImmutableDictionary.cs (1)
277bool ICollection<KeyValuePair<K, V>>.Remove(KeyValuePair<K, V> item)
ReadOnlyEmptyCollection.cs (1)
116public bool Remove(T item)
ReadOnlyEmptyDictionary.cs (1)
248public bool Remove(KeyValuePair<K, V> item)
PresentationCore (41)
MS\Internal\FontCache\FontFaceLayoutInfo.cs (1)
758public bool Remove(KeyValuePair<int, ushort> item)
MS\Internal\FontFace\TypefaceCollection.cs (1)
116public bool Remove(Typeface item)
MS\Internal\PartialArray.cs (1)
74public bool Remove(T item)
MS\Internal\TextFormatting\ThousandthOfEmRealDoubles.cs (1)
245public bool Remove(double item)
MS\Internal\TextFormatting\ThousandthOfEmRealPoints.cs (1)
187public bool Remove(Point item)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\CharacterBuffer.cs (1)
136public bool Remove(char item)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\PartialList.cs (1)
138public bool Remove(T item)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SequentialUshortCollection.cs (1)
84public bool Remove(ushort item)
System\Windows\FreezableCollection.cs (1)
241public bool Remove(T value)
System\Windows\Generated\TextDecorationCollection.cs (1)
157public bool Remove(TextDecoration value)
System\Windows\Media\Animation\Generated\TimelineCollection.cs (1)
164public bool Remove(Timeline value)
System\Windows\Media\Animation\TimelineClockCollection.cs (1)
91public bool Remove(Clock item)
System\Windows\Media\CharacterMetricsDictionary.cs (1)
174public bool Remove(KeyValuePair<int, CharacterMetrics> item)
System\Windows\Media\CultureSpecificStringDictionary.cs (1)
140public bool Remove(KeyValuePair<XmlLanguage, string> item)
System\Windows\Media\Effects\Generated\BitmapEffectCollection.cs (1)
163public bool Remove(BitmapEffect value)
System\Windows\Media\FamilyMapCollection.cs (1)
133public bool Remove(FontFamilyMap item)
System\Windows\Media\FamilyTypefaceCollection.cs (1)
121public bool Remove(FamilyTypeface item)
System\Windows\Media\Fonts.cs (1)
365public bool Remove(Typeface item)
System\Windows\Media\Generated\DoubleCollection.cs (1)
150public bool Remove(double value)
System\Windows\Media\Generated\DrawingCollection.cs (1)
177public bool Remove(Drawing value)
System\Windows\Media\Generated\GeneralTransformCollection.cs (1)
165public bool Remove(GeneralTransform value)
System\Windows\Media\Generated\GeometryCollection.cs (1)
177public bool Remove(Geometry value)
System\Windows\Media\Generated\GradientStopCollection.cs (1)
165public bool Remove(GradientStop value)
System\Windows\Media\Generated\Int32Collection.cs (1)
150public bool Remove(int value)
System\Windows\Media\Generated\PathFigureCollection.cs (1)
166public bool Remove(PathFigure value)
System\Windows\Media\Generated\PathSegmentCollection.cs (1)
165public bool Remove(PathSegment value)
System\Windows\Media\Generated\PointCollection.cs (1)
150public bool Remove(Point value)
System\Windows\Media\Generated\TextEffectCollection.cs (1)
165public bool Remove(TextEffect value)
System\Windows\Media\Generated\TransformCollection.cs (1)
177public bool Remove(Transform value)
System\Windows\Media\Generated\VectorCollection.cs (1)
150public bool Remove(Vector value)
System\Windows\Media\GlyphRun.cs (2)
2179public bool Remove(bool item) 2281public bool Remove(ushort item)
System\Windows\Media\GlyphTypeface.cs (2)
1850public bool Remove(KeyValuePair<ushort, double> item) 1935public bool Remove(double item)
System\Windows\Media3D\Generated\GeneralTransform3DCollection.cs (1)
161public bool Remove(GeneralTransform3D value)
System\Windows\Media3D\Generated\MaterialCollection.cs (1)
173public bool Remove(Material value)
System\Windows\Media3D\Generated\Model3DCollection.cs (1)
173public bool Remove(Model3D value)
System\Windows\Media3D\Generated\Point3DCollection.cs (1)
146public bool Remove(Point3D value)
System\Windows\Media3D\Generated\Transform3DCollection.cs (1)
173public bool Remove(Transform3D value)
System\Windows\Media3D\Generated\Vector3DCollection.cs (1)
146public bool Remove(Vector3D value)
System\Windows\Media3D\Visual3DCollection.cs (1)
89public bool Remove(Visual3D value)
PresentationFramework (19)
MS\Internal\Annotations\ObservableDictionary.cs (1)
177bool ICollection<KeyValuePair<string, string>>.Remove(KeyValuePair<string, string> pair)
MS\Internal\Data\RBTree.cs (1)
599public bool Remove(T item)
MS\Internal\Documents\ContentElementCollection.cs (1)
241abstract public bool Remove(TItem item);
MS\Internal\ListOfObject.cs (1)
87bool ICollection<object>.Remove(object item)
MS\Internal\WeakDictionary.cs (3)
68public bool Remove(KeyType item) 155public bool Remove(ValueType item) 322public bool Remove(KeyValuePair<TKey, TValue> item)
MS\Internal\WeakHashSet.cs (1)
72public bool Remove(T item)
System\Windows\Controls\ColumnDefinition.cs (1)
280public bool Remove(ColumnDefinition value) // bool ICollection<T>.Remove(T item)
System\Windows\Controls\CustomDictionarySources.cs (1)
209bool ICollection<Uri>.Remove(Uri item)
System\Windows\Controls\RowDefinition.cs (1)
280public bool Remove(RowDefinition value) // bool ICollection<T>.Remove(T item)
System\Windows\Controls\VirtualizedCellInfoCollection.cs (1)
344public bool Remove(DataGridCellInfo cell)
System\Windows\Data\XmlNamespaceMappingCollection.cs (1)
156public bool Remove(XmlNamespaceMapping mapping)
System\Windows\Documents\TableCellCollection.cs (1)
201public bool Remove(TableCell item)
System\Windows\Documents\TableColumnCollection.cs (1)
201public bool Remove(TableColumn item)
System\Windows\Documents\TableRowCollection.cs (1)
201public bool Remove(TableRow item)
System\Windows\Documents\TableRowGroupCollection.cs (1)
201public bool Remove(TableRowGroup item)
System\Windows\Documents\TextElementCollection.cs (1)
199public bool Remove(TextElementType item)
System\Windows\TriggerActionCollection.cs (1)
150public bool Remove(TriggerAction value)
System.Collections (8)
System\Collections\Generic\LinkedList.cs (1)
295public bool Remove(T value)
System\Collections\Generic\SortedDictionary.cs (3)
82bool ICollection<KeyValuePair<TKey, TValue>>.Remove(KeyValuePair<TKey, TValue> keyValuePair) 620bool ICollection<TKey>.Remove(TKey item) 781bool ICollection<TValue>.Remove(TValue item)
System\Collections\Generic\SortedList.cs (3)
204bool ICollection<KeyValuePair<TKey, TValue>>.Remove(KeyValuePair<TKey, TValue> keyValuePair) 1100public bool Remove(TKey key) 1209public bool Remove(TValue value)
System\Collections\Generic\SortedSet.cs (1)
379public bool Remove(T item) => DoRemove(item); // Hack so the implementation can be made virtual
System.Collections.Concurrent (1)
System\Collections\Concurrent\ConcurrentDictionary.cs (1)
1615bool ICollection<KeyValuePair<TKey, TValue>>.Remove(KeyValuePair<TKey, TValue> keyValuePair) =>
System.Collections.Immutable (15)
System\Collections\Frozen\FrozenDictionary.cs (1)
555bool ICollection<KeyValuePair<TKey, TValue>>.Remove(KeyValuePair<TKey, TValue> item) => throw new NotSupportedException();
System\Collections\Frozen\FrozenSet.cs (1)
335bool ICollection<T>.Remove(T item) => throw new NotSupportedException();
System\Collections\Immutable\ImmutableArray_1.Builder.cs (1)
498public bool Remove(T element)
System\Collections\Immutable\ImmutableArray_1.cs (1)
1063bool ICollection<T>.Remove(T item)
System\Collections\Immutable\ImmutableDictionary_2.Builder.cs (1)
661public bool Remove(KeyValuePair<TKey, TValue> item)
System\Collections\Immutable\ImmutableDictionary_2.cs (1)
604bool ICollection<KeyValuePair<TKey, TValue>>.Remove(KeyValuePair<TKey, TValue> item)
System\Collections\Immutable\ImmutableHashSet_1.Builder.cs (1)
242public bool Remove(T item)
System\Collections\Immutable\ImmutableHashSet_1.cs (1)
535bool ICollection<T>.Remove(T item)
System\Collections\Immutable\ImmutableList_1.Builder.cs (1)
216public bool Remove(T item)
System\Collections\Immutable\ImmutableList_1.cs (1)
983bool ICollection<T>.Remove(T item) => throw new NotSupportedException();
System\Collections\Immutable\ImmutableSortedDictionary_2.Builder.cs (1)
516public bool Remove(KeyValuePair<TKey, TValue> item)
System\Collections\Immutable\ImmutableSortedDictionary_2.cs (1)
524bool ICollection<KeyValuePair<TKey, TValue>>.Remove(KeyValuePair<TKey, TValue> item)
System\Collections\Immutable\ImmutableSortedSet_1.Builder.cs (1)
378public bool Remove(T item)
System\Collections\Immutable\ImmutableSortedSet_1.cs (1)
752bool ICollection<T>.Remove(T item)
System\Collections\Immutable\KeysOrValuesCollectionAccessor.cs (1)
105public bool Remove(T item)
System.ComponentModel.Composition (3)
Microsoft\Internal\Collections\CollectionServices.CollectionOfObject.cs (2)
76public bool Remove(object item) 131public bool Remove(object item)
System\ComponentModel\Composition\Hosting\ComposablePartCatalogCollection.cs (1)
171public bool Remove(ComposablePartCatalog item)
System.Composition.Hosting (1)
System\Composition\Hosting\Core\CycleBreakingMetadataDictionary.cs (1)
105public bool Remove(KeyValuePair<string, object> item)
System.Data.Common (1)
System\Data\Common\DbBatchCommandCollection.cs (1)
23public abstract bool Remove(DbBatchCommand item);
System.Diagnostics.DiagnosticSource (2)
System\Diagnostics\ActivityTagsCollection.cs (1)
244public bool Remove(KeyValuePair<string, object?> item) => _list.Remove(item);
System\Diagnostics\Metrics\TagList.cs (1)
391public bool Remove(KeyValuePair<string, object?> item)
System.Diagnostics.Process (1)
System\Collections\Specialized\DictionaryWrapper.cs (1)
69public bool Remove(KeyValuePair<string, string?> item)
System.DirectoryServices.AccountManagement (2)
artifacts\obj\System.DirectoryServices.AccountManagement\Debug\net9.0\System.DirectoryServices.AccountManagement.notsupported.cs (2)
251public bool Remove(System.DirectoryServices.AccountManagement.Principal principal) { throw new System.PlatformNotSupportedException(System.SR.DirectoryServicesAccountManagement_PlatformNotSupported); } 375public bool Remove(T value) { throw new System.PlatformNotSupportedException(System.SR.DirectoryServicesAccountManagement_PlatformNotSupported); }
System.IO.FileSystem.Watcher (1)
System\IO\FileSystemWatcher.cs (1)
768public bool Remove(string item)
System.Linq (6)
System\Linq\Grouping.cs (1)
412bool ICollection<TElement>.Remove(TElement item) => ThrowHelper.ThrowNotSupportedException_Boolean();
System\Linq\Lookup.cs (2)
297bool ICollection<IGrouping<TKey, TElement>>.Remove(IGrouping<TKey, TElement> item) => throw new NotSupportedException(); 324public bool Remove(IGrouping<TKey, TElement> item) => throw new NotSupportedException();
System\Linq\Range.SpeedOpt.cs (1)
110bool ICollection<int>.Remove(int item) => ThrowHelper.ThrowNotSupportedException_Boolean();
System\Linq\Repeat.SpeedOpt.cs (1)
114bool ICollection<TResult>.Remove(TResult item) => ThrowHelper.ThrowNotSupportedException_Boolean();
System\Linq\SkipTake.SpeedOpt.cs (1)
194bool ICollection<TSource>.Remove(TSource item) => ThrowHelper.ThrowNotSupportedException_Boolean();
System.Linq.Expressions (6)
System\Dynamic\ExpandoObject.cs (3)
426public bool Remove(string item) 576public bool Remove(object? item) 728bool ICollection<KeyValuePair<string, object?>>.Remove(KeyValuePair<string, object?> item)
System\Dynamic\Utils\ListArgumentProvider.cs (1)
116public bool Remove(T item)
System\Linq\Expressions\BlockExpression.cs (1)
795public bool Remove(Expression item)
System\Runtime\CompilerServices\ReadOnlyCollectionBuilder.cs (1)
237public bool Remove(T item)
System.Linq.Parallel (1)
System\Linq\Parallel\QueryOperators\QueryResults.cs (1)
141bool ICollection<T>.Remove(T item)
System.Net.Http (3)
System\Net\Http\Headers\HttpHeaderValueCollection.cs (1)
127public bool Remove(T item)
System\Net\Http\Headers\ObjectCollection.cs (1)
116public bool Remove(T item)
System\Net\Http\HttpRequestOptions.cs (1)
47bool ICollection<KeyValuePair<string, object?>>.Remove(KeyValuePair<string, object?> item) => ((IDictionary<string, object?>)Options).Remove(item);
System.Net.HttpListener (1)
System\Net\HttpListenerPrefixCollection.cs (1)
87public bool Remove(string uriPrefix) => _httpListener.RemovePrefix(uriPrefix);
System.Net.NetworkInformation (4)
System\Net\NetworkInformation\GatewayIPAddressInformationCollection.cs (1)
76public virtual bool Remove(GatewayIPAddressInformation address)
System\Net\NetworkInformation\IPAddressInformationCollection.cs (1)
70public virtual bool Remove(IPAddressInformation address)
System\Net\NetworkInformation\MulticastIPAddressInformationCollection.cs (1)
70public virtual bool Remove(MulticastIPAddressInformation address)
System\Net\NetworkInformation\UnicastIPAddressInformationCollection.cs (1)
71public virtual bool Remove(UnicastIPAddressInformation address)
System.Net.Primitives (2)
System\Net\CookieCollection.cs (1)
102public bool Remove(Cookie cookie)
System\Net\NetworkInformation\IPAddressCollection.cs (1)
63public virtual bool Remove(IPAddress address)
System.Private.CoreLib (12)
src\libraries\System.Private.CoreLib\src\System\ArraySegment.cs (1)
250bool ICollection<T>.Remove(T item)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Dictionary.cs (3)
268bool ICollection<KeyValuePair<TKey, TValue>>.Remove(KeyValuePair<TKey, TValue> keyValuePair) 1515bool ICollection<TKey>.Remove(TKey item) 1704bool ICollection<TValue>.Remove(TValue item)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\HashSet.cs (1)
289public bool Remove(T item)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\List.cs (1)
940public bool Remove(T item)
src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\Collection.cs (1)
111public bool Remove(T item)
src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\ReadOnlyCollection.cs (1)
80bool ICollection<T>.Remove(T value)
src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\ReadOnlyDictionary.cs (3)
95bool ICollection<KeyValuePair<TKey, TValue>>.Remove(KeyValuePair<TKey, TValue> item) 287bool ICollection<TKey>.Remove(TKey item) 340bool ICollection<TValue>.Remove(TValue item)
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\EventPayload.cs (1)
105public bool Remove(KeyValuePair<string, object?> entry)
System.Private.Xml (4)
System\Xml\Xsl\ListBase.cs (1)
78public virtual bool Remove(T value)
System\Xml\Xsl\QIL\QilNode.cs (1)
183public virtual bool Remove(QilNode node)
System\Xml\Xsl\Runtime\XmlQuerySequence.cs (2)
215bool ICollection<T>.Remove(T value) 711bool ICollection<XPathItem>.Remove(XPathItem value)
System.Security.Cryptography.Cose (1)
System\Security\Cryptography\Cose\CoseHeaderMap.cs (1)
231public bool Remove(KeyValuePair<CoseHeaderLabel, CoseHeaderValue> item)
System.Security.Principal.Windows (1)
artifacts\obj\System.Security.Principal.Windows\Debug\net9.0\System.Security.Principal.Windows.notsupported.cs (1)
54public bool Remove(System.Security.Principal.IdentityReference identity) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_Principal); }
System.Speech (1)
artifacts\obj\System.Speech\Debug\net9.0\System.Speech.notsupported.cs (1)
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 (5)
System\Text\Json\JsonPropertyDictionary.KeyCollection.cs (1)
77bool ICollection<string>.Remove(string propertyName) => throw ThrowHelper.GetNotSupportedException_CollectionIsReadOnly();
System\Text\Json\JsonPropertyDictionary.ValueCollection.cs (1)
77bool ICollection<T>.Remove(T node) => throw ThrowHelper.GetNotSupportedException_CollectionIsReadOnly();
System\Text\Json\Nodes\JsonArray.IList.cs (1)
92public bool Remove(JsonNode? item)
System\Text\Json\Nodes\JsonObject.IDictionary.cs (1)
155bool ICollection<KeyValuePair<string, JsonNode?>>.Remove(KeyValuePair<string, JsonNode?> item) => Remove(item.Key);
System\Text\Json\Serialization\ConfigurationList.cs (1)
99public bool Remove(TItem item)
System.Text.RegularExpressions (3)
System\Text\RegularExpressions\CaptureCollection.cs (1)
148bool ICollection<Capture>.Remove(Capture item) =>
System\Text\RegularExpressions\GroupCollection.cs (1)
162bool ICollection<Group>.Remove(Group item) =>
System\Text\RegularExpressions\MatchCollection.cs (1)
161bool ICollection<Match>.Remove(Match item) =>
System.Xaml (3)
System\Xaml\NameScope.cs (1)
128public bool Remove(KeyValuePair<string, object> item)
System\Xaml\NameScopeDictionary.cs (1)
271bool ICollection<KeyValuePair<string, object>>.Remove(KeyValuePair<string, object> item)
System\Xaml\XamlSchemaContext.cs (1)
1435bool ICollection<T>.Remove(T item)
100 references to Remove
Identity.DefaultUI.WebSite (3)
src\Identity\test\InMemory.Test\InMemoryUserStore.cs (3)
68user.Claims.Remove(entity); 182user.Logins.Remove(loginEntity); 378user.Tokens.Remove(tokenEntity);
InMemory.FunctionalTests (2)
Http2\Http2ConnectionTests.cs (1)
301public bool Remove(KeyValuePair<string, StringValues> item) => _innerHeaders.Remove(item);
Http3\Http3ConnectionTests.cs (1)
652public bool Remove(KeyValuePair<string, StringValues> item) => _innerHeaders.Remove(item);
Microsoft.AspNetCore.Authentication.OAuth (1)
ClaimActionCollection.cs (1)
28itemsToRemove.ForEach(map => Actions.Remove(map));
Microsoft.AspNetCore.Components.Endpoints.Tests (1)
RazorComponentEndpointFactoryTest.cs (1)
147builder => builder.Metadata.Remove(builder.Metadata.OfType<AuthorizeAttribute>().Single())
Microsoft.AspNetCore.Http (3)
src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionary.cs (1)
141return WriteDictionary.Remove(item);
src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionaryHolder.cs (1)
158return ((ICollection<KeyValuePair<TKey, TValue>>)WriteDictionary).Remove(item);
src\Shared\Dictionary\AdaptiveCapacityDictionary.cs (1)
368return ((ICollection<KeyValuePair<TKey, TValue>>)_dictionaryStorage!).Remove(item);
Microsoft.AspNetCore.Http.Abstractions.Tests (4)
RouteValueDictionaryTests.cs (4)
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.HttpLogging.Tests (1)
FileLoggerProcessorTests.cs (1)
519options.AdditionalRequestHeaders.Remove("one");
Microsoft.AspNetCore.Identity.FunctionalTests (1)
Infrastructure\ServerFactory.cs (1)
135manager.ApplicationParts.Remove(part);
Microsoft.AspNetCore.Identity.InMemory.Test (5)
InMemoryStore.cs (2)
35user.Roles.Remove(roleEntity); 145role.Claims.Remove(entity);
InMemoryUserStore.cs (3)
68user.Claims.Remove(entity); 182user.Logins.Remove(loginEntity); 378user.Tokens.Remove(tokenEntity);
Microsoft.AspNetCore.Identity.UI (1)
IdentityBuilderUIExtensions.cs (1)
152feature.ViewDescriptors.Remove(descriptorToRemove);
Microsoft.AspNetCore.JsonPatch.Tests (2)
TestObjectModels\DynamicTestObject.cs (1)
65return ((IDictionary<string, object>)_dictionary).Remove(item);
WriteOnceDynamicTestObject.cs (1)
79return ((IDictionary<string, object>)_dictionary).Remove(item);
Microsoft.AspNetCore.Mvc.Core (2)
src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionary.cs (1)
141return WriteDictionary.Remove(item);
src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionaryHolder.cs (1)
158return ((ICollection<KeyValuePair<TKey, TValue>>)WriteDictionary).Remove(item);
Microsoft.AspNetCore.Mvc.Core.Test (4)
DependencyInjection\ApplicationModelConventionExtensionsTest.cs (4)
458controller.Application.Controllers.Remove(controller); 474action.Controller.Actions.Remove(action); 483property.Controller.ControllerProperties.Remove(property); 491parameter.Action.Parameters.Remove(parameter);
Microsoft.AspNetCore.Mvc.DataAnnotations (1)
DataAnnotationsModelValidatorProvider.cs (1)
81context.Results.Remove(validatorItem);
Microsoft.AspNetCore.Mvc.NewtonsoftJson (3)
DependencyInjection\NewtonsoftJsonMvcCoreBuilderExtensions.cs (3)
70services.Remove(jsonResultExecutor); 82services.Remove(tempDataSerializer); 94services.Remove(jsonHelper);
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (2)
DependencyInjection\RazorRuntimeCompilationMvcCoreBuilderExtensions.cs (2)
68services.Remove(compilerProvider); 82services.Remove(actionDescriptorProvider);
Microsoft.AspNetCore.Mvc.RazorPages.Test (3)
Infrastructure\CompiledPageActionDescriptorFactoryTest.cs (3)
148m.Page.HandlerMethods.Remove(m); 245model.Handler.Parameters.Remove(model); 342model.Page.HandlerProperties.Remove(model);
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
TempDataDictionary.cs (1)
265return ((ICollection<KeyValuePair<string, object?>>)_data).Remove(keyValuePair);
ViewDataDictionary.cs (1)
582return _data.Remove(item);
Microsoft.AspNetCore.OpenApi (1)
Extensions\OpenApiEndpointConventionBuilderExtensions.cs (1)
67endpointBuilder.Metadata.Remove(existingOperation);
Microsoft.AspNetCore.Owin (2)
DictionaryStringArrayWrapper.cs (1)
62bool ICollection<KeyValuePair<string, string[]>>.Remove(KeyValuePair<string, string[]> item) => Inner.Remove(Convert(item));
DictionaryStringValuesWrapper.cs (1)
107bool ICollection<KeyValuePair<string, StringValues>>.Remove(KeyValuePair<string, StringValues> item) => Inner.Remove(Convert(item));
Microsoft.AspNetCore.Razor (1)
TagHelpers\TagHelperAttributeList.cs (1)
159return Items.Remove(attribute);
Microsoft.AspNetCore.Razor.Runtime (2)
src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionary.cs (1)
141return WriteDictionary.Remove(item);
src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionaryHolder.cs (1)
158return ((ICollection<KeyValuePair<TKey, TValue>>)WriteDictionary).Remove(item);
Microsoft.AspNetCore.Server.HttpSys (1)
src\Shared\HttpSys\RequestProcessing\HeaderCollection.cs (1)
233return Store.Remove(item);
Microsoft.AspNetCore.Server.IIS (1)
src\Shared\HttpSys\RequestProcessing\HeaderCollection.cs (1)
233return Store.Remove(item);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
Http1\Http1ConnectionTests.cs (1)
1209public bool Remove(KeyValuePair<string, StringValues> item) => _innerHeaders.Remove(item);
Microsoft.AspNetCore.Shared.Tests (8)
AdaptiveCapacityDictionaryTests.cs (4)
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);
src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionary.cs (1)
141return WriteDictionary.Remove(item);
src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionaryHolder.cs (1)
158return ((ICollection<KeyValuePair<TKey, TValue>>)WriteDictionary).Remove(item);
src\Shared\Dictionary\AdaptiveCapacityDictionary.cs (1)
368return ((ICollection<KeyValuePair<TKey, TValue>>)_dictionaryStorage!).Remove(item);
src\Shared\HttpSys\RequestProcessing\HeaderCollection.cs (1)
233return Store.Remove(item);
Microsoft.AspNetCore.SignalR.Core (1)
Internal\HubGroupList.cs (1)
40((ICollection<KeyValuePair<string, GroupConnectionList>>)(_groups)).Remove(groupToRemove);
Microsoft.AspNetCore.Tests (1)
WebApplicationTests.cs (1)
1821Assert.Throws<InvalidOperationException>(() => builder.Services.Remove(ServiceDescriptor.Singleton(new Service())));
Microsoft.DotNet.Build.Tasks.Packaging (1)
HarvestPackage.cs (1)
565pathsNotIncluded.Remove(probePath);
Microsoft.Extensions.Caching.Memory (1)
MemoryCache.cs (1)
673if (EntriesCollection.Remove(new KeyValuePair<object, CacheEntry>(entry.Key, entry)))
Microsoft.Extensions.Configuration (1)
ConfigurationManager.cs (1)
338var wasRemoved = ((IDictionary<string, object>)_properties).Remove(item);
Microsoft.Extensions.Http (1)
DependencyInjection\DefaultHttpClientBuilderServiceCollection.cs (1)
72public bool Remove(ServiceDescriptor item) => _services.Remove(item);
Microsoft.Interop.SourceGeneration (1)
ValueEqualityImmutableDictionary.cs (1)
56public bool Remove(KeyValuePair<T, U> item) => ((ICollection<KeyValuePair<T, U>>)Map).Remove(item);
Microsoft.Net.Http.Headers (3)
HeaderUtilities.cs (1)
51parameters.Remove(qualityParameter);
MediaTypeHeaderValue.cs (2)
89Parameters.Remove(charsetParameter); 163Parameters.Remove(boundaryParameter);
Microsoft.Net.Http.Headers.Tests (15)
ContentDispositionHeaderValueTest.cs (12)
103contentDisposition.Parameters.Remove(name); 123contentDisposition.Parameters.Remove(fileName); 138contentDisposition.Parameters.Remove(contentDisposition.Parameters.First()); 153contentDisposition.Parameters.Remove(contentDisposition.Parameters.First()); 175contentDisposition.Parameters.Remove(fileName); 197contentDisposition.Parameters.Remove(fileNameStar); 212contentDisposition.Parameters.Remove(contentDisposition.Parameters.First()); 259contentDisposition.Parameters.Remove(contentDisposition.Parameters.First()); 281contentDisposition.Parameters.Remove(fileNameStar); 324contentDisposition.Parameters.Remove(dateParameter); 365contentDisposition.Parameters.Remove(sizeParameter); 387contentDisposition.Parameters.Remove(sizeParameter);
MediaTypeHeaderValueTest.cs (3)
185Assert.Throws<NotSupportedException>(() => mediaType1.Parameters.Remove(new NameValueHeaderValue("name"))); 261mediaType.Parameters.Remove(charset); 297mediaType.Parameters.Remove(quality);
Mvc.RoutingWebSite (2)
RemoveControllerActionDescriptorProvider.cs (1)
35context.Results.Remove(item);
StartupForRouteGroupsWithMetadata.cs (1)
23builder.PartManager.FeatureProviders.Remove(old);
PresentationCore (1)
System\Windows\Media\CultureSpecificStringDictionary.cs (1)
142return _innerDictionary.Remove(item);
PresentationFramework (5)
MS\Internal\Annotations\ObservableDictionary.cs (1)
179return ((ICollection<KeyValuePair<string, string>>)_nameValues).Remove(pair);
System\Windows\Annotations\AnnotationService.cs (1)
992attachedAnnotations.Remove(match);
System\Windows\Controls\CustomDictionarySources.cs (1)
272((IList<Uri>)this).Remove((Uri)value);
System\Windows\Documents\DocumentSequence.cs (1)
892_pendingPages.Remove(completedRequest.Page);
System\Windows\Documents\FixedDocument.cs (1)
1222_pendingPages.Remove(pc);
PresentationUI (2)
MS\Internal\Documents\DigitalSignatureProvider.cs (2)
236DigitalSignatureList.Remove(signature); 280DigitalSignatureList.Remove(signature);
System.Composition.Hosting (1)
System\Composition\Hosting\Core\CycleBreakingMetadataDictionary.cs (1)
107return ActualMetadata.Remove(item);
System.Net.Http (2)
System\Net\Http\HttpRequestOptions.cs (1)
47bool ICollection<KeyValuePair<string, object?>>.Remove(KeyValuePair<string, object?> item) => ((IDictionary<string, object?>)Options).Remove(item);
System\Net\Http\SocketsHttpHandler\FailedProxyCache.cs (1)
128((ICollection<KeyValuePair<Uri, long>>)_failedProxies).Remove(kvp);
System.Net.NameResolution (2)
System\Net\Dns.cs (2)
683((ICollection<KeyValuePair<object, Task>>)s_tasks).Remove(new KeyValuePair<object, Task>(key!, task!)); 696((ICollection<KeyValuePair<object, Task>>)s_tasks).Remove(new KeyValuePair<object, Task>(key!, task));
System.Security.Cryptography (1)
System\Security\Cryptography\X509Certificates\CertificatePolicy.cs (1)
285return declaredPolicies.Remove(Oids.AnyCertPolicy);
System.Security.Cryptography.Cose (1)
System\Security\Cryptography\Cose\CoseHeaderMap.cs (1)
234return HeaderParametersAsCollection.Remove(item);