128 implementations of Add
GenerateDocumentationAndConfigFiles (6)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
370bool ISet<T>.Add(T item)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+Builder.cs (1)
39public bool Add(T item)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
77public bool Add(T item)
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
386public bool Add(T item) => AddIfNotPresent(item, out _);
src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Set.cs (1)
25public new bool Add(T item)
src\Dependencies\Collections\Specialized\SpecializedCollections.ReadOnly.Set.cs (1)
24public new bool Add(T item)
Metrics (6)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
370bool ISet<T>.Add(T item)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+Builder.cs (1)
39public bool Add(T item)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
77public bool Add(T item)
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
386public bool Add(T item) => AddIfNotPresent(item, out _);
src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Set.cs (1)
25public new bool Add(T item)
src\Dependencies\Collections\Specialized\SpecializedCollections.ReadOnly.Set.cs (1)
24public new bool Add(T item)
Metrics.Legacy (6)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
370bool ISet<T>.Add(T item)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+Builder.cs (1)
39public bool Add(T item)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
77public bool Add(T item)
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
386public bool Add(T item) => AddIfNotPresent(item, out _);
src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Set.cs (1)
25public new bool Add(T item)
src\Dependencies\Collections\Specialized\SpecializedCollections.ReadOnly.Set.cs (1)
24public new bool Add(T item)
Microsoft.CodeAnalysis (6)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
370bool ISet<T>.Add(T item)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+Builder.cs (1)
39public bool Add(T item)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
77public bool Add(T item)
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
386public bool Add(T item) => AddIfNotPresent(item, out _);
src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Set.cs (1)
25public new bool Add(T item)
src\Dependencies\Collections\Specialized\SpecializedCollections.ReadOnly.Set.cs (1)
24public new bool Add(T item)
Microsoft.CodeAnalysis.Analyzers (6)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
370bool ISet<T>.Add(T item)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+Builder.cs (1)
39public bool Add(T item)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
77public bool Add(T item)
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
386public bool Add(T item) => AddIfNotPresent(item, out _);
src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Set.cs (1)
25public new bool Add(T item)
src\Dependencies\Collections\Specialized\SpecializedCollections.ReadOnly.Set.cs (1)
24public new bool Add(T item)
Microsoft.CodeAnalysis.AnalyzerUtilities (6)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
370bool ISet<T>.Add(T item)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+Builder.cs (1)
39public bool Add(T item)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
77public bool Add(T item)
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
386public bool Add(T item) => AddIfNotPresent(item, out _);
src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Set.cs (1)
25public new bool Add(T item)
src\Dependencies\Collections\Specialized\SpecializedCollections.ReadOnly.Set.cs (1)
24public new bool Add(T item)
Microsoft.CodeAnalysis.BannedApiAnalyzers (6)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
370bool ISet<T>.Add(T item)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+Builder.cs (1)
39public bool Add(T item)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
77public bool Add(T item)
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
386public bool Add(T item) => AddIfNotPresent(item, out _);
src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Set.cs (1)
25public new bool Add(T item)
src\Dependencies\Collections\Specialized\SpecializedCollections.ReadOnly.Set.cs (1)
24public new bool Add(T item)
Microsoft.CodeAnalysis.CodeStyle (6)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
370bool ISet<T>.Add(T item)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+Builder.cs (1)
39public bool Add(T item)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
77public bool Add(T item)
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
386public bool Add(T item) => AddIfNotPresent(item, out _);
src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Set.cs (1)
25public new bool Add(T item)
src\Dependencies\Collections\Specialized\SpecializedCollections.ReadOnly.Set.cs (1)
24public new bool Add(T item)
Microsoft.CodeAnalysis.Collections.Package (6)
Segmented\ImmutableSegmentedHashSet`1.cs (1)
370bool ISet<T>.Add(T item)
Segmented\ImmutableSegmentedHashSet`1+Builder.cs (1)
39public bool Add(T item)
Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
77public bool Add(T item)
Segmented\SegmentedHashSet`1.cs (1)
386public bool Add(T item) => AddIfNotPresent(item, out _);
Specialized\SpecializedCollections.Empty.Set.cs (1)
25public new bool Add(T item)
Specialized\SpecializedCollections.ReadOnly.Set.cs (1)
24public new bool Add(T item)
Microsoft.CodeAnalysis.Extensions.Package (6)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
370bool ISet<T>.Add(T item)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+Builder.cs (1)
39public bool Add(T item)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
77public bool Add(T item)
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
386public bool Add(T item) => AddIfNotPresent(item, out _);
src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Set.cs (1)
25public new bool Add(T item)
src\Dependencies\Collections\Specialized\SpecializedCollections.ReadOnly.Set.cs (1)
24public new bool Add(T item)
Microsoft.CodeAnalysis.InteractiveHost (6)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
370bool ISet<T>.Add(T item)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+Builder.cs (1)
39public bool Add(T item)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
77public bool Add(T item)
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
386public bool Add(T item) => AddIfNotPresent(item, out _);
src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Set.cs (1)
25public new bool Add(T item)
src\Dependencies\Collections\Specialized\SpecializedCollections.ReadOnly.Set.cs (1)
24public new bool Add(T item)
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (6)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
370bool ISet<T>.Add(T item)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+Builder.cs (1)
39public bool Add(T item)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
77public bool Add(T item)
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
386public bool Add(T item) => AddIfNotPresent(item, out _);
src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Set.cs (1)
25public new bool Add(T item)
src\Dependencies\Collections\Specialized\SpecializedCollections.ReadOnly.Set.cs (1)
24public new bool Add(T item)
Microsoft.CodeAnalysis.PublicApiAnalyzers (6)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
370bool ISet<T>.Add(T item)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+Builder.cs (1)
39public bool Add(T item)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
77public bool Add(T item)
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
386public bool Add(T item) => AddIfNotPresent(item, out _);
src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Set.cs (1)
25public new bool Add(T item)
src\Dependencies\Collections\Specialized\SpecializedCollections.ReadOnly.Set.cs (1)
24public new bool Add(T item)
Microsoft.CodeAnalysis.ResxSourceGenerator (6)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
370bool ISet<T>.Add(T item)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+Builder.cs (1)
39public bool Add(T item)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
77public bool Add(T item)
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
386public bool Add(T item) => AddIfNotPresent(item, out _);
src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Set.cs (1)
25public new bool Add(T item)
src\Dependencies\Collections\Specialized\SpecializedCollections.ReadOnly.Set.cs (1)
24public new bool Add(T item)
Microsoft.CodeAnalysis.Threading.Package (6)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
370bool ISet<T>.Add(T item)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+Builder.cs (1)
39public bool Add(T item)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
77public bool Add(T item)
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
386public bool Add(T item) => AddIfNotPresent(item, out _);
src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Set.cs (1)
25public new bool Add(T item)
src\Dependencies\Collections\Specialized\SpecializedCollections.ReadOnly.Set.cs (1)
24public new bool Add(T item)
Microsoft.CodeAnalysis.Workspaces (6)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
370bool ISet<T>.Add(T item)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+Builder.cs (1)
39public bool Add(T item)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
77public bool Add(T item)
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
386public bool Add(T item) => AddIfNotPresent(item, out _);
src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Set.cs (1)
25public new bool Add(T item)
src\Dependencies\Collections\Specialized\SpecializedCollections.ReadOnly.Set.cs (1)
24public new bool Add(T item)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (6)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
370bool ISet<T>.Add(T item)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+Builder.cs (1)
39public bool Add(T item)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
77public bool Add(T item)
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
386public bool Add(T item) => AddIfNotPresent(item, out _);
src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Set.cs (1)
25public new bool Add(T item)
src\Dependencies\Collections\Specialized\SpecializedCollections.ReadOnly.Set.cs (1)
24public new bool Add(T item)
Roslyn.Diagnostics.Analyzers (6)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
370bool ISet<T>.Add(T item)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+Builder.cs (1)
39public bool Add(T item)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
77public bool Add(T item)
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
386public bool Add(T item) => AddIfNotPresent(item, out _);
src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Set.cs (1)
25public new bool Add(T item)
src\Dependencies\Collections\Specialized\SpecializedCollections.ReadOnly.Set.cs (1)
24public new bool Add(T item)
System.Collections (1)
System\Collections\Generic\SortedSet.cs (1)
299public bool Add(T item) => AddIfNotPresent(item); // Hack so the implementation can be made virtual
System.Collections.Immutable (5)
System\Collections\Frozen\FrozenSet.cs (1)
401bool ISet<T>.Add(T item) => throw new NotSupportedException();
System\Collections\Immutable\ImmutableHashSet_1.Builder.cs (1)
227public bool Add(T item)
System\Collections\Immutable\ImmutableHashSet_1.cs (1)
440bool ISet<T>.Add(T item)
System\Collections\Immutable\ImmutableSortedSet_1.Builder.cs (1)
212public bool Add(T item)
System\Collections\Immutable\ImmutableSortedSet_1.cs (1)
664bool ISet<T>.Add(T item)
System.Private.CoreLib (2)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\HashSet.cs (1)
772public bool Add(T item) => AddIfNotPresent(item, out _);
src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\ReadOnlySet.cs (1)
81bool ISet<T>.Add(T item) => throw new NotSupportedException();
Test.Utilities (6)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
370bool ISet<T>.Add(T item)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+Builder.cs (1)
39public bool Add(T item)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
77public bool Add(T item)
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
386public bool Add(T item) => AddIfNotPresent(item, out _);
src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Set.cs (1)
25public new bool Add(T item)
src\Dependencies\Collections\Specialized\SpecializedCollections.ReadOnly.Set.cs (1)
24public new bool Add(T item)
Text.Analyzers (6)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
370bool ISet<T>.Add(T item)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+Builder.cs (1)
39public bool Add(T item)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
77public bool Add(T item)
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
386public bool Add(T item) => AddIfNotPresent(item, out _);
src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Set.cs (1)
25public new bool Add(T item)
src\Dependencies\Collections\Specialized\SpecializedCollections.ReadOnly.Set.cs (1)
24public new bool Add(T item)
129 references to Add
GenerateDocumentationAndConfigFiles (3)
src\Compilers\Core\Portable\InternalUtilities\ISetExtensions.cs (2)
17result |= set.Add(v); 28result |= set.Add(v);
src\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (1)
146CatchClausesForDisallowedTypesWithoutRethrow.Add(operation);
InteropTests (1)
src\Shared\Process\ProcessExtensions.cs (1)
65children.Add(id);
Logging.W3C.Sample (2)
Startup.cs (2)
19logging.AdditionalRequestHeaders.Add("x-forwarded-for"); 20logging.AdditionalRequestHeaders.Add("x-client-ssl-protocol");
Metrics (3)
src\Compilers\Core\Portable\InternalUtilities\ISetExtensions.cs (2)
17result |= set.Add(v); 28result |= set.Add(v);
src\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (1)
146CatchClausesForDisallowedTypesWithoutRethrow.Add(operation);
Metrics.Legacy (3)
src\Compilers\Core\Portable\InternalUtilities\ISetExtensions.cs (2)
17result |= set.Add(v); 28result |= set.Add(v);
src\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (1)
146CatchClausesForDisallowedTypesWithoutRethrow.Add(operation);
Microsoft.AspNetCore.BrowserTesting (1)
BrowserManagerConfiguration.cs (1)
104DisabledBrowsers.Add(browserName);
Microsoft.AspNetCore.Components.Endpoints (1)
Builder\RazorComponentsEndpointConventionBuilder.cs (1)
77_options.ConfiguredRenderModes.Add(renderMode);
Microsoft.AspNetCore.Components.Endpoints.Tests (3)
HotReloadServiceTests.cs (2)
245result.Options.ConfiguredRenderModes.Add(mode); 250result.Options.ConfiguredRenderModes.Add(new InteractiveServerRenderMode());
RazorComponentEndpointDataSourceTest.cs (1)
248result.Options.ConfiguredRenderModes.Add(mode);
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (1)
Logging\AcceptanceTests.cs (1)
782x.ExcludePathStartsWith.Add(excludedPath);
Microsoft.AspNetCore.HttpLogging.Tests (19)
FileLoggerProcessorTests.cs (2)
501options.AdditionalRequestHeaders.Add("one"); 520options.AdditionalRequestHeaders.Add("two");
HttpLoggingMiddlewareTests.cs (2)
272options.CurrentValue.RequestHeaders.Add("foo"); 1003options.CurrentValue.ResponseHeaders.Add("Test");
HttpLoggingOptionsTests.cs (2)
59options.RequestHeaders.Add("Test"); 60options.RequestHeaders.Add("test");
W3CLoggingMiddlewareTests.cs (13)
108options.CurrentValue.AdditionalRequestHeaders.Add("x-forwarded-for"); 109options.CurrentValue.AdditionalRequestHeaders.Add("x-client-ssl-protocol"); 110options.CurrentValue.AdditionalRequestHeaders.Add(":invalid"); 123options.CurrentValue.AdditionalRequestHeaders.Add("ignored-header-added-after-clone"); 184options.CurrentValue.AdditionalRequestHeaders.Add("x-forwarded-for"); 224options.CurrentValue.AdditionalRequestHeaders.Add(":invalid"); 225options.CurrentValue.AdditionalRequestHeaders.Add("x-forwarded-for"); 226options.CurrentValue.AdditionalRequestHeaders.Add("Host"); 227options.CurrentValue.AdditionalRequestHeaders.Add("Referer"); 228options.CurrentValue.AdditionalRequestHeaders.Add("User-Agent"); 229options.CurrentValue.AdditionalRequestHeaders.Add("Cookie"); 230options.CurrentValue.AdditionalRequestHeaders.Add("x-client-ssl-protocol"); 243options.CurrentValue.AdditionalRequestHeaders.Add("ignored-header-added-after-clone");
Microsoft.AspNetCore.OpenApi (7)
Services\OpenApiDocumentService.cs (5)
344document.Tags.Add(new OpenApiTag { Name = tag }); 354document.Tags.Add(new OpenApiTag { Name = controllerName }); 575schema.Required.Add(description.Name); 617schema.Required.Add(description.Name); 641schema.Required.Add(description.Name);
Services\OpenApiGenerator.cs (2)
338document.Tags.Add(new OpenApiTag { Name = tag }); 360document.Tags.Add(new OpenApiTag { Name = controllerName });
Microsoft.AspNetCore.OpenApi.Tests (2)
Transformers\CustomSchemaTransformerTests.cs (2)
322schema.Required.Add("name"); 323schema.Required.Add("price");
Microsoft.AspNetCore.Server.IntegrationTesting (1)
src\Shared\Process\ProcessExtensions.cs (1)
65children.Add(id);
Microsoft.CodeAnalysis (2)
InternalUtilities\ISetExtensions.cs (2)
17result |= set.Add(v); 28result |= set.Add(v);
Microsoft.CodeAnalysis.Analyzers (3)
src\Compilers\Core\Portable\InternalUtilities\ISetExtensions.cs (2)
17result |= set.Add(v); 28result |= set.Add(v);
src\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (1)
146CatchClausesForDisallowedTypesWithoutRethrow.Add(operation);
Microsoft.CodeAnalysis.AnalyzerUtilities (3)
src\Compilers\Core\Portable\InternalUtilities\ISetExtensions.cs (2)
17result |= set.Add(v); 28result |= set.Add(v);
src\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (1)
146CatchClausesForDisallowedTypesWithoutRethrow.Add(operation);
Microsoft.CodeAnalysis.BannedApiAnalyzers (3)
src\Compilers\Core\Portable\InternalUtilities\ISetExtensions.cs (2)
17result |= set.Add(v); 28result |= set.Add(v);
src\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (1)
146CatchClausesForDisallowedTypesWithoutRethrow.Add(operation);
Microsoft.CodeAnalysis.CodeStyle (2)
src\Compilers\Core\Portable\InternalUtilities\ISetExtensions.cs (2)
17result |= set.Add(v); 28result |= set.Add(v);
Microsoft.CodeAnalysis.Features (3)
AddImport\SymbolReferenceFinder.cs (1)
87set.Add(MapToCompilationNamespaceIfPossible(containingNamespace));
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.cs (1)
539_projectOrDocumentIds.Add(documentId);
LanguageServices\AnonymousTypeDisplayService\AbstractStructuralTypeDisplayService.StructuralTypeCollectorVisitor.cs (1)
78if (_seenTypes.Add(symbol))
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (3)
src\Compilers\Core\Portable\InternalUtilities\ISetExtensions.cs (2)
17result |= set.Add(v); 28result |= set.Add(v);
src\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (1)
146CatchClausesForDisallowedTypesWithoutRethrow.Add(operation);
Microsoft.CodeAnalysis.PublicApiAnalyzers (3)
src\Compilers\Core\Portable\InternalUtilities\ISetExtensions.cs (2)
17result |= set.Add(v); 28result |= set.Add(v);
src\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (1)
146CatchClausesForDisallowedTypesWithoutRethrow.Add(operation);
Microsoft.CodeAnalysis.ResxSourceGenerator (3)
src\Compilers\Core\Portable\InternalUtilities\ISetExtensions.cs (2)
17result |= set.Add(v); 28result |= set.Add(v);
src\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (1)
146CatchClausesForDisallowedTypesWithoutRethrow.Add(operation);
Microsoft.CodeAnalysis.UnitTests (7)
Collections\HashSet\ISet_Generic_Tests`1.cs (5)
62set.Add(toAdd); 94Assert.True(set.Add(newValue)); 96Assert.False(set.Add(newValue)); 330Assert.Throws<NotSupportedException>(() => set.Add(CreateT(0))); 647set.Add(value);
Collections\ImmutableSetTest.cs (1)
172Assert.Throws<NotSupportedException>(() => set.Add(0));
InternalUtilities\SpecializedCollectionsTests.cs (1)
59Assert.Throws<NotSupportedException>(() => emptySet.Add(0));
Microsoft.CodeAnalysis.Workspaces (2)
src\Compilers\Core\Portable\InternalUtilities\ISetExtensions.cs (2)
17result |= set.Add(v); 28result |= set.Add(v);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (2)
src\Compilers\Core\Portable\InternalUtilities\ISetExtensions.cs (2)
17result |= set.Add(v); 28result |= set.Add(v);
Microsoft.DotNet.Open.Api.Tools.Tests (1)
src\Shared\Process\ProcessExtensions.cs (1)
65children.Add(id);
Microsoft.Extensions.ApiDescription.Client.Tests (1)
src\Shared\Process\ProcessExtensions.cs (1)
65children.Add(id);
Microsoft.Extensions.Diagnostics.Testing.Tests (3)
Logging\FakeLoggerExtensionsTests.cs (1)
35.AddFakeLogging(options => options.FilteredCategories.Add("Storage"))
Logging\FakeLoggerTests.cs (2)
206options.FilteredLevels.Add(LogLevel.Error); 228options.FilteredCategories.Add("Storage");
Microsoft.Extensions.Http.Diagnostics.PerformanceTests (8)
HttpClientFactory.cs (8)
28options.RequestBodyContentTypes.Add("application/json"); 51options.ResponseBodyContentTypes.Add("application/json"); 75options.RequestBodyContentTypes.Add("application/json"); 78options.ResponseBodyContentTypes.Add("application/json"); 101options.RequestBodyContentTypes.Add("application/json"); 124options.ResponseBodyContentTypes.Add("application/json"); 148options.RequestBodyContentTypes.Add("application/json"); 151options.ResponseBodyContentTypes.Add("application/json");
Microsoft.Extensions.Http.Diagnostics.Tests (14)
Logging\AcceptanceTests.cs (10)
142o.RequestBodyContentTypes.Add("application/json"); 143o.ResponseBodyContentTypes.Add("application/json"); 152o.RequestBodyContentTypes.Add("application/json"); 153o.ResponseBodyContentTypes.Add("application/json"); 221x.RequestBodyContentTypes.Add("application/json"); 222x.ResponseBodyContentTypes.Add("application/json"); 232x.RequestBodyContentTypes.Add("application/json"); 233x.ResponseBodyContentTypes.Add("application/json"); 668x.RequestBodyContentTypes.Add("application/json"); 669x.ResponseBodyContentTypes.Add("application/json");
Logging\HttpClientLoggingExtensionsTest.cs (4)
165options.RequestBodyContentTypes.Add(requestBodyContentType); 166options.ResponseBodyContentTypes.Add(responseBodyContentType); 275options.RequestBodyContentTypes.Add(requestBodyContentType); 276options.ResponseBodyContentTypes.Add(responseBodyContentType);
Microsoft.Gen.Logging (1)
Parsing\Parser.LogProperties.cs (1)
279_ = typesChain.Add(namedType);
Microsoft.Gen.MetadataExtractor (1)
src\Generators\Microsoft.Gen.Metrics\Parser.cs (1)
876if (!typesChain.Add(namedTypeSymbol))
Microsoft.Gen.Metrics (1)
Parser.cs (1)
876if (!typesChain.Add(namedTypeSymbol))
Microsoft.Gen.MetricsReports (1)
src\Generators\Microsoft.Gen.Metrics\Parser.cs (1)
876if (!typesChain.Add(namedTypeSymbol))
Roslyn.Diagnostics.Analyzers (3)
src\Compilers\Core\Portable\InternalUtilities\ISetExtensions.cs (2)
17result |= set.Add(v); 28result |= set.Add(v);
src\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (1)
146CatchClausesForDisallowedTypesWithoutRethrow.Add(operation);
System.Text.Json (1)
System\Text\Json\Serialization\Converters\Collection\ISetOfTConverter.cs (1)
19collection.Add(value);
Templates.Blazor.Tests (1)
src\Shared\Process\ProcessExtensions.cs (1)
65children.Add(id);
Templates.Blazor.WebAssembly.Auth.Tests (1)
src\Shared\Process\ProcessExtensions.cs (1)
65children.Add(id);
Templates.Blazor.WebAssembly.Tests (1)
src\Shared\Process\ProcessExtensions.cs (1)
65children.Add(id);
Templates.Mvc.Tests (1)
src\Shared\Process\ProcessExtensions.cs (1)
65children.Add(id);
Templates.Tests (1)
src\Shared\Process\ProcessExtensions.cs (1)
65children.Add(id);
Test.Utilities (3)
src\Compilers\Core\Portable\InternalUtilities\ISetExtensions.cs (2)
17result |= set.Add(v); 28result |= set.Add(v);
src\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (1)
146CatchClausesForDisallowedTypesWithoutRethrow.Add(operation);
Text.Analyzers (3)
src\Compilers\Core\Portable\InternalUtilities\ISetExtensions.cs (2)
17result |= set.Add(v); 28result |= set.Add(v);
src\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (1)
146CatchClausesForDisallowedTypesWithoutRethrow.Add(operation);