Implemented interface member:
method
Add
System.Collections.Generic.ISet<T>.Add(T)
77 references to Add
dotnet-svcutil-lib (5)
Shared\MSBuildProj.cs (5)
265msbuildProj._dependencies.Add(packageDep); 278msbuildProj._dependencies.Add(packageDep); 288msbuildProj._dependencies.Add(projectDep); 351msbuildProj._dependencies.Add(projectDep); 580_dependencies.Add(dependency);
Microsoft.AspNetCore.Mvc.Core (1)
Infrastructure\ActionSelectionTable.cs (1)
122routeKeys.Add(key);
Microsoft.Build (2)
Evaluation\Expander.cs (1)
2521directories.Add(directoryName);
Graph\ProjectGraph.cs (1)
761if (seenTargets.Add(targetList[i]))
Microsoft.CodeAnalysis.CodeStyle (5)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\CustomDataFlowAnalysis.cs (5)
83toVisit.Add(firstBlock.Ordinal); 130outOfRangeBlocksToVisit.Add(current.Ordinal); 242toVisit.Add(branch.Destination.Ordinal); 385toVisit.Add(@catch.FirstBlockOrdinal); 393toVisit.Add(entryBlock.Ordinal);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (9)
Diagnostics\DiagnosticAnalyzerTests.cs (9)
1776names.Add(string.Format("GeneratedCode{0}(IsGeneratedCode:True)", i)); 1777names.Add(string.Format("Nested{0}(IsGeneratedCode:True)", i)); 1778names.Add(string.Format("NonGeneratedCode{0}(IsGeneratedCode:{1})", i, isGeneratedFile)); 1779names.Add(string.Format("NestedGeneratedCode{0}(IsGeneratedCode:True)", i)); 1782addPath = paths => paths.Add($"{file}(IsGeneratedCode:{isGeneratedFile})"); 1787addNames = names => names.Add(string.Format("NonGeneratedCode{0}(IsGeneratedCode:False)", i)); 1789addPath = paths => paths.Add($"{file}(IsGeneratedCode:False)"); 2323sortedCallbackEntityNames.Add($"Node: {syntaxContext.Node.ToString()}"); 2329sortedCallbackEntityNames.Add($"Operation: {operationContext.ContainingSymbol.Name}");
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (2)
ObjectFormatterTests.cs (2)
678obj.Add(1); 679obj.Add(2);
Microsoft.CodeAnalysis.Features (1)
Options\EditorConfig\EditorConfigFileGenerator.cs (1)
69uniqueEntries.Add($"{option.Definition.ConfigName} = {option.Definition.Serializer.Serialize(value)}");
Microsoft.CodeAnalysis.Test.Utilities (24)
Diagnostics\CommonDiagnosticAnalyzers.cs (13)
1536sortedCallbackSymbolNames.Add($"{symbolContext.Symbol.Name}(IsGeneratedCode:{symbolContext.IsGeneratedCode})"); 1542sortedCallbackTreePaths.Add($"{treeContext.Tree.FilePath}(IsGeneratedCode:{treeContext.IsGeneratedCode})"); 1561sortedCallbackSyntaxNodeNames.Add($"{context.ContainingSymbol.Name}(IsGeneratedCode:{context.IsGeneratedCode})"), 1565sortedCallbackSemanticModelPaths.Add($"{context.SemanticModel.SyntaxTree.FilePath}(IsGeneratedCode:{context.IsGeneratedCode})")); 1569sortedCallbackSymbolStartNames.Add($"{context.Symbol.Name}(IsGeneratedCode:{context.IsGeneratedCode})"); 1579sortedCallbackOperationBlockStartNames.Add($"{context.OwningSymbol.ContainingType.Name}(IsGeneratedCode:{context.IsGeneratedCode})"); 1582sortedCallbackOperationNames.Add($"{context.ContainingSymbol.ContainingType.Name}(IsGeneratedCode:{context.IsGeneratedCode})"), 1586sortedCallbackOperationBlockEndNames.Add($"{context.OwningSymbol.ContainingType.Name}(IsGeneratedCode:{context.IsGeneratedCode})")); 1597sortedCallbackOperationBlockNames.Add($"{context.OwningSymbol.ContainingType.Name}(IsGeneratedCode:{context.IsGeneratedCode})"); 1601sortedCallbackSymbolEndNames.Add($"{context.Symbol.Name}(IsGeneratedCode:{context.IsGeneratedCode})")); 1611sortedCallbackCodeBlockStartNames.Add($"{context.OwningSymbol.ContainingType.Name}(IsGeneratedCode:{context.IsGeneratedCode})"); 1614sortedCallbackCodeBlockEndNames.Add($"{context.OwningSymbol.ContainingType.Name}(IsGeneratedCode:{context.IsGeneratedCode})")); 1624sortedCallbackCodeBlockNames.Add($"{context.OwningSymbol.ContainingType.Name}(IsGeneratedCode:{context.IsGeneratedCode})");
Platform\CoreClr\TestExecutionLoadContext.cs (1)
106signatures.Add(signature);
Platform\Custom\MetadataSignatureHelper.cs (5)
726candidates.Add(sb.ToString()); 735candidates.Add(sb.ToString()); 744candidates.Add(sb.ToString()); 753candidates.Add(sb.ToString()); 762candidates.Add(sb.ToString());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\CustomDataFlowAnalysis.cs (5)
83toVisit.Add(firstBlock.Ordinal); 130outOfRangeBlocksToVisit.Add(current.Ordinal); 242toVisit.Add(branch.Destination.Ordinal); 385toVisit.Add(@catch.FirstBlockOrdinal); 393toVisit.Add(entryBlock.Ordinal);
Microsoft.CodeAnalysis.UnitTests (2)
Collections\List\TestBase.Generic.cs (2)
285set.Add(match[i]); 294set.Add(toAdd);
Microsoft.CodeAnalysis.Workspaces (5)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\CustomDataFlowAnalysis.cs (5)
83toVisit.Add(firstBlock.Ordinal); 130outOfRangeBlocksToVisit.Add(current.Ordinal); 242toVisit.Add(branch.Destination.Ordinal); 385toVisit.Add(@catch.FirstBlockOrdinal); 393toVisit.Add(entryBlock.Ordinal);
Microsoft.DotNet.Build.Tasks.Packaging (1)
ApplyBaseLine.cs (1)
69versions.Add(new Version(baseLinePackage.GetMetadata("Version")));
Microsoft.ML.AutoML (1)
Sweepers\SmacSweeper.cs (1)
398bestK.Add(r);
Microsoft.ML.Sweeper (3)
Algorithms\KdoSweeper.cs (2)
278_alreadySeenConfigs.Add(child); 435bestK.Add(r);
Algorithms\SmacSweeper.cs (1)
389bestK.Add(r);
System.CodeDom (2)
Microsoft\CSharp\CSharpCodeGenerator.cs (1)
2464importList.Add(import.Namespace);
Microsoft\VisualBasic\VBCodeGenerator.cs (1)
2249importList.Add(import.Namespace);
System.Collections (10)
System\Collections\Generic\SortedDictionary.cs (4)
49_set.Add(pair); 61_set.Add(keyValuePair); 127_set.Add(new KeyValuePair<TKey, TValue>(key, value)); 193_set.Add(new KeyValuePair<TKey, TValue>(key, value));
System\Collections\Generic\SortedSet.cs (6)
143Add(item); 301void ICollection<T>.Add(T item) => Add(item); 1064Add(item); 1144bool result = Contains(item) ? Remove(item) : Add(item); 1167bool result = Contains(current) ? Remove(current) : Add(current); 1577Add(items[i]);
System.Collections.Immutable (3)
System\Collections\Immutable\ImmutableArray_1.Builder.cs (1)
630while (index >= 0 && !indicesToRemove.Add(index) && index + 1 < _count)
System\Collections\Immutable\ImmutableArray_1.cs (2)
702} while (index >= 0 && !indicesToRemove.Add(index) && index < self.Length - 1); 1002} while (index >= 0 && !indicesToRemove.Add(index) && index < self.Length - 1);
System.IO.Packaging (1)
System\IO\Packaging\ZipPackage.cs (1)
209pieceSet.Add(partPiece);