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)
17 references to Contains
Microsoft.Build (1)
Evaluation\Expander.cs (1)
2515
if (directories.
Contains
(directoryName))
Microsoft.CodeAnalysis.UnitTests (2)
Collections\List\TestBase.Generic.cs (2)
292
while (set.
Contains
(toAdd) || (match != null && match.Contains(toAdd, GetIEqualityComparer()))) // Don't want any unexpectedly duplicate values
303
actualMatchingCount += set.
Contains
(lookingFor) ? 1 : 0;
Microsoft.ML.Sweeper (1)
Algorithms\KdoSweeper.cs (1)
276
} while (_alreadySeenConfigs.
Contains
(child));
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))
1055
if (
Contains
(item))
1144
bool result =
Contains
(item) ? Remove(item) : Add(item);
1167
bool result =
Contains
(current) ? Remove(current) : Add(current);
1202
if (!prunedOther.
Contains
(item))
1249
if (!pruned.
Contains
(item))
1278
if (!pruned.
Contains
(item))
1337
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))