467 implementations of Clear
Aspire.Dashboard (1)
src\Shared\CircularBuffer.cs (1)
212public void Clear()
Aspire.Hosting (2)
ApplicationModel\ResourceCollection.cs (1)
19public void Clear() => _resources.Clear();
src\Shared\CircularBuffer.cs (1)
212public void Clear()
dotnet-svcutil-lib (5)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageProperties.cs (1)
309public void Clear()
FrameworkFork\System.ServiceModel\System\ServiceModel\ServiceChannelManager.cs (1)
456public void Clear()
FrameworkFork\System.ServiceModel\System\ServiceModel\SynchronizedCollection.cs (1)
102public void Clear()
FrameworkFork\System.ServiceModel\System\ServiceModel\SynchronizedReadOnlyCollection.cs (1)
147void ICollection<T>.Clear()
Shared\Options\ListValue.cs (1)
123public void Clear()
InMemory.FunctionalTests (2)
Http2\Http2ConnectionTests.cs (1)
301public void Clear() => _innerHeaders.Clear();
Http3\Http3ConnectionTests.cs (1)
836public void Clear() => _innerHeaders.Clear();
Microsoft.AspNetCore.Components (1)
src\Http\Http.Abstractions\src\Routing\RouteValueDictionary.cs (1)
388public void Clear()
Microsoft.AspNetCore.Components.Endpoints.Tests (1)
Binding\FormDataMapperTests.cs (1)
2423public void Clear() => _inner.Clear();
Microsoft.AspNetCore.Connections.Abstractions (1)
ConnectionItems.cs (1)
89void ICollection<KeyValuePair<object, object?>>.Clear()
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (2)
src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (1)
48void ICollection<KeyValuePair<TKey, TValue>>.Clear()
src\Shared\EmptyCollections\EmptyReadOnlyList.cs (1)
37void ICollection<T>.Clear()
Microsoft.AspNetCore.Hosting.Tests (1)
WebHostTests.cs (1)
1420public void Clear() { }
Microsoft.AspNetCore.Http (4)
HeaderDictionary.cs (1)
221public void Clear()
Internal\ItemsDictionary.cs (1)
95void ICollection<KeyValuePair<object, object?>>.Clear() => _items?.Clear();
src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionary.cs (1)
124public void Clear()
src\Shared\Dictionary\AdaptiveCapacityDictionary.cs (1)
248public void Clear()
Microsoft.AspNetCore.Http.Abstractions (11)
EndpointFilterInvocationContextOfT.Generated.cs (10)
57public void Clear() 185public void Clear() 320public void Clear() 462public void Clear() 611public void Clear() 767public void Clear() 930public void Clear() 1100public void Clear() 1277public void Clear() 1461public void Clear()
Routing\RouteValueDictionary.cs (1)
388public void Clear()
Microsoft.AspNetCore.Mvc.Abstractions (1)
ModelBinding\Validation\ValidationStateDictionary.cs (1)
87public void Clear()
Microsoft.AspNetCore.Mvc.Abstractions.Test (1)
ModelBinding\ModelMetadataTest.cs (1)
794public void Clear()
Microsoft.AspNetCore.Mvc.Core (2)
Infrastructure\CopyOnWriteList.cs (1)
52public void Clear()
src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionary.cs (1)
124public void Clear()
Microsoft.AspNetCore.Mvc.IntegrationTests (8)
ActionParametersIntegrationTest.cs (1)
1029public void Clear()
CollectionModelBinderIntegrationTest.cs (4)
1257void ICollection<string>.Clear() 1326void ICollection<string>.Clear() 1397void ICollection<T>.Clear() 1466void ICollection<T>.Clear()
DictionaryModelBinderIntegrationTest.cs (2)
1575void ICollection<KeyValuePair<string, string>>.Clear() 1680void ICollection<KeyValuePair<TKey, TValue>>.Clear()
TryUpdateModelIntegrationTest.cs (1)
1320public void Clear()
Microsoft.AspNetCore.Mvc.ViewFeatures (5)
AttributeDictionary.cs (3)
152public void Clear() 384public void Clear() 491public void Clear()
TempDataDictionary.cs (1)
195public void Clear()
ViewDataDictionary.cs (1)
560public void Clear()
Microsoft.AspNetCore.Owin (3)
DictionaryStringArrayWrapper.cs (1)
44void ICollection<KeyValuePair<string, string[]>>.Clear() => Inner.Clear();
DictionaryStringValuesWrapper.cs (1)
89void ICollection<KeyValuePair<string, StringValues>>.Clear() => Inner.Clear();
OwinEnvironment.cs (1)
244void ICollection<KeyValuePair<string, object>>.Clear()
Microsoft.AspNetCore.Razor (1)
TagHelpers\TagHelperAttributeList.cs (1)
198public void Clear()
Microsoft.AspNetCore.Razor.Runtime (1)
src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionary.cs (1)
124public void Clear()
Microsoft.AspNetCore.Server.HttpSys (3)
src\Shared\HttpSys\RequestProcessing\HeaderCollection.cs (1)
194public void Clear()
src\Shared\HttpSys\RequestProcessing\RequestHeaders.cs (1)
150void ICollection<KeyValuePair<string, StringValues>>.Clear()
UrlPrefixCollection.cs (1)
109public void Clear()
Microsoft.AspNetCore.Server.IIS (2)
src\Shared\HttpSys\RequestProcessing\HeaderCollection.cs (1)
194public void Clear()
src\Shared\HttpSys\RequestProcessing\RequestHeaders.cs (1)
150void ICollection<KeyValuePair<string, StringValues>>.Clear()
Microsoft.AspNetCore.Server.Kestrel.Core (3)
Internal\Http\HttpHeaders.cs (1)
206void ICollection<KeyValuePair<string, StringValues>>.Clear()
Internal\ServerAddressesCollection.cs (2)
62public void Clear() 135public void Clear()
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
Http1\Http1ConnectionTests.cs (1)
1206public void Clear() => _innerHeaders.Clear();
Microsoft.AspNetCore.Shared.Tests (5)
ClosedGenericMatcherTest.cs (1)
298void ICollection<KeyValuePair<string, object>>.Clear()
src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionary.cs (1)
124public void Clear()
src\Shared\Dictionary\AdaptiveCapacityDictionary.cs (1)
248public void Clear()
src\Shared\HttpSys\RequestProcessing\HeaderCollection.cs (1)
194public void Clear()
src\Shared\HttpSys\RequestProcessing\RequestHeaders.cs (1)
150void ICollection<KeyValuePair<string, StringValues>>.Clear()
Microsoft.Build (20)
Collections\ArrayDictionary.cs (1)
113public void Clear()
Collections\CopyOnWritePropertyDictionary.cs (1)
131public void Clear()
Collections\PropertyDictionary.cs (1)
403void ICollection<KeyValuePair<string, T>>.Clear()
Collections\ReadOnlyConvertingDictionary.cs (1)
139public void Clear()
Collections\RetrievableEntryHashSet\RetrievableEntryHashSet.cs (2)
257public void ClearClear()
Construction\ProjectElementContainer.cs (1)
832public void Clear() => ErrorUtilities.ThrowInvalidOperation("OM_NotSupportedReadOnlyCollection");
CopyOnWriteDictionary.cs (1)
264public void Clear()
Instance\ImmutableProjectCollections\ImmutableElementCollectionConverter.cs (3)
53public void ClearClear() => throw new NotSupportedException(); 127public void Clear() => throw new NotSupportedException();
Instance\ImmutableProjectCollections\ImmutableGlobalPropertiesCollectionConverter.cs (3)
74public void ClearClear() => throw new NotSupportedException(); 177public void Clear() => throw new NotSupportedException();
Instance\ImmutableProjectCollections\ImmutableItemDefinitionsListConverter.cs (1)
75public void Clear() => throw new NotSupportedException();
Instance\ImmutableProjectCollections\ImmutableItemDictionary.cs (1)
198public void Clear() => throw new NotSupportedException();
Instance\ImmutableProjectCollections\ImmutableStringValuedListConverter.cs (1)
35public void Clear() => throw new NotSupportedException();
ReadOnlyCollection.cs (1)
107public void Clear()
ReadOnlyEmptyCollection.cs (1)
93public void Clear()
ReadOnlyEmptyDictionary.cs (1)
225public void Clear()
Microsoft.Build.Framework (14)
ImmutableSegmentedDictionary`2.cs (1)
366void ICollection<KeyValuePair<TKey, TValue>>.Clear()
ImmutableSegmentedDictionary`2+Builder.cs (1)
121public void Clear()
ImmutableSegmentedDictionary`2+Builder+KeyCollection.cs (1)
37public void Clear()
ImmutableSegmentedDictionary`2+Builder+ValueCollection.cs (1)
37public void Clear()
ImmutableSegmentedDictionary`2+KeyCollection.cs (1)
51void ICollection<TKey>.Clear()
ImmutableSegmentedDictionary`2+ValueCollection.cs (1)
51void ICollection<TValue>.Clear()
ImmutableSegmentedList`1.cs (1)
652void ICollection<T>.Clear()
ImmutableSegmentedList`1+Builder.cs (1)
71public void Clear()
ImmutableSegmentedList`1+ValueBuilder.cs (1)
104public void Clear()
SegmentedArray`1.cs (1)
212void ICollection<T>.Clear()
SegmentedDictionary`2.cs (3)
231public void Clear() 1308void ICollection<TKey>.Clear() 1514void ICollection<TValue>.Clear()
SegmentedList`1.cs (1)
313public void Clear()
Microsoft.Build.Tasks.Core (4)
CopyOnWriteDictionary.cs (1)
264public void Clear()
ReadOnlyCollection.cs (1)
107public void Clear()
ReadOnlyEmptyCollection.cs (1)
93public void Clear()
ReadOnlyEmptyDictionary.cs (1)
225public void Clear()
Microsoft.Build.Utilities.Core (3)
CopyOnWriteDictionary.cs (1)
264public void Clear()
ReadOnlyEmptyCollection.cs (1)
93public void Clear()
ReadOnlyEmptyDictionary.cs (1)
225public void Clear()
Microsoft.CodeAnalysis (26)
Collections\IdentifierCollection.Collection.cs (1)
84public void Clear()
Collections\UnionCollection.cs (1)
76public void Clear()
InternalUtilities\ConcurrentSet.cs (1)
111public void Clear()
InternalUtilities\SpecializedCollections.Empty.Collection.cs (1)
27public void Clear()
InternalUtilities\SpecializedCollections.ReadOnly.Collection.cs (1)
27public void Clear()
InternalUtilities\SpecializedCollections.Singleton.Collection`1.cs (1)
29public void Clear()
src\Dependencies\Collections\ImmutableSegmentedDictionary`2.cs (1)
357void ICollection<KeyValuePair<TKey, TValue>>.Clear()
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+Builder.cs (1)
82public void Clear()
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+Builder+KeyCollection.cs (1)
37public void Clear()
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+Builder+ValueCollection.cs (1)
37public void Clear()
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+KeyCollection.cs (1)
51void ICollection<TKey>.Clear()
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
128public void Clear()
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+ValueCollection.cs (1)
51void ICollection<TValue>.Clear()
src\Dependencies\Collections\ImmutableSegmentedHashSet`1.cs (1)
386void ICollection<T>.Clear()
src\Dependencies\Collections\ImmutableSegmentedHashSet`1+Builder.cs (1)
41public void Clear()
src\Dependencies\Collections\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
84public void Clear()
src\Dependencies\Collections\ImmutableSegmentedList`1.cs (1)
652void ICollection<T>.Clear()
src\Dependencies\Collections\ImmutableSegmentedList`1+Builder.cs (1)
71public void Clear()
src\Dependencies\Collections\ImmutableSegmentedList`1+ValueBuilder.cs (1)
104public void Clear()
src\Dependencies\Collections\SegmentedArray`1.cs (1)
209void ICollection<T>.Clear()
src\Dependencies\Collections\SegmentedDictionary`2.cs (3)
294public void Clear() 1344void ICollection<TKey>.Clear() 1558void ICollection<TValue>.Clear()
src\Dependencies\Collections\SegmentedHashSet`1.cs (1)
197public void Clear()
src\Dependencies\Collections\SegmentedList`1.cs (1)
384public void Clear()
src\Dependencies\PooledObjects\ArrayBuilder.cs (1)
187public void Clear()
Microsoft.CodeAnalysis.CodeStyle (24)
src\Compilers\Core\Portable\InternalUtilities\ConcurrentSet.cs (1)
111public void Clear()
src\Compilers\Core\Portable\InternalUtilities\SpecializedCollections.Empty.Collection.cs (1)
27public void Clear()
src\Compilers\Core\Portable\InternalUtilities\SpecializedCollections.ReadOnly.Collection.cs (1)
27public void Clear()
src\Compilers\Core\Portable\InternalUtilities\SpecializedCollections.Singleton.Collection`1.cs (1)
29public void Clear()
src\Dependencies\Collections\ImmutableSegmentedDictionary`2.cs (1)
357void ICollection<KeyValuePair<TKey, TValue>>.Clear()
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+Builder.cs (1)
82public void Clear()
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+Builder+KeyCollection.cs (1)
37public void Clear()
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+Builder+ValueCollection.cs (1)
37public void Clear()
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+KeyCollection.cs (1)
51void ICollection<TKey>.Clear()
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
128public void Clear()
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+ValueCollection.cs (1)
51void ICollection<TValue>.Clear()
src\Dependencies\Collections\ImmutableSegmentedHashSet`1.cs (1)
386void ICollection<T>.Clear()
src\Dependencies\Collections\ImmutableSegmentedHashSet`1+Builder.cs (1)
41public void Clear()
src\Dependencies\Collections\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
84public void Clear()
src\Dependencies\Collections\ImmutableSegmentedList`1.cs (1)
652void ICollection<T>.Clear()
src\Dependencies\Collections\ImmutableSegmentedList`1+Builder.cs (1)
71public void Clear()
src\Dependencies\Collections\ImmutableSegmentedList`1+ValueBuilder.cs (1)
104public void Clear()
src\Dependencies\Collections\SegmentedArray`1.cs (1)
209void ICollection<T>.Clear()
src\Dependencies\Collections\SegmentedDictionary`2.cs (3)
294public void Clear() 1344void ICollection<TKey>.Clear() 1558void ICollection<TValue>.Clear()
src\Dependencies\Collections\SegmentedHashSet`1.cs (1)
197public void Clear()
src\Dependencies\Collections\SegmentedList`1.cs (1)
384public void Clear()
src\Dependencies\PooledObjects\ArrayBuilder.cs (1)
187public void Clear()
Microsoft.CodeAnalysis.Collections.Package (19)
ImmutableSegmentedDictionary`2.cs (1)
357void ICollection<KeyValuePair<TKey, TValue>>.Clear()
ImmutableSegmentedDictionary`2+Builder.cs (1)
82public void Clear()
ImmutableSegmentedDictionary`2+Builder+KeyCollection.cs (1)
37public void Clear()
ImmutableSegmentedDictionary`2+Builder+ValueCollection.cs (1)
37public void Clear()
ImmutableSegmentedDictionary`2+KeyCollection.cs (1)
51void ICollection<TKey>.Clear()
ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
128public void Clear()
ImmutableSegmentedDictionary`2+ValueCollection.cs (1)
51void ICollection<TValue>.Clear()
ImmutableSegmentedHashSet`1.cs (1)
386void ICollection<T>.Clear()
ImmutableSegmentedHashSet`1+Builder.cs (1)
41public void Clear()
ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
84public void Clear()
ImmutableSegmentedList`1.cs (1)
652void ICollection<T>.Clear()
ImmutableSegmentedList`1+Builder.cs (1)
71public void Clear()
ImmutableSegmentedList`1+ValueBuilder.cs (1)
104public void Clear()
SegmentedArray`1.cs (1)
209void ICollection<T>.Clear()
SegmentedDictionary`2.cs (3)
294public void Clear() 1344void ICollection<TKey>.Clear() 1558void ICollection<TValue>.Clear()
SegmentedHashSet`1.cs (1)
197public void Clear()
SegmentedList`1.cs (1)
384public void Clear()
Microsoft.CodeAnalysis.InteractiveHost (1)
src\Dependencies\PooledObjects\ArrayBuilder.cs (1)
187public void Clear()
Microsoft.CodeAnalysis.PooledObjects.Package (1)
ArrayBuilder.cs (1)
187public void Clear()
Microsoft.CodeAnalysis.Scripting (1)
Hosting\SynchronizedList.cs (1)
57public void Clear()
Microsoft.CodeAnalysis.UnitTests (1)
Collections\List\SegmentedList.Generic.Tests.AddRange.cs (1)
160public void Clear() => throw new NotImplementedException();
Microsoft.CodeAnalysis.Workspaces (24)
src\Compilers\Core\Portable\InternalUtilities\ConcurrentSet.cs (1)
111public void Clear()
src\Compilers\Core\Portable\InternalUtilities\SpecializedCollections.Empty.Collection.cs (1)
27public void Clear()
src\Compilers\Core\Portable\InternalUtilities\SpecializedCollections.ReadOnly.Collection.cs (1)
27public void Clear()
src\Compilers\Core\Portable\InternalUtilities\SpecializedCollections.Singleton.Collection`1.cs (1)
29public void Clear()
src\Dependencies\Collections\ImmutableSegmentedDictionary`2.cs (1)
357void ICollection<KeyValuePair<TKey, TValue>>.Clear()
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+Builder.cs (1)
82public void Clear()
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+Builder+KeyCollection.cs (1)
37public void Clear()
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+Builder+ValueCollection.cs (1)
37public void Clear()
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+KeyCollection.cs (1)
51void ICollection<TKey>.Clear()
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
128public void Clear()
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+ValueCollection.cs (1)
51void ICollection<TValue>.Clear()
src\Dependencies\Collections\ImmutableSegmentedHashSet`1.cs (1)
386void ICollection<T>.Clear()
src\Dependencies\Collections\ImmutableSegmentedHashSet`1+Builder.cs (1)
41public void Clear()
src\Dependencies\Collections\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
84public void Clear()
src\Dependencies\Collections\ImmutableSegmentedList`1.cs (1)
652void ICollection<T>.Clear()
src\Dependencies\Collections\ImmutableSegmentedList`1+Builder.cs (1)
71public void Clear()
src\Dependencies\Collections\ImmutableSegmentedList`1+ValueBuilder.cs (1)
104public void Clear()
src\Dependencies\Collections\SegmentedArray`1.cs (1)
209void ICollection<T>.Clear()
src\Dependencies\Collections\SegmentedDictionary`2.cs (3)
294public void Clear() 1344void ICollection<TKey>.Clear() 1558void ICollection<TValue>.Clear()
src\Dependencies\Collections\SegmentedHashSet`1.cs (1)
197public void Clear()
src\Dependencies\Collections\SegmentedList`1.cs (1)
384public void Clear()
src\Dependencies\PooledObjects\ArrayBuilder.cs (1)
187public void Clear()
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (24)
src\Compilers\Core\Portable\InternalUtilities\ConcurrentSet.cs (1)
111public void Clear()
src\Compilers\Core\Portable\InternalUtilities\SpecializedCollections.Empty.Collection.cs (1)
27public void Clear()
src\Compilers\Core\Portable\InternalUtilities\SpecializedCollections.ReadOnly.Collection.cs (1)
27public void Clear()
src\Compilers\Core\Portable\InternalUtilities\SpecializedCollections.Singleton.Collection`1.cs (1)
29public void Clear()
src\Dependencies\Collections\ImmutableSegmentedDictionary`2.cs (1)
357void ICollection<KeyValuePair<TKey, TValue>>.Clear()
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+Builder.cs (1)
82public void Clear()
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+Builder+KeyCollection.cs (1)
37public void Clear()
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+Builder+ValueCollection.cs (1)
37public void Clear()
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+KeyCollection.cs (1)
51void ICollection<TKey>.Clear()
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
128public void Clear()
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+ValueCollection.cs (1)
51void ICollection<TValue>.Clear()
src\Dependencies\Collections\ImmutableSegmentedHashSet`1.cs (1)
386void ICollection<T>.Clear()
src\Dependencies\Collections\ImmutableSegmentedHashSet`1+Builder.cs (1)
41public void Clear()
src\Dependencies\Collections\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
84public void Clear()
src\Dependencies\Collections\ImmutableSegmentedList`1.cs (1)
652void ICollection<T>.Clear()
src\Dependencies\Collections\ImmutableSegmentedList`1+Builder.cs (1)
71public void Clear()
src\Dependencies\Collections\ImmutableSegmentedList`1+ValueBuilder.cs (1)
104public void Clear()
src\Dependencies\Collections\SegmentedArray`1.cs (1)
209void ICollection<T>.Clear()
src\Dependencies\Collections\SegmentedDictionary`2.cs (3)
294public void Clear() 1344void ICollection<TKey>.Clear() 1558void ICollection<TValue>.Clear()
src\Dependencies\Collections\SegmentedHashSet`1.cs (1)
197public void Clear()
src\Dependencies\Collections\SegmentedList`1.cs (1)
384public void Clear()
src\Dependencies\PooledObjects\ArrayBuilder.cs (1)
187public void Clear()
Microsoft.Extensions.AI (2)
src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (1)
48void ICollection<KeyValuePair<TKey, TValue>>.Clear()
src\Shared\EmptyCollections\EmptyReadOnlyList.cs (1)
37void ICollection<T>.Clear()
Microsoft.Extensions.AI.Abstractions (4)
AdditionalPropertiesDictionary{TValue}.cs (1)
114public void Clear() => _dictionary.Clear();
Embeddings\GeneratedEmbeddings.cs (1)
69public void Clear() => _embeddings.Clear();
src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (1)
48void ICollection<KeyValuePair<TKey, TValue>>.Clear()
src\Shared\EmptyCollections\EmptyReadOnlyList.cs (1)
37void ICollection<T>.Clear()
Microsoft.Extensions.AI.AzureAIInference (2)
src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (1)
48void ICollection<KeyValuePair<TKey, TValue>>.Clear()
src\Shared\EmptyCollections\EmptyReadOnlyList.cs (1)
37void ICollection<T>.Clear()
Microsoft.Extensions.AI.Ollama (2)
src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (1)
48void ICollection<KeyValuePair<TKey, TValue>>.Clear()
src\Shared\EmptyCollections\EmptyReadOnlyList.cs (1)
37void ICollection<T>.Clear()
Microsoft.Extensions.AI.OpenAI (2)
src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (1)
48void ICollection<KeyValuePair<TKey, TValue>>.Clear()
src\Shared\EmptyCollections\EmptyReadOnlyList.cs (1)
37void ICollection<T>.Clear()
Microsoft.Extensions.Configuration (2)
ConfigurationManager.cs (2)
216public void Clear() 303public void Clear()
Microsoft.Extensions.DependencyInjection.Abstractions (1)
ServiceCollection.cs (1)
42public void Clear()
Microsoft.Extensions.Http (1)
DependencyInjection\DefaultHttpClientBuilderServiceCollection.cs (1)
66public void Clear() => _services.Clear();
Microsoft.Extensions.Http.Diagnostics (2)
src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (1)
48void ICollection<KeyValuePair<TKey, TValue>>.Clear()
src\Shared\EmptyCollections\EmptyReadOnlyList.cs (1)
37void ICollection<T>.Clear()
Microsoft.Extensions.Primitives (1)
StringValues.cs (1)
396void ICollection<string?>.Clear() => throw new NotSupportedException();
Microsoft.Gen.ComplianceReports.Unit.Tests (2)
src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (1)
48void ICollection<KeyValuePair<TKey, TValue>>.Clear()
src\Shared\EmptyCollections\EmptyReadOnlyList.cs (1)
37void ICollection<T>.Clear()
Microsoft.Gen.ContextualOptions.Unit.Tests (2)
src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (1)
48void ICollection<KeyValuePair<TKey, TValue>>.Clear()
src\Shared\EmptyCollections\EmptyReadOnlyList.cs (1)
37void ICollection<T>.Clear()
Microsoft.Gen.Logging.Unit.Tests (2)
src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (1)
48void ICollection<KeyValuePair<TKey, TValue>>.Clear()
src\Shared\EmptyCollections\EmptyReadOnlyList.cs (1)
37void ICollection<T>.Clear()
Microsoft.Gen.MetadataExtractor.Unit.Tests (2)
src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (1)
48void ICollection<KeyValuePair<TKey, TValue>>.Clear()
src\Shared\EmptyCollections\EmptyReadOnlyList.cs (1)
37void ICollection<T>.Clear()
Microsoft.Gen.Metrics.Unit.Tests (2)
src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (1)
48void ICollection<KeyValuePair<TKey, TValue>>.Clear()
src\Shared\EmptyCollections\EmptyReadOnlyList.cs (1)
37void ICollection<T>.Clear()
Microsoft.Gen.MetricsReports.Unit.Tests (2)
src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (1)
48void ICollection<KeyValuePair<TKey, TValue>>.Clear()
src\Shared\EmptyCollections\EmptyReadOnlyList.cs (1)
37void ICollection<T>.Clear()
Microsoft.Interop.SourceGeneration (1)
ValueEqualityImmutableDictionary.cs (1)
61public void Clear() => ((ICollection<KeyValuePair<T, U>>)Map).Clear();
Microsoft.Maui (3)
Hosting\Internal\FontCollection.cs (1)
26 public void Clear() => _descriptors.Clear();
Hosting\Internal\MauiServiceCollection.cs (1)
33 public void Clear()
Primitives\LockableObservableListWrapper.cs (1)
72 public void Clear()
Microsoft.Maui.Controls (25)
DefinitionCollection.cs (1)
24 public void Clear()
Element\Element.cs (1)
1092 void ICollection<Element>.Clear() => throw new NotSupportedException();
Interactivity\TriggerBase.cs (1)
149 public void Clear()
Items\SelectionList.cs (1)
46 public void Clear()
Layout\Layout.cs (2)
172 public void ClearClear()
LegacyLayouts\LayoutOfT.cs (1)
54 void ICollection<IView>.Clear()
Menu\MenuBar.cs (1)
62 public void Clear()
Menu\MenuBarItem.cs (1)
68 public void Clear()
Menu\MenuFlyout.cs (1)
50 public void Clear()
Menu\MenuFlyoutSubItem.cs (1)
37 public void Clear()
NavigationStepRequest.cs (1)
56 public void Clear()
ObservableWrapper.cs (1)
38 public void Clear()
OrderedDictionary.cs (2)
113 public void Clear() 381 public void Clear()
ReadOnlyCastingList.cs (1)
93 public void Clear() => _list.Clear();
ResourceDictionary.cs (1)
161 public void Clear()
Shell\MenuItemCollection.cs (1)
36 public void Clear() => _inner.Clear();
Shell\ShellElementCollection.cs (1)
108 public void Clear()
Shell\ShellNavigationQueryParameters.cs (1)
71 public void Clear()
SwipeView\SwipeItems.cs (1)
77 public void Clear()
SynchronizedList.cs (1)
23 public void Clear()
TableView\TableSection.cs (1)
42 public void Clear()
VisualStateManager.cs (2)
255 public void Clear() 752 public void Clear()
Microsoft.Maui.Controls.Maps (2)
HandlerImpl\Polygon.Impl.cs (1)
56 public void Clear()
HandlerImpl\Polyline.Impl.cs (1)
54 public void Clear()
Microsoft.ML.Core (1)
Utilities\Tree.cs (1)
194public void Clear()
Microsoft.ML.SearchSpace (3)
Option\NestOption.cs (1)
104public void Clear()
Parameter.cs (1)
303public void Clear()
SearchSpace.cs (1)
341public void Clear()
Microsoft.ML.TorchSharp (1)
Utils\DefaultDictionary.cs (1)
60public void Clear()
MSBuild (3)
CopyOnWriteDictionary.cs (1)
264public void Clear()
ReadOnlyEmptyCollection.cs (1)
93public void Clear()
ReadOnlyEmptyDictionary.cs (1)
225public void Clear()
MSBuildTaskHost (4)
CopyOnWriteDictionary.cs (1)
264public void Clear()
Immutable\ImmutableDictionary.cs (1)
272void ICollection<KeyValuePair<K, V>>.Clear()
ReadOnlyEmptyCollection.cs (1)
93public void Clear()
ReadOnlyEmptyDictionary.cs (1)
225public void Clear()
PresentationCore (41)
MS\Internal\FontCache\FontFaceLayoutInfo.cs (1)
705public void Clear()
MS\Internal\FontFace\TypefaceCollection.cs (1)
41public void Clear()
MS\Internal\PartialArray.cs (1)
70public void Clear()
MS\Internal\TextFormatting\ThousandthOfEmRealDoubles.cs (1)
139public void Clear()
MS\Internal\TextFormatting\ThousandthOfEmRealPoints.cs (1)
97public void Clear()
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\CharacterBuffer.cs (1)
101public void Clear()
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\PartialList.cs (1)
118public void Clear()
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SequentialUshortCollection.cs (1)
25public void Clear()
System\Windows\FreezableCollection.cs (1)
146public void Clear()
System\Windows\Generated\TextDecorationCollection.cs (1)
75public void Clear()
System\Windows\Media\Animation\Generated\TimelineCollection.cs (1)
71public void Clear()
System\Windows\Media\Animation\TimelineClockCollection.cs (1)
61public void Clear()
System\Windows\Media\CharacterMetricsDictionary.cs (1)
96public void Clear()
System\Windows\Media\CultureSpecificStringDictionary.cs (1)
89public void Clear()
System\Windows\Media\Effects\Generated\BitmapEffectCollection.cs (1)
74public void Clear()
System\Windows\Media\FamilyMapCollection.cs (1)
57public void Clear()
System\Windows\Media\FamilyTypefaceCollection.cs (1)
69public void Clear()
System\Windows\Media\Fonts.cs (1)
295public void Clear()
System\Windows\Media\Generated\DoubleCollection.cs (1)
79public void Clear()
System\Windows\Media\Generated\DrawingCollection.cs (1)
73public void Clear()
System\Windows\Media\Generated\GeneralTransformCollection.cs (1)
72public void Clear()
System\Windows\Media\Generated\GeometryCollection.cs (1)
73public void Clear()
System\Windows\Media\Generated\GradientStopCollection.cs (1)
73public void Clear()
System\Windows\Media\Generated\Int32Collection.cs (1)
78public void Clear()
System\Windows\Media\Generated\PathFigureCollection.cs (1)
78public void Clear()
System\Windows\Media\Generated\PathSegmentCollection.cs (1)
72public void Clear()
System\Windows\Media\Generated\PointCollection.cs (1)
78public void Clear()
System\Windows\Media\Generated\TextEffectCollection.cs (1)
72public void Clear()
System\Windows\Media\Generated\TransformCollection.cs (1)
73public void Clear()
System\Windows\Media\Generated\VectorCollection.cs (1)
78public void Clear()
System\Windows\Media\GlyphRun.cs (2)
2128public void Clear() 2230public void Clear()
System\Windows\Media\GlyphTypeface.cs (2)
1798public void Clear() 1878public void Clear()
System\Windows\Media3D\Generated\GeneralTransform3DCollection.cs (1)
72public void Clear()
System\Windows\Media3D\Generated\MaterialCollection.cs (1)
73public void Clear()
System\Windows\Media3D\Generated\Model3DCollection.cs (1)
73public void Clear()
System\Windows\Media3D\Generated\Point3DCollection.cs (1)
79public void Clear()
System\Windows\Media3D\Generated\Transform3DCollection.cs (1)
73public void Clear()
System\Windows\Media3D\Generated\Vector3DCollection.cs (1)
79public void Clear()
System\Windows\Media3D\Visual3DCollection.cs (1)
106public void Clear()
PresentationFramework (19)
MS\Internal\Annotations\ObservableDictionary.cs (1)
74public void Clear()
MS\Internal\Data\RBTree.cs (1)
556public void Clear()
MS\Internal\Documents\ContentElementCollection.cs (1)
158abstract public void Clear();
MS\Internal\ListOfObject.cs (1)
60void ICollection<object>.Clear()
MS\Internal\WeakDictionary.cs (3)
41public void Clear() 128public void Clear() 271public void Clear()
MS\Internal\WeakHashSet.cs (1)
28public void Clear()
System\Windows\Controls\ColumnDefinition.cs (1)
147public void Clear() // void ICollection<T>.Clear();
System\Windows\Controls\CustomDictionarySources.cs (1)
153void ICollection<Uri>.Clear()
System\Windows\Controls\RowDefinition.cs (1)
142public void Clear() // void ICollection<T>.Clear();
System\Windows\Controls\VirtualizedCellInfoCollection.cs (1)
99public void Clear()
System\Windows\Data\XmlNamespaceMappingCollection.cs (1)
103public void Clear()
System\Windows\Documents\TableCellCollection.cs (1)
128public void Clear()
System\Windows\Documents\TableColumnCollection.cs (1)
128public void Clear()
System\Windows\Documents\TableRowCollection.cs (1)
128public void Clear()
System\Windows\Documents\TableRowGroupCollection.cs (1)
128public void Clear()
System\Windows\Documents\TextElementCollection.cs (1)
96public void Clear()
System\Windows\TriggerActionCollection.cs (1)
71public void Clear()
Shared (2)
EmptyCollections\EmptyReadonlyDictionary.cs (1)
48void ICollection<KeyValuePair<TKey, TValue>>.Clear()
EmptyCollections\EmptyReadOnlyList.cs (1)
37void ICollection<T>.Clear()
Shared.Tests (1)
EmptyCollections\EmptyCollectionExtensionsTests.cs (1)
97public void Clear()
System.Collections (11)
System\Collections\Generic\LinkedList.cs (1)
174public void Clear()
System\Collections\Generic\OrderedDictionary.cs (3)
534public void Clear() 1601void ICollection<TKey>.Clear() => throw new NotSupportedException(); 1762void ICollection<TValue>.Clear() => throw new NotSupportedException();
System\Collections\Generic\SortedDictionary.cs (3)
196public void Clear() 604void ICollection<TKey>.Clear() 765void ICollection<TValue>.Clear()
System\Collections\Generic\SortedList.cs (3)
389public void Clear() 1036public void Clear() 1150public void Clear()
System\Collections\Generic\SortedSet.cs (1)
500public virtual void Clear()
System.Collections.Immutable (15)
System\Collections\Frozen\FrozenDictionary.cs (1)
621void ICollection<KeyValuePair<TKey, TValue>>.Clear() => throw new NotSupportedException();
System\Collections\Frozen\FrozenSet.cs (1)
419void ICollection<T>.Clear() => throw new NotSupportedException();
System\Collections\Immutable\ImmutableArray_1.Builder.cs (1)
243public void Clear()
System\Collections\Immutable\ImmutableArray_1.cs (1)
1058void ICollection<T>.Clear()
System\Collections\Immutable\ImmutableDictionary_2.Builder.cs (1)
618public void Clear()
System\Collections\Immutable\ImmutableDictionary_2.cs (1)
599void ICollection<KeyValuePair<TKey, TValue>>.Clear()
System\Collections\Immutable\ImmutableHashSet_1.Builder.cs (1)
265public void Clear()
System\Collections\Immutable\ImmutableHashSet_1.cs (1)
515void ICollection<T>.Clear()
System\Collections\Immutable\ImmutableList_1.Builder.cs (1)
189public void Clear()
System\Collections\Immutable\ImmutableList_1.cs (1)
961void ICollection<T>.Clear() => throw new NotSupportedException();
System\Collections\Immutable\ImmutableSortedDictionary_2.Builder.cs (1)
491public void Clear()
System\Collections\Immutable\ImmutableSortedDictionary_2.cs (1)
511void ICollection<KeyValuePair<TKey, TValue>>.Clear()
System\Collections\Immutable\ImmutableSortedSet_1.Builder.cs (1)
350public void Clear()
System\Collections\Immutable\ImmutableSortedSet_1.cs (1)
732void ICollection<T>.Clear()
System\Collections\Immutable\KeysOrValuesCollectionAccessor.cs (1)
77public void Clear()
System.ComponentModel.Composition (3)
Microsoft\Internal\Collections\CollectionServices.CollectionOfObject.cs (2)
51public void Clear() 106public void Clear()
System\ComponentModel\Composition\Hosting\ComposablePartCatalogCollection.cs (1)
85public void Clear()
System.Composition.Hosting (1)
System\Composition\Hosting\Core\CycleBreakingMetadataDictionary.cs (1)
80public void Clear()
System.Data.Common (1)
System\Data\Common\DbBatchCommandCollection.cs (1)
17public abstract void Clear();
System.Diagnostics.DiagnosticSource (2)
System\Diagnostics\ActivityTagsCollection.cs (1)
184public void Clear() => _list.Clear();
System\Diagnostics\Metrics\TagList.netcore.cs (1)
225public void Clear() =>
System.Diagnostics.Process (1)
System\Collections\Specialized\DictionaryWrapper.cs (1)
48public void Clear() => _contents.Clear();
System.DirectoryServices.AccountManagement (2)
artifacts\obj\System.DirectoryServices.AccountManagement\Debug\net10.0\System.DirectoryServices.AccountManagement.notsupported.cs (2)
241public void Clear() { throw new System.PlatformNotSupportedException(System.SR.DirectoryServicesAccountManagement_PlatformNotSupported); } 369public void Clear() { throw new System.PlatformNotSupportedException(System.SR.DirectoryServicesAccountManagement_PlatformNotSupported); }
System.IO.FileSystem.Watcher (1)
System\IO\FileSystemWatcher.cs (1)
748public void Clear() => Items = Array.Empty<string>();
System.Linq (6)
System\Linq\Grouping.cs (1)
405void ICollection<TElement>.Clear() => ThrowHelper.ThrowNotSupportedException();
System\Linq\Lookup.cs (2)
296void ICollection<IGrouping<TKey, TElement>>.Clear() => throw new NotSupportedException(); 323public void Clear() => throw new NotSupportedException();
System\Linq\Range.SpeedOpt.cs (1)
108void ICollection<int>.Clear() => ThrowHelper.ThrowNotSupportedException();
System\Linq\Repeat.SpeedOpt.cs (1)
112void ICollection<TResult>.Clear() => ThrowHelper.ThrowNotSupportedException();
System\Linq\SkipTake.SpeedOpt.cs (1)
192void ICollection<TSource>.Clear() => ThrowHelper.ThrowNotSupportedException();
System.Linq.AsyncEnumerable (1)
System\Linq\GroupBy.cs (1)
419void ICollection<TElement>.Clear() => throw new NotSupportedException();
System.Linq.Expressions (6)
System\Dynamic\ExpandoObject.cs (3)
383public void Clear() 522public void Clear() 678void ICollection<KeyValuePair<string, object?>>.Clear()
System\Dynamic\Utils\ListArgumentProvider.cs (1)
81public void Clear()
System\Linq\Expressions\BlockExpression.cs (1)
751public void Clear()
System\Runtime\CompilerServices\ReadOnlyCollectionBuilder.cs (1)
203public void Clear()
System.Linq.Parallel (1)
System\Linq\Parallel\QueryOperators\QueryResults.cs (1)
116void ICollection<T>.Clear()
System.Net.Http (3)
System\Net\Http\Headers\HttpHeaderValueCollection.cs (1)
70public void Clear()
System\Net\Http\Headers\ObjectCollection.cs (1)
84public void Clear()
System\Net\Http\HttpRequestOptions.cs (1)
39void ICollection<KeyValuePair<string, object?>>.Clear() => Options.Clear();
System.Net.HttpListener (1)
System\Net\HttpListenerPrefixCollection.cs (1)
89public void Clear() => _httpListener.RemoveAll(true);
System.Net.NetworkInformation (4)
System\Net\NetworkInformation\GatewayIPAddressInformationCollection.cs (1)
81public virtual void Clear()
System\Net\NetworkInformation\IPAddressInformationCollection.cs (1)
75public virtual void Clear()
System\Net\NetworkInformation\MulticastIPAddressInformationCollection.cs (1)
75public virtual void Clear()
System\Net\NetworkInformation\UnicastIPAddressInformationCollection.cs (1)
76public virtual void Clear()
System.Net.Primitives (2)
System\Net\CookieCollection.cs (1)
92public void Clear()
System\Net\NetworkInformation\IPAddressCollection.cs (1)
68public virtual void Clear()
System.Private.CoreLib (13)
src\libraries\System.Private.CoreLib\src\System\ArraySegment.cs (1)
236void ICollection<T>.Clear() => ThrowHelper.ThrowNotSupportedException();
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Dictionary.cs (3)
280public void Clear() 1933void ICollection<TKey>.Clear() => 2134void ICollection<TValue>.Clear() =>
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\HashSet.cs (1)
197public void Clear()
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\List.cs (1)
320public void Clear()
src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\Collection.cs (1)
66public void Clear()
src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\ReadOnlyCollection.cs (1)
71void ICollection<T>.Clear()
src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\ReadOnlyDictionary.cs (3)
90void ICollection<KeyValuePair<TKey, TValue>>.Clear() 263void ICollection<TKey>.Clear() 319void ICollection<TValue>.Clear()
src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\ReadOnlySet.cs (1)
99void ICollection<T>.Clear() => throw new NotSupportedException();
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\EventPayload.cs (1)
59public void Clear()
System.Private.Xml (4)
System\Xml\Xsl\ListBase.cs (1)
94public virtual void Clear()
System\Xml\Xsl\QIL\QilNode.cs (1)
166public virtual void Clear()
System\Xml\Xsl\Runtime\XmlQuerySequence.cs (2)
190void ICollection<T>.Clear() 686void ICollection<XPathItem>.Clear()
System.Security.Cryptography.Cose (1)
System\Security\Cryptography\Cose\CoseHeaderMap.cs (1)
191public void Clear()
System.Security.Principal.Windows (1)
artifacts\obj\System.Security.Principal.Windows\Debug\net10.0\System.Security.Principal.Windows.notsupported.cs (1)
50public void Clear() { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_Principal); }
System.ServiceModel.Primitives (2)
netstandard.cs (2)
25public void Clear() { } 1736public void Clear() { }
System.Speech (1)
artifacts\obj\System.Speech\Debug\net10.0\System.Speech.notsupported.cs (1)
312void System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String,System.Speech.Recognition.SemanticValue>>.Clear() { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_SystemSpeech); }
System.Text.Json (3)
System\Text\Json\Nodes\JsonArray.IList.cs (1)
32public void Clear()
System\Text\Json\Nodes\JsonObject.IDictionary.cs (1)
54public void Clear()
System\Text\Json\Serialization\ConfigurationList.cs (1)
64public void Clear()
System.Text.RegularExpressions (3)
System\Text\RegularExpressions\CaptureCollection.cs (1)
142void ICollection<Capture>.Clear() =>
System\Text\RegularExpressions\GroupCollection.cs (1)
156void ICollection<Group>.Clear() =>
System\Text\RegularExpressions\MatchCollection.cs (1)
152void ICollection<Match>.Clear() =>
System.Windows.Forms (1)
System\Windows\Forms\Controls\UpDown\NumericUpDownAccelerationCollection.cs (1)
45public void Clear()
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\ListAdapter.cs (1)
31void ICollection<T>.Clear() => _list.Clear();
System.Windows.Forms.Primitives (1)
System\Windows\Forms\NonNullCollection.cs (1)
42public void Clear() => _list.Clear();
System.Windows.Forms.Tests (1)
System\Windows\Forms\ListBindingHelperTests.cs (1)
583public void Clear() => throw new NotImplementedException();
System.Xaml (2)
System\Xaml\NameScope.cs (1)
111public void Clear() => _nameMap = null;
System\Xaml\NameScopeDictionary.cs (1)
261void ICollection<KeyValuePair<string, object>>.Clear()
System.Xaml.Tests (6)
System\Xaml\XamlTypeTests.cs (6)
1827public void ClearClear() => throw new NotImplementedException(); 3113void ICollection<object>.Clear() => throw new NotImplementedException(); 3115void ICollection<int>.Clear() => throw new NotImplementedException(); 3166void ICollection<KeyValuePair<string, int>>.Clear() => throw new NotImplementedException(); 3168void ICollection<KeyValuePair<int, string>>.Clear() => throw new NotImplementedException();
236 references to Clear
ApiExplorerWebSite (1)
ApiExplorerRouteChangeConvention.cs (1)
22action.Selectors.Clear();
Aspire.Dashboard.Tests (1)
Integration\IntegrationTestHelpers.cs (1)
84o.Rules.Clear();
Aspire.Hosting (1)
Dcp\Process\ProcessUtil.cs (1)
39process.StartInfo.Environment.Clear();
Aspire.Hosting.Azure (1)
src\Aspire.Hosting\Dcp\Process\ProcessUtil.cs (1)
39process.StartInfo.Environment.Clear();
Aspire.Hosting.Tests (6)
Dashboard\DashboardResourceTests.cs (6)
87builder.Configuration.Sources.Clear(); 193builder.Configuration.Sources.Clear(); 230builder.Configuration.Sources.Clear(); 262builder.Configuration.Sources.Clear(); 297builder.Configuration.Sources.Clear(); 340builder.Configuration.Sources.Clear();
BasicWebSite (1)
Controllers\AsyncActionsController.cs (1)
214_continuations.Clear();
ControllersFromServicesWebSite (1)
Startup.cs (1)
18.ConfigureApplicationPartManager(manager => manager.ApplicationParts.Clear())
dotnet-razorpagegenerator (1)
Program.cs (1)
64@class.Modifiers.Clear();
dotnet-user-jwts (1)
Commands\ClearCommand.cs (1)
74jwtStore.Jwts.Clear();
dotnet-user-secrets (1)
Internal\SecretsStore.cs (1)
57public void Clear() => _secrets.Clear();
illink (1)
InMemory.FunctionalTests (3)
Http2\Http2ConnectionTests.cs (1)
301public void Clear() => _innerHeaders.Clear();
Http3\Http3ConnectionTests.cs (1)
836public void Clear() => _innerHeaders.Clear();
src\Servers\Kestrel\shared\TransportConnection.cs (1)
59_items?.Clear();
Logging.W3C.Sample (1)
Startup.cs (1)
18logging.AdditionalRequestHeaders.Clear();
Microsoft.Analyzers.Local (1)
ApiLifecycle\Json\JsonObject.cs (1)
85_properties.Clear();
Microsoft.AspNetCore (3)
ForwardedHeadersOptionsSetup.cs (2)
30options.KnownNetworks.Clear(); 31options.KnownProxies.Clear();
WebApplication.cs (1)
249addresses.Clear();
Microsoft.AspNetCore.Authentication.Core.Test (5)
AuthenticationPropertiesTests.cs (5)
175props.Items.Clear(); 189props.Items.Clear(); 203props.Items.Clear(); 217props.Items.Clear(); 235props.Items.Clear();
Microsoft.AspNetCore.Authentication.OAuth (1)
ClaimActionCollection.cs (1)
19public void Clear() => Actions.Clear();
Microsoft.AspNetCore.Authentication.OpenIdConnect (2)
OpenIdConnectConfigureOptions.cs (1)
115listOption.Clear();
OpenIdConnectHandler.cs (1)
599authorizeRequest.Parameters.Clear();
Microsoft.AspNetCore.Authentication.Test (36)
FacebookTests.cs (3)
126o.Scope.Clear(); 156o.Scope.Clear(); 188o.Scope.Clear();
JwtBearerTests.cs (12)
195o.SecurityTokenValidators.Clear(); 285options.SecurityTokenValidators.Clear(); 312options.SecurityTokenValidators.Clear(); 336options.SecurityTokenValidators.Clear(); 356options.SecurityTokenValidators.Clear(); 375options.SecurityTokenValidators.Clear(); 510options.SecurityTokenValidators.Clear(); 536options.SecurityTokenValidators.Clear(); 645options.SecurityTokenValidators.Clear(); 680options.SecurityTokenValidators.Clear(); 717options.SecurityTokenValidators.Clear(); 752options.SecurityTokenValidators.Clear();
JwtBearerTests_Handler.cs (12)
183o.TokenHandlers.Clear(); 269options.TokenHandlers.Clear(); 293options.TokenHandlers.Clear(); 314options.TokenHandlers.Clear(); 331options.TokenHandlers.Clear(); 347options.TokenHandlers.Clear(); 477options.TokenHandlers.Clear(); 500options.TokenHandlers.Clear(); 604options.TokenHandlers.Clear(); 636options.TokenHandlers.Clear(); 670options.TokenHandlers.Clear(); 702options.TokenHandlers.Clear();
MicrosoftAccountTests.cs (3)
138o.Scope.Clear(); 156o.Scope.Clear(); 174o.Scope.Clear();
OAuthTests.cs (3)
178opt.Scope.Clear(); 231opt.Scope.Clear(); 260opt.Scope.Clear();
OpenIdConnect\OpenIdConnectChallengeTests.cs (2)
590opt.Scope.Clear(); 614opt.Scope.Clear();
WsFederation\WsFederationTest_Handler.cs (1)
293options.TokenHandlers.Clear();
Microsoft.AspNetCore.Components (1)
src\Http\Routing\src\Tree\TreeRouteBuilder.cs (1)
307InboundEntries.Clear();
Microsoft.AspNetCore.Components.Server (1)
DependencyInjection\ComponentServiceCollectionExtensions.cs (1)
53options.SupportedProtocols.Clear();
Microsoft.AspNetCore.Components.Web (1)
WebRenderer.cs (1)
129newJsonOptions.TypeInfoResolverChain.Clear();
Microsoft.AspNetCore.Connections.Abstractions (1)
ConnectionItems.cs (1)
91Items.Clear();
Microsoft.AspNetCore.Cors (3)
Infrastructure\CorsPolicyBuilder.cs (3)
162_policy.Origins.Clear(); 173_policy.Methods.Clear(); 184_policy.Headers.Clear();
Microsoft.AspNetCore.Hosting.Tests (2)
GenericWebHostBuilderTests.cs (2)
58configBuilder.Sources.Clear(); 82configBuilder.Sources.Clear();
Microsoft.AspNetCore.Html.Abstractions (2)
HtmlContentBuilder.cs (2)
96Entries.Clear(); 153Entries.Clear();
Microsoft.AspNetCore.Http (2)
Internal\ItemsDictionary.cs (1)
95void ICollection<KeyValuePair<object, object?>>.Clear() => _items?.Clear();
src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionary.cs (1)
126WriteDictionary.Clear();
Microsoft.AspNetCore.Http.Extensions (1)
ResponseExtensions.cs (1)
28response.Headers.Clear();
Microsoft.AspNetCore.HttpLogging.Tests (3)
HttpLoggingMiddlewareTests.cs (2)
271options.CurrentValue.RequestHeaders.Clear(); 1002options.CurrentValue.ResponseHeaders.Clear();
HttpLoggingOptionsTests.cs (1)
58options.RequestHeaders.Clear();
Microsoft.AspNetCore.HttpOverrides.Tests (8)
ForwardedHeadersMiddlewareTest.cs (8)
122options.KnownProxies.Clear(); 123options.KnownNetworks.Clear(); 864options.KnownNetworks.Clear(); 865options.KnownProxies.Clear(); 1063options.KnownProxies.Clear(); 1064options.KnownNetworks.Clear(); 1105options.KnownProxies.Clear(); 1106options.KnownNetworks.Clear();
Microsoft.AspNetCore.HttpsPolicy.Tests (2)
HstsMiddlewareTests.cs (1)
240options.ExcludedHosts.Clear();
HttpsPolicyTests.cs (1)
45options.ExcludedHosts.Clear(); // allowing localhost for testing
Microsoft.AspNetCore.Identity.Specification.Tests (13)
IdentitySpecificationTestBase.cs (3)
167manager.RoleValidators.Clear(); 183manager.RoleValidators.Clear(); 204manager.RoleValidators.Clear();
UserManagerSpecificationTests.cs (10)
180manager.PasswordValidators.Clear(); 358manager.UserValidators.Clear(); 374manager.UserValidators.Clear(); 388manager.UserValidators.Clear(); 438manager.PasswordValidators.Clear(); 453manager.PasswordValidators.Clear(); 473manager.PasswordValidators.Clear(); 487manager.PasswordValidators.Clear(); 526manager.PasswordValidators.Clear(); 542manager.PasswordValidators.Clear();
Microsoft.AspNetCore.Identity.Test (2)
UserManagerTest.cs (2)
986manager.PasswordValidators.Clear(); 996manager.PasswordValidators.Clear();
Microsoft.AspNetCore.JsonPatch.Tests (2)
TestObjectModels\DynamicTestObject.cs (1)
35((IDictionary<string, object>)_dictionary).Clear();
WriteOnceDynamicTestObject.cs (1)
49((IDictionary<string, object>)_dictionary).Clear();
Microsoft.AspNetCore.Mvc.ApiExplorer (1)
EndpointMetadataApiDescriptionProvider.cs (1)
392defaultApiResponseType.ApiResponseFormats.Clear();
Microsoft.AspNetCore.Mvc.Core (4)
ModelBinding\Binders\CollectionModelBinder.cs (1)
476targetCollection.Clear();
ModelBinding\ModelBindingHelper.cs (1)
568collection.Clear();
ModelBinding\PropertyValueSetter.cs (1)
63targetCollection.Clear();
src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionary.cs (1)
126WriteDictionary.Clear();
Microsoft.AspNetCore.Mvc.Core.Test (2)
Filters\FilterFactoryTest.cs (1)
32context => context.Results.Clear(),
Formatters\TextOutputFormatterTests.cs (1)
185formatter.SupportedEncodings.Clear();
Microsoft.AspNetCore.Mvc.FunctionalTests (1)
AntiforgeryMiddlewareTest.cs (1)
274partManager.ApplicationParts.Clear();
Microsoft.AspNetCore.Mvc.IntegrationTests (2)
DictionaryModelBinderIntegrationTest.cs (2)
1577_data.Clear(); 1682_data.Clear();
Microsoft.AspNetCore.Mvc.Razor.Test (3)
RazorViewEngineTest.cs (3)
2083options.ViewLocationFormats.Clear(); 2093options.AreaViewLocationFormats.Clear(); 2103options.PageViewLocationFormats.Clear();
Microsoft.AspNetCore.Mvc.RazorPages.Test (2)
Builder\PageActionEndpointConventionBuilderResourceCollectionExtensionsTest.cs (2)
226apm.FeatureProviders.Clear(); 243feature.ViewDescriptors.Clear();
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
ViewDataDictionary.cs (1)
562_data.Clear();
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (2)
Builder\ControllerActionEndpointConventionBuilderResourceCollectionExtensionsTest.cs (2)
299apm.FeatureProviders.Clear(); 316feature.Controllers.Clear();
Microsoft.AspNetCore.Owin (4)
DictionaryStringArrayWrapper.cs (1)
44void ICollection<KeyValuePair<string, string[]>>.Clear() => Inner.Clear();
DictionaryStringValuesWrapper.cs (1)
89void ICollection<KeyValuePair<string, StringValues>>.Clear() => Inner.Clear();
OwinEnvironment.cs (2)
246_entries.Clear(); 247_context.Items.Clear();
Microsoft.AspNetCore.Razor (1)
TagHelpers\TagHelperAttributeList.cs (1)
200Items.Clear();
Microsoft.AspNetCore.Razor.Runtime (1)
src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionary.cs (1)
126WriteDictionary.Clear();
Microsoft.AspNetCore.Routing (2)
Tree\TreeRouteBuilder.cs (2)
307InboundEntries.Clear(); 309OutboundEntries.Clear();
Microsoft.AspNetCore.Server.HttpSys (5)
MessagePump.cs (2)
69_serverAddresses.Addresses.Clear(); 88_serverAddresses.Addresses.Clear();
src\Shared\HttpSys\RequestProcessing\HeaderCollection.cs (1)
197Store.Clear();
src\Shared\HttpSys\RequestProcessing\RequestHeaders.cs (1)
156Extra.Clear();
UrlPrefixCollection.cs (1)
117_prefixes.Clear();
Microsoft.AspNetCore.Server.IIS (2)
src\Shared\HttpSys\RequestProcessing\HeaderCollection.cs (1)
197Store.Clear();
src\Shared\HttpSys\RequestProcessing\RequestHeaders.cs (1)
156Extra.Clear();
Microsoft.AspNetCore.Server.Kestrel.Core (2)
Internal\AddressBinder.cs (1)
30context.Addresses.Clear();
Internal\Http\HttpProtocol.cs (1)
394RequestTrailers.Clear();
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (6)
Http1\Http1ConnectionTests.cs (1)
1206public void Clear() => _innerHeaders.Clear();
HttpRequestHeadersTests.cs (1)
321headers.Clear();
HttpResponseHeadersTests.cs (4)
252((IHeaderDictionary)responseHeaders).Clear(); 256((IHeaderDictionary)responseHeaders).Clear(); 309Assert.Throws<InvalidOperationException>(() => dictionary.Clear()); 395dictionary.Clear();
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (1)
src\Servers\Kestrel\shared\TransportConnection.cs (1)
59_items?.Clear();
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (1)
src\Servers\Kestrel\shared\TransportConnection.cs (1)
59_items?.Clear();
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (1)
src\Servers\Kestrel\shared\TransportConnection.cs (1)
59_items?.Clear();
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (1)
src\Servers\Kestrel\shared\TransportConnection.cs (1)
59_items?.Clear();
Microsoft.AspNetCore.Shared.Tests (3)
src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionary.cs (1)
126WriteDictionary.Clear();
src\Shared\HttpSys\RequestProcessing\HeaderCollection.cs (1)
197Store.Clear();
src\Shared\HttpSys\RequestProcessing\RequestHeaders.cs (1)
156Extra.Clear();
Microsoft.AspNetCore.SignalR.Tests (1)
AddSignalRTests.cs (1)
81options.SupportedProtocols.Clear();
Microsoft.AspNetCore.Tests (3)
WebApplicationTests.cs (3)
1191config.Sources.Clear(); 1226config.Sources.Clear(); 2282((IConfigurationBuilder)builder.Configuration).Sources.Clear();
Microsoft.AspNetCore.WebSockets.Tests (1)
KestrelWebSocketHelpers.cs (1)
42ct.Response.Headers.Clear();
Microsoft.Build (6)
BackEnd\Components\Caching\ConfigCache.cs (1)
354_configurations.Clear();
BackEnd\Components\RequestBuilder\TargetUpToDateChecker.cs (2)
139_uniqueTargetInputs.Clear(); 140_uniqueTargetOutputs.Clear();
Collections\ItemDictionary.cs (1)
140list.Clear();
Collections\PropertyDictionary.cs (1)
232((ICollection<T>)_properties).Clear();
Definition\Project.cs (1)
4283_globalPropertiesToTreatAsLocal?.Clear();
Microsoft.Build.Engine.UnitTests (1)
BackEnd\RequestedProjectState_Tests.cs (1)
166state1.ItemFilters.Clear();
Microsoft.Build.Tasks.Core (1)
ResGenDependencies.cs (1)
70resXFiles.Clear();
Microsoft.Cci.Extensions (1)
Experimental\TypeReferenceSearcher.cs (1)
69_dependencies.Clear();
Microsoft.CodeAnalysis (1)
Binding\BindingDiagnosticBag.cs (1)
104DependenciesBag?.Clear();
Microsoft.CodeAnalysis.EditorFeatures (1)
InlineRename\InlineRenameSession.OpenTextBufferManager.cs (1)
112_readOnlyRegions.Clear();
Microsoft.CodeAnalysis.EditorFeatures.Wpf (1)
SignatureHelp\Presentation\SignatureHelpPresenter.SignatureHelpPresenterSession.cs (1)
202signatures.Clear();
Microsoft.CodeAnalysis.Features (1)
Completion\CompletionService.cs (1)
362builder.Clear();
Microsoft.CodeAnalysis.InteractiveHost (4)
Interactive\Core\InteractiveHost.Service.cs (4)
272referencePaths.Clear(); 276sourcePaths.Clear(); 579globals.ReferencePaths.Clear(); 582globals.SourcePaths.Clear();
Microsoft.CodeAnalysis.UnitTests (21)
Collections\IdentifierCollectionTests.cs (1)
83Assert.Throws<NotSupportedException>(() => collection.Clear());
Collections\ImmutableDictionaryTestBase.cs (1)
133Assert.Throws<NotSupportedException>(() => dictionary.Clear());
Collections\ImmutableDictionaryTestBase.nonnetstandard.cs (1)
291Assert.Throws<NotSupportedException>(() => collection.Clear());
Collections\ImmutableSegmentedDictionaryBuilderTest.cs (1)
165builder.Clear();
Collections\ImmutableSegmentedHashSetBuilderTest.cs (1)
125builder.Clear();
Collections\ImmutableSegmentedListBuilderTest.cs (2)
238mutable.Clear(); 242mutable.Clear();
Collections\ImmutableSegmentedListTest.cs (1)
762Assert.Throws<NotSupportedException>(() => list.Clear());
Collections\ImmutableSetTest.cs (1)
184Assert.Throws<NotSupportedException>(() => set.Clear());
Collections\List\ICollection.Generic.Tests.cs (11)
113casted.Clear(); 231collection.Clear(); 317Assert.Throws<NotSupportedException>(() => collection.Clear()); 322collection.Clear(); 334Assert.Throws<NotSupportedException>(() => collection.Clear()); 335Assert.Throws<NotSupportedException>(() => collection.Clear()); 336Assert.Throws<NotSupportedException>(() => collection.Clear()); 341collection.Clear(); 342collection.Clear(); 343collection.Clear(); 380collection.Clear();
Collections\SegmentedArrayTests.cs (1)
78Assert.Throws<NotSupportedException>(() => ((ICollection<IntPtr>)data).Clear());
Microsoft.DotNet.SignCheckLibrary (1)
Verification\Jar\JarSignatureFile.cs (1)
239Timestamps.Clear();
Microsoft.Extensions.Http (1)
DependencyInjection\DefaultHttpClientBuilderServiceCollection.cs (1)
66public void Clear() => _services.Clear();
Microsoft.Interop.SourceGeneration (1)
ValueEqualityImmutableDictionary.cs (1)
61public void Clear() => ((ICollection<KeyValuePair<T, U>>)Map).Clear();
Microsoft.Maui.Controls (10)
BindableLayout\BindableLayout.cs (1)
203 mauiLayout.Clear();
Interactivity\TriggerBase.cs (1)
153 _actual.Clear();
Internals\NotifyCollectionChangedEventArgsExtensions.cs (1)
18 to.Clear();
Items\SelectableItemsView.cs (1)
92 SelectedItems.Clear();
Items\SelectionList.cs (2)
49 _internal.Clear(); 53 _shadow.Clear();
Layout\AndExpandLayoutManager.cs (1)
22 _gridLayout?.Clear();
ReadOnlyCastingList.cs (1)
93 public void Clear() => _list.Clear();
ResourceDictionary.cs (1)
121 _collectionTrack.Clear();
VisualStateManager.cs (1)
262 _internalList.Clear();
Microsoft.ML.SearchSpace (2)
Option\NestOption.cs (1)
106((ICollection<KeyValuePair<string, OptionBase>>)_options).Clear();
SearchSpace.cs (1)
343((ICollection<KeyValuePair<string, OptionBase>>)_options).Clear();
Microsoft.Net.Http.Headers.Tests (1)
MediaTypeHeaderValueTest.cs (1)
186Assert.Throws<NotSupportedException>(() => mediaType1.Parameters.Clear());
MSBuild (1)
XMake.cs (1)
3271warningSwitches.Clear();
PresentationCore (1)
System\Windows\Media\CultureSpecificStringDictionary.cs (1)
91_innerDictionary.Clear();
PresentationFramework (4)
MS\Internal\Annotations\AnnotationResourceCollection.cs (1)
75Items.Clear(); // directly clear Collection<T> inner Items collection
MS\Internal\Data\DifferencingCollection.cs (1)
232Items.Clear();
MS\Internal\Data\XmlDataCollection.cs (1)
89Items.Clear();
System\Windows\Controls\CustomDictionarySources.cs (1)
212((IList<Uri>)this).Clear();
PresentationUI (2)
MS\Internal\Documents\DocumentSignatureManager.cs (1)
526_digSigSigResources.Clear();
MS\Internal\Documents\RightsManagementManager.cs (1)
649_userMap.Clear();
ReachFramework (1)
Serialization\XpsFontSubsetter.cs (1)
240_fontEmbeddingManagerCache.Clear();
Shared.Tests (2)
EmptyCollections\EmptyReadonlyDictionaryTests.cs (1)
51dict.Clear();
EmptyCollections\EmptyReadOnlyListTests.cs (1)
63coll.Clear();
System.ComponentModel.Composition (2)
Microsoft\Internal\Collections\CollectionServices.CollectionOfObject.cs (1)
108_collectionOfT.Clear();
System\ComponentModel\Composition\ReflectionModel\ImportingMember.cs (1)
220collection.Clear();
System.Composition.Hosting (1)
System\Composition\Hosting\Core\CycleBreakingMetadataDictionary.cs (1)
82ActualMetadata.Clear();
System.Net.Http (1)
System\Net\Http\SocketsHttpHandler\DecompressionHandler.cs (1)
123Headers.ContentEncoding.Clear();
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\Collection.cs (1)
141items.Clear();
xunit.console (1)
common\AssemblyResolution\Microsoft.Extensions.DependencyModel\DependencyContextJsonReader.cs (1)
35_stringPool.Clear();