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)
68
public override bool
Contains
(T item)
33 references to Contains
ILCompiler.Compiler (8)
Compiler\MetadataManager.cs (5)
1072
internal bool HasNonGcStaticBase(MetadataType type) => _typesWithNonGCStaticsGenerated.
Contains
(type);
1073
internal bool HasGcStaticBase(MetadataType type) => _typesWithGCStaticsGenerated.
Contains
(type);
1074
internal bool HasThreadStaticBase(MetadataType type) => _typesWithThreadStaticsGenerated.
Contains
(type);
1075
internal bool HasConstructedEEType(TypeDesc type) => _typesWithConstructedEETypesGenerated.
Contains
(type);
1145
return _typesWithEETypesGenerated.
Contains
(type);
src\runtime\src\coreclr\tools\Common\Compiler\InstructionSetSupport.cs (3)
336
if (_supportedInstructionSets.
Contains
("gfni"))
339
if (_supportedInstructionSets.
Contains
("vpclmul"))
348
if (_supportedInstructionSets.
Contains
("gfni"))
ILCompiler.ReadyToRun (3)
src\runtime\src\coreclr\tools\Common\Compiler\InstructionSetSupport.cs (3)
336
if (_supportedInstructionSets.
Contains
("gfni"))
339
if (_supportedInstructionSets.
Contains
("vpclmul"))
348
if (_supportedInstructionSets.
Contains
("gfni"))
Microsoft.Build (1)
Evaluation\Expander.cs (1)
2715
if (directories.
Contains
(directoryName))
Microsoft.CodeAnalysis.AnalyzerUtilities (1)
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DataFlowAnalysis.cs (1)
588
pendingBlocksNeedingAtLeastOnePass.
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)
348
if (PackagesBased.
Contains
(Framework))
NuGet.Frameworks (1)
NuGetFramework.cs (1)
349
if (PackagesBased.
Contains
(Framework))
NuGet.ProjectModel (1)
DependencyGraphSpec.cs (1)
470
if (_restore.
Contains
(project.RestoreMetadata.ProjectUniqueName))
NuGet.Resolver (3)
ResolverInputSort.cs (3)
53
if (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)
205
return _set.
Contains
(new KeyValuePair<TKey, TValue>(key, default(TValue)!));
System\Collections\Generic\SortedSet.cs (10)
141
if (!
Contains
(item))
154
if (!(comparer.Compare(item, min) < 0 || comparer.Compare(item, max) > 0) &&
Contains
(item))
165
if (!
Contains
(item))
1052
if (
Contains
(item))
1141
bool result =
Contains
(item) ? Remove(item) : Add(item);
1164
bool result =
Contains
(current) ? Remove(current) : Add(current);
1199
if (!prunedOther.
Contains
(item))
1246
if (!pruned.
Contains
(item))
1275
if (!pruned.
Contains
(item))
1334
if (
Contains
(item))
System\Collections\Generic\SortedSet.TreeSubSet.cs (1)
74
return base.
Contains
(item);
System.IO.Packaging (1)
System\IO\Packaging\ZipPackage.cs (1)
198
if (pieceSet.
Contains
(partPiece))