49 implementations of Add
Microsoft.CodeAnalysis (6)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
368bool ISet<T>.Add(T item)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+Builder.cs (1)
37public bool Add(T item)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
75public bool Add(T item)
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
384public bool Add(T item) => AddIfNotPresent(item, out _);
src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Set.cs (1)
22public new bool Add(T item)
src\Dependencies\Collections\Specialized\SpecializedCollections.ReadOnly.Set.cs (1)
22public new bool Add(T item)
Microsoft.CodeAnalysis.CodeStyle (6)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
368bool ISet<T>.Add(T item)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+Builder.cs (1)
37public bool Add(T item)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
75public bool Add(T item)
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
384public bool Add(T item) => AddIfNotPresent(item, out _);
src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Set.cs (1)
22public new bool Add(T item)
src\Dependencies\Collections\Specialized\SpecializedCollections.ReadOnly.Set.cs (1)
22public new bool Add(T item)
Microsoft.CodeAnalysis.Collections.Package (6)
Segmented\ImmutableSegmentedHashSet`1.cs (1)
368bool ISet<T>.Add(T item)
Segmented\ImmutableSegmentedHashSet`1+Builder.cs (1)
37public bool Add(T item)
Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
75public bool Add(T item)
Segmented\SegmentedHashSet`1.cs (1)
384public bool Add(T item) => AddIfNotPresent(item, out _);
Specialized\SpecializedCollections.Empty.Set.cs (1)
22public new bool Add(T item)
Specialized\SpecializedCollections.ReadOnly.Set.cs (1)
22public new bool Add(T item)
Microsoft.CodeAnalysis.InteractiveHost (6)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
368bool ISet<T>.Add(T item)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+Builder.cs (1)
37public bool Add(T item)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
75public bool Add(T item)
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
384public bool Add(T item) => AddIfNotPresent(item, out _);
src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Set.cs (1)
22public new bool Add(T item)
src\Dependencies\Collections\Specialized\SpecializedCollections.ReadOnly.Set.cs (1)
22public new bool Add(T item)
Microsoft.CodeAnalysis.Threading.Package (6)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
368bool ISet<T>.Add(T item)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+Builder.cs (1)
37public bool Add(T item)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
75public bool Add(T item)
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
384public bool Add(T item) => AddIfNotPresent(item, out _);
src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Set.cs (1)
22public new bool Add(T item)
src\Dependencies\Collections\Specialized\SpecializedCollections.ReadOnly.Set.cs (1)
22public new bool Add(T item)
Microsoft.CodeAnalysis.Workspaces (6)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
368bool ISet<T>.Add(T item)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+Builder.cs (1)
37public bool Add(T item)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
75public bool Add(T item)
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
384public bool Add(T item) => AddIfNotPresent(item, out _);
src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Set.cs (1)
22public new bool Add(T item)
src\Dependencies\Collections\Specialized\SpecializedCollections.ReadOnly.Set.cs (1)
22public new bool Add(T item)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (6)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
368bool ISet<T>.Add(T item)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+Builder.cs (1)
37public bool Add(T item)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
75public bool Add(T item)
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
384public bool Add(T item) => AddIfNotPresent(item, out _);
src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Set.cs (1)
22public new bool Add(T item)
src\Dependencies\Collections\Specialized\SpecializedCollections.ReadOnly.Set.cs (1)
22public 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 (1)
src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\ReadOnlySet.cs (1)
81bool ISet<T>.Add(T item) => throw new NotSupportedException();
117 references to Add
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 (2)
src\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (1)
147CatchClausesForDisallowedTypesWithoutRethrow.Add(operation);
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ISetExtensions.cs (1)
13set.Add(value);
Metrics.Legacy (2)
src\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (1)
147CatchClausesForDisallowedTypesWithoutRethrow.Add(operation);
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ISetExtensions.cs (1)
13set.Add(value);
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.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.Server.IntegrationTesting (1)
src\Shared\Process\ProcessExtensions.cs (1)
65children.Add(id);
Microsoft.Build (3)
BackEnd\Components\Logging\LoggingService.cs (2)
1640_buildSubmissionIdsThatHaveLoggedBuildcheckErrors.Add(submissionId); 1645_buildSubmissionIdsThatHaveLoggedErrors.Add(submissionId);
Evaluation\Evaluator.cs (1)
886_data.GlobalPropertiesToTreatAsLocal.Add(propertyName);
Microsoft.Build.Engine.UnitTests (7)
BackEnd\LoggingService_Tests.cs (1)
793ls.WarningsAsErrors.Add("FOR123");
FileMatcher_Tests.cs (6)
2081files.Add(FileMatcher.Normalize(candidate)); 2090files.Add(FileMatcher.Normalize(candidate)); 2104files.Add(FileMatcher.Normalize(candidate)); 2113files.Add(candidate); 2159directories.Add(FileMatcher.Normalize(match)); 2170directories.Add(FileMatcher.Normalize(match));
Microsoft.Build.Tasks.Core (4)
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (4)
358taskInfo.References.Add(includeAttribute.Value.Trim()); 372taskInfo.Namespaces.Add(namespaceAttribute.Value.Trim()); 556resolvedAssemblyReferences.Add(fullPath); 574resolvedAssemblyReferences.Add(Path.Combine(resolvedDir, assemblyFileName));
Microsoft.CodeAnalysis (2)
InternalUtilities\ISetExtensions.cs (2)
17result |= set.Add(v); 28result |= set.Add(v);
Microsoft.CodeAnalysis.Analyzers (2)
src\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (1)
147CatchClausesForDisallowedTypesWithoutRethrow.Add(operation);
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ISetExtensions.cs (1)
13set.Add(value);
Microsoft.CodeAnalysis.AnalyzerUtilities (2)
src\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (1)
147CatchClausesForDisallowedTypesWithoutRethrow.Add(operation);
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ISetExtensions.cs (1)
13set.Add(value);
Microsoft.CodeAnalysis.BannedApiAnalyzers (2)
src\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (1)
147CatchClausesForDisallowedTypesWithoutRethrow.Add(operation);
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ISetExtensions.cs (1)
13set.Add(value);
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)
86set.Add(MapToCompilationNamespaceIfPossible(containingNamespace));
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.cs (1)
538_projectOrDocumentIds.Add(documentId);
LanguageServices\AnonymousTypeDisplayService\AbstractStructuralTypeDisplayService.StructuralTypeCollectorVisitor.cs (1)
78if (_seenTypes.Add(symbol))
Microsoft.CodeAnalysis.PublicApiAnalyzers (1)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ISetExtensions.cs (1)
13set.Add(value);
Microsoft.CodeAnalysis.ResxSourceGenerator (2)
src\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (1)
147CatchClausesForDisallowedTypesWithoutRethrow.Add(operation);
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ISetExtensions.cs (1)
13set.Add(value);
Microsoft.CodeAnalysis.UnitTests (6)
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));
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))
Microsoft.VisualStudio.LanguageServices (3)
Progression\GraphBuilder.cs (2)
244_createdNodes.Add(node); 708_createdNodes.Add(node);
Progression\GraphQueries\ProgressionNavigateToSearchCallback.cs (1)
51_context.OutputNodes.Add(node);
MSBuild (1)
XMake.cs (1)
3294warningSwitches.Add(code.Trim());
Roslyn.Diagnostics.Analyzers (2)
src\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (1)
147CatchClausesForDisallowedTypesWithoutRethrow.Add(operation);
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ISetExtensions.cs (1)
13set.Add(value);
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 (2)
src\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (1)
147CatchClausesForDisallowedTypesWithoutRethrow.Add(operation);
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ISetExtensions.cs (1)
13set.Add(value);
Text.Analyzers (2)
src\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (1)
147CatchClausesForDisallowedTypesWithoutRethrow.Add(operation);
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ISetExtensions.cs (1)
13set.Add(value);