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