Implemented interface members:
method
Contains
System.Collections.Generic.ICollection<T>.Contains(T)
method
Contains
System.Collections.Generic.IReadOnlySet<T>.Contains(T)
1 override of Contains
System.Collections (1)
System\Collections\Generic\SortedSet.TreeSubSet.cs (1)
68public override bool Contains(T item)
33 references to Contains
ILCompiler.Compiler (8)
Compiler\MetadataManager.cs (5)
1072internal bool HasNonGcStaticBase(MetadataType type) => _typesWithNonGCStaticsGenerated.Contains(type); 1073internal bool HasGcStaticBase(MetadataType type) => _typesWithGCStaticsGenerated.Contains(type); 1074internal bool HasThreadStaticBase(MetadataType type) => _typesWithThreadStaticsGenerated.Contains(type); 1075internal bool HasConstructedEEType(TypeDesc type) => _typesWithConstructedEETypesGenerated.Contains(type); 1145return _typesWithEETypesGenerated.Contains(type);
src\runtime\src\coreclr\tools\Common\Compiler\InstructionSetSupport.cs (3)
336if (_supportedInstructionSets.Contains("gfni")) 339if (_supportedInstructionSets.Contains("vpclmul")) 348if (_supportedInstructionSets.Contains("gfni"))
ILCompiler.ReadyToRun (3)
src\runtime\src\coreclr\tools\Common\Compiler\InstructionSetSupport.cs (3)
336if (_supportedInstructionSets.Contains("gfni")) 339if (_supportedInstructionSets.Contains("vpclmul")) 348if (_supportedInstructionSets.Contains("gfni"))
Microsoft.Build (1)
Evaluation\Expander.cs (1)
2715if (directories.Contains(directoryName))
Microsoft.CodeAnalysis.AnalyzerUtilities (1)
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DataFlowAnalysis.cs (1)
588pendingBlocksNeedingAtLeastOnePass.Contains(predecessorWithBranch.predecessorBlock.Ordinal));
Microsoft.ML.Sweeper (1)
Algorithms\KdoSweeper.cs (1)
276} while (_alreadySeenConfigs.Contains(child));
Microsoft.VisualStudio.TestPlatform.ObjectModel (1)
Nuget.Frameworks\NuGetFramework.cs (1)
348if (PackagesBased.Contains(Framework))
NuGet.Frameworks (1)
NuGetFramework.cs (1)
349if (PackagesBased.Contains(Framework))
NuGet.ProjectModel (1)
DependencyGraphSpec.cs (1)
470if (_restore.Contains(project.RestoreMetadata.ProjectUniqueName))
NuGet.Resolver (3)
ResolverInputSort.cs (3)
53if (i != j && dependencies[j].Contains(groupIds[i])) 76.ThenBy(id => childrenOfLastId.Contains(id) ? 0 : 1) 78.ThenByDescending(id => parents.Values.Count(parentIds => parentIds.Contains(id)))
System.Collections (12)
System\Collections\Generic\SortedDictionary.cs (1)
205return _set.Contains(new KeyValuePair<TKey, TValue>(key, default(TValue)!));
System\Collections\Generic\SortedSet.cs (10)
141if (!Contains(item)) 154if (!(comparer.Compare(item, min) < 0 || comparer.Compare(item, max) > 0) && Contains(item)) 165if (!Contains(item)) 1052if (Contains(item)) 1141bool result = Contains(item) ? Remove(item) : Add(item); 1164bool result = Contains(current) ? Remove(current) : Add(current); 1199if (!prunedOther.Contains(item)) 1246if (!pruned.Contains(item)) 1275if (!pruned.Contains(item)) 1334if (Contains(item))
System\Collections\Generic\SortedSet.TreeSubSet.cs (1)
74return base.Contains(item);
System.IO.Packaging (1)
System\IO\Packaging\ZipPackage.cs (1)
198if (pieceSet.Contains(partPiece))