269 implementations of Contains
dotnet-svcutil-lib (4)
FrameworkFork\Microsoft.CodeDom\System\CodeNamespaceImportCollection.cs (1)
210bool IList.Contains(object value)
FrameworkFork\System.ServiceModel\System\ServiceModel\SynchronizedCollection.cs (1)
276bool IList.Contains(object value)
FrameworkFork\System.ServiceModel\System\ServiceModel\SynchronizedReadOnlyCollection.cs (1)
235bool IList.Contains(object value)
Shared\Options\ListValue.cs (1)
141bool IList.Contains(object value)
GenerateDocumentationAndConfigFiles (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
666bool IList.Contains(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
235bool IList.Contains(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
344readonly bool IList.Contains(object? value)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
217bool IList.Contains(object? value)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
422bool IList.Contains(object? item)
Metrics (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
666bool IList.Contains(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
235bool IList.Contains(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
344readonly bool IList.Contains(object? value)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
217bool IList.Contains(object? value)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
422bool IList.Contains(object? item)
Metrics.Legacy (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
666bool IList.Contains(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
235bool IList.Contains(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
344readonly bool IList.Contains(object? value)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
217bool IList.Contains(object? value)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
422bool IList.Contains(object? item)
Microsoft.Build.Framework (5)
ImmutableSegmentedList`1.cs (1)
664bool IList.Contains(object? value)
ImmutableSegmentedList`1+Builder.cs (1)
233bool IList.Contains(object? value)
ImmutableSegmentedList`1+ValueBuilder.cs (1)
342bool IList.Contains(object? value)
SegmentedArray`1.cs (1)
218bool IList.Contains(object? value)
SegmentedList`1.cs (1)
349bool IList.Contains(object? item)
Microsoft.CodeAnalysis (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
666bool IList.Contains(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
235bool IList.Contains(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
344readonly bool IList.Contains(object? value)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
217bool IList.Contains(object? value)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
422bool IList.Contains(object? item)
Microsoft.CodeAnalysis.Analyzers (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
666bool IList.Contains(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
235bool IList.Contains(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
344readonly bool IList.Contains(object? value)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
217bool IList.Contains(object? value)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
422bool IList.Contains(object? item)
Microsoft.CodeAnalysis.AnalyzerUtilities (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
666bool IList.Contains(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
235bool IList.Contains(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
344readonly bool IList.Contains(object? value)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
217bool IList.Contains(object? value)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
422bool IList.Contains(object? item)
Microsoft.CodeAnalysis.BannedApiAnalyzers (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
666bool IList.Contains(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
235bool IList.Contains(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
344readonly bool IList.Contains(object? value)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
217bool IList.Contains(object? value)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
422bool IList.Contains(object? item)
Microsoft.CodeAnalysis.CodeStyle (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
666bool IList.Contains(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
235bool IList.Contains(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
344readonly bool IList.Contains(object? value)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
217bool IList.Contains(object? value)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
422bool IList.Contains(object? item)
Microsoft.CodeAnalysis.Collections.Package (5)
Segmented\ImmutableSegmentedList`1.cs (1)
666bool IList.Contains(object? value)
Segmented\ImmutableSegmentedList`1+Builder.cs (1)
235bool IList.Contains(object? value)
Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
344readonly bool IList.Contains(object? value)
Segmented\SegmentedArray`1.cs (1)
217bool IList.Contains(object? value)
Segmented\SegmentedList`1.cs (1)
422bool IList.Contains(object? item)
Microsoft.CodeAnalysis.Extensions.Package (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
666bool IList.Contains(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
235bool IList.Contains(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
344readonly bool IList.Contains(object? value)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
217bool IList.Contains(object? value)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
422bool IList.Contains(object? item)
Microsoft.CodeAnalysis.InteractiveHost (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
666bool IList.Contains(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
235bool IList.Contains(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
344readonly bool IList.Contains(object? value)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
217bool IList.Contains(object? value)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
422bool IList.Contains(object? item)
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
666bool IList.Contains(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
235bool IList.Contains(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
344readonly bool IList.Contains(object? value)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
217bool IList.Contains(object? value)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
422bool IList.Contains(object? item)
Microsoft.CodeAnalysis.PublicApiAnalyzers (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
666bool IList.Contains(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
235bool IList.Contains(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
344readonly bool IList.Contains(object? value)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
217bool IList.Contains(object? value)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
422bool IList.Contains(object? item)
Microsoft.CodeAnalysis.ResxSourceGenerator (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
666bool IList.Contains(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
235bool IList.Contains(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
344readonly bool IList.Contains(object? value)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
217bool IList.Contains(object? value)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
422bool IList.Contains(object? item)
Microsoft.CodeAnalysis.Threading.Package (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
666bool IList.Contains(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
235bool IList.Contains(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
344readonly bool IList.Contains(object? value)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
217bool IList.Contains(object? value)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
422bool IList.Contains(object? item)
Microsoft.CodeAnalysis.Workspaces (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
666bool IList.Contains(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
235bool IList.Contains(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
344readonly bool IList.Contains(object? value)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
217bool IList.Contains(object? value)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
422bool IList.Contains(object? item)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
666bool IList.Contains(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
235bool IList.Contains(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
344readonly bool IList.Contains(object? value)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
217bool IList.Contains(object? value)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
422bool IList.Contains(object? item)
Microsoft.Maui.Controls (4)
ListProxy.cs (1)
73 public bool Contains(object item)
ObservableWrapper.cs (1)
284 public bool Contains(object value)
ReadOnlyListAdapter.cs (1)
61 public bool Contains(object value)
TemplatedItemsList.cs (1)
282 bool IList.Contains(object item)
Microsoft.VisualBasic.Core (1)
Microsoft\VisualBasic\Collection.vb (1)
719Private Function IListContains(ByVal value As Object) As Boolean Implements IList.Contains
PresentationCore (49)
System\Windows\FreezableCollection.cs (1)
442bool IList.Contains(object value)
System\Windows\Generated\TextDecorationCollection.cs (1)
354bool IList.Contains(object value)
System\Windows\Input\Command\CommandBindingCollection.cs (1)
75bool IList.Contains(object key)
System\Windows\Input\Command\InputBindingCollection.cs (1)
86bool IList.Contains(object key)
System\Windows\Input\Command\InputGestureCollection.cs (1)
75bool IList.Contains(object key)
System\Windows\Media\Animation\Generated\BooleanKeyFrameCollection.cs (1)
317bool IList.Contains(object keyFrame)
System\Windows\Media\Animation\Generated\ByteKeyFrameCollection.cs (1)
317bool IList.Contains(object keyFrame)
System\Windows\Media\Animation\Generated\CharKeyFrameCollection.cs (1)
317bool IList.Contains(object keyFrame)
System\Windows\Media\Animation\Generated\ColorKeyFrameCollection.cs (1)
317bool IList.Contains(object keyFrame)
System\Windows\Media\Animation\Generated\DecimalKeyFrameCollection.cs (1)
317bool IList.Contains(object keyFrame)
System\Windows\Media\Animation\Generated\DoubleKeyFrameCollection.cs (1)
317bool IList.Contains(object keyFrame)
System\Windows\Media\Animation\Generated\Int16KeyFrameCollection.cs (1)
317bool IList.Contains(object keyFrame)
System\Windows\Media\Animation\Generated\Int32KeyFrameCollection.cs (1)
317bool IList.Contains(object keyFrame)
System\Windows\Media\Animation\Generated\Int64KeyFrameCollection.cs (1)
317bool IList.Contains(object keyFrame)
System\Windows\Media\Animation\Generated\MatrixKeyFrameCollection.cs (1)
317bool IList.Contains(object keyFrame)
System\Windows\Media\Animation\Generated\ObjectKeyFrameCollection.cs (1)
317bool IList.Contains(object keyFrame)
System\Windows\Media\Animation\Generated\Point3DKeyFrameCollection.cs (1)
317bool IList.Contains(object keyFrame)
System\Windows\Media\Animation\Generated\PointKeyFrameCollection.cs (1)
317bool IList.Contains(object keyFrame)
System\Windows\Media\Animation\Generated\QuaternionKeyFrameCollection.cs (1)
317bool IList.Contains(object keyFrame)
System\Windows\Media\Animation\Generated\RectKeyFrameCollection.cs (1)
317bool IList.Contains(object keyFrame)
System\Windows\Media\Animation\Generated\Rotation3DKeyFrameCollection.cs (1)
317bool IList.Contains(object keyFrame)
System\Windows\Media\Animation\Generated\SingleKeyFrameCollection.cs (1)
317bool IList.Contains(object keyFrame)
System\Windows\Media\Animation\Generated\SizeKeyFrameCollection.cs (1)
317bool IList.Contains(object keyFrame)
System\Windows\Media\Animation\Generated\StringKeyFrameCollection.cs (1)
317bool IList.Contains(object keyFrame)
System\Windows\Media\Animation\Generated\TimelineCollection.cs (1)
353bool IList.Contains(object value)
System\Windows\Media\Animation\Generated\Vector3DKeyFrameCollection.cs (1)
317bool IList.Contains(object keyFrame)
System\Windows\Media\Animation\Generated\VectorKeyFrameCollection.cs (1)
317bool IList.Contains(object keyFrame)
System\Windows\Media\Effects\Generated\BitmapEffectCollection.cs (1)
356bool IList.Contains(object value)
System\Windows\Media\FamilyMapCollection.cs (1)
198bool SC.IList.Contains(object value)
System\Windows\Media\FamilyTypefaceCollection.cs (1)
184bool SC.IList.Contains(object value)
System\Windows\Media\Generated\DoubleCollection.cs (1)
315bool IList.Contains(object value)
System\Windows\Media\Generated\DrawingCollection.cs (1)
375bool IList.Contains(object value)
System\Windows\Media\Generated\GeneralTransformCollection.cs (1)
363bool IList.Contains(object value)
System\Windows\Media\Generated\GeometryCollection.cs (1)
375bool IList.Contains(object value)
System\Windows\Media\Generated\GradientStopCollection.cs (1)
363bool IList.Contains(object value)
System\Windows\Media\Generated\Int32Collection.cs (1)
315bool IList.Contains(object value)
System\Windows\Media\Generated\PathFigureCollection.cs (1)
364bool IList.Contains(object value)
System\Windows\Media\Generated\PathSegmentCollection.cs (1)
363bool IList.Contains(object value)
System\Windows\Media\Generated\PointCollection.cs (1)
315bool IList.Contains(object value)
System\Windows\Media\Generated\TextEffectCollection.cs (1)
363bool IList.Contains(object value)
System\Windows\Media\Generated\TransformCollection.cs (1)
375bool IList.Contains(object value)
System\Windows\Media\Generated\VectorCollection.cs (1)
315bool IList.Contains(object value)
System\Windows\Media3D\Generated\GeneralTransform3DCollection.cs (1)
361bool IList.Contains(object value)
System\Windows\Media3D\Generated\MaterialCollection.cs (1)
373bool IList.Contains(object value)
System\Windows\Media3D\Generated\Model3DCollection.cs (1)
373bool IList.Contains(object value)
System\Windows\Media3D\Generated\Point3DCollection.cs (1)
313bool IList.Contains(object value)
System\Windows\Media3D\Generated\Transform3DCollection.cs (1)
373bool IList.Contains(object value)
System\Windows\Media3D\Generated\Vector3DCollection.cs (1)
313bool IList.Contains(object value)
System\Windows\Media3D\Visual3DCollection.cs (1)
314bool IList.Contains(object value)
PresentationFramework (17)
MS\Internal\Controls\InnerItemCollectionView.cs (1)
84public override bool Contains(object item)
MS\Internal\Data\LiveShapingList.cs (1)
513public bool Contains(object value)
MS\Internal\Documents\ContentElementCollection.cs (1)
423bool IList.Contains(object value)
System\Windows\Controls\ColumnDefinition.cs (1)
165bool IList.Contains(object value)
System\Windows\Controls\CustomDictionarySources.cs (1)
214bool IList.Contains(object value)
System\Windows\Controls\ItemCollection.cs (1)
262public override bool Contains(object containItem)
System\Windows\Controls\MultipleCopiesCollection.cs (1)
238public bool Contains(object value)
System\Windows\Controls\RowDefinition.cs (1)
160bool IList.Contains(object value)
System\Windows\Controls\UIElementCollection.cs (1)
409bool IList.Contains(object value)
System\Windows\Data\CompositeCollection.cs (1)
149public bool Contains(object containItem)
System\Windows\Documents\TableCellCollection.cs (1)
282bool IList.Contains(object value)
System\Windows\Documents\TableColumnCollection.cs (1)
289bool IList.Contains(object value)
System\Windows\Documents\TableRowCollection.cs (1)
282bool IList.Contains(object value)
System\Windows\Documents\TableRowGroupCollection.cs (1)
282bool IList.Contains(object value)
System\Windows\Documents\TextElementCollection.cs (1)
428bool IList.Contains(object value)
System\Windows\Media\Animation\Generated\ThicknessKeyFrameCollection.cs (1)
317bool IList.Contains(object keyFrame)
System\Windows\TriggerActionCollection.cs (1)
195bool IList.Contains(object value)
Roslyn.Diagnostics.Analyzers (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
666bool IList.Contains(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
235bool IList.Contains(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
344readonly bool IList.Contains(object? value)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
217bool IList.Contains(object? value)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
422bool IList.Contains(object? item)
System.CodeDom (1)
System\CodeDom\CodeNamespaceImportCollection.cs (1)
90bool IList.Contains(object value) => _data.Contains(value);
System.Collections (3)
System\Collections\Generic\OrderedDictionary.cs (3)
1343bool IList.Contains(object? value) => 1502bool IList.Contains(object? value) => value is TKey key && Contains(key); 1788bool IList.Contains(object? value) =>
System.Collections.Immutable (4)
System\Collections\Immutable\ImmutableArray_1.cs (1)
1224bool IList.Contains(object? value)
System\Collections\Immutable\ImmutableList_1.Builder.cs (1)
1051bool IList.Contains(object? value)
System\Collections\Immutable\ImmutableList_1.cs (1)
1021bool IList.Contains(object? value) => IsCompatibleObject(value) && this.Contains((T)value!);
System\Collections\Immutable\ImmutableSortedSet_1.cs (1)
863bool IList.Contains(object? value)
System.Collections.NonGeneric (3)
System\Collections\CollectionBase.cs (1)
143bool IList.Contains(object? value)
System\Collections\SortedList.cs (2)
933public bool Contains(object? key) 1036public bool Contains(object? value)
System.Collections.Specialized (2)
System\Collections\Specialized\OrderedDictionary.cs (1)
580bool IList.Contains(object? value)
System\Collections\Specialized\StringCollection.cs (1)
203bool IList.Contains(object? value)
System.ComponentModel.TypeConverter (4)
System\ComponentModel\Design\DesignerOptionService.cs (1)
366bool IList.Contains(object? value)
System\ComponentModel\EventDescriptorCollection.cs (1)
397bool IList.Contains(object? value) => Contains((EventDescriptor?)value);
System\ComponentModel\ListSortDescriptionCollection.cs (1)
50public bool Contains(object? value) => ((IList)_sorts).Contains(value);
System\ComponentModel\PropertyDescriptorCollection.cs (1)
551bool IList.Contains(object? value) => Contains((PropertyDescriptor)value!);
System.Data.Common (5)
System\Data\Common\DataColumnMappingCollection.cs (1)
223public bool Contains(object? value)
System\Data\Common\DataTableMappingCollection.cs (1)
172public bool Contains(object? value) => (-1 != IndexOf(value));
System\Data\Common\DbParameterCollection.cs (1)
88bool IList.Contains(object? value) => Contains(value!);
System\Data\DataView.cs (1)
854bool IList.Contains(object? value) => (0 <= IndexOf(value as DataRowView));
System\Data\DataViewManager.cs (1)
179bool IList.Contains(object? value) => (value == _item);
System.Diagnostics.TraceSource (1)
System\Diagnostics\TraceListeners.cs (1)
261bool IList.Contains(object? value)
System.DirectoryServices (1)
artifacts\obj\System.DirectoryServices\Debug\net10.0\System.DirectoryServices.notsupported.cs (1)
460bool System.Collections.IList.Contains(object? value) { throw new System.PlatformNotSupportedException(System.SR.DirectoryServices_PlatformNotSupported); }
System.DirectoryServices.AccountManagement (1)
artifacts\obj\System.DirectoryServices.AccountManagement\Debug\net10.0\System.DirectoryServices.AccountManagement.notsupported.cs (1)
381bool System.Collections.IList.Contains(object value) { throw new System.PlatformNotSupportedException(System.SR.DirectoryServicesAccountManagement_PlatformNotSupported); }
System.Linq.Expressions (1)
System\Runtime\CompilerServices\ReadOnlyCollectionBuilder.cs (1)
285bool IList.Contains(object? value)
System.ObjectModel (2)
System\Collections\Specialized\NotifyCollectionChangedEventArgs.cs (2)
306public bool Contains(object? value) => _list.Contains(value); 352public bool Contains(object? value) => _item is null ? value is null : _item.Equals(value);
System.Private.CoreLib (8)
src\libraries\System.Private.CoreLib\src\System\Array.cs (1)
1040bool IList.Contains(object? value)
src\libraries\System.Private.CoreLib\src\System\Collections\ArrayList.cs (4)
239public virtual bool Contains(object? item) => Array.IndexOf(_items, item, 0, _size) >= 0; 1531public bool Contains(object? item) 1623public bool Contains(object? obj) 1882public bool Contains(object? obj)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\List.cs (1)
355bool IList.Contains(object? item)
src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\Collection.cs (1)
305bool IList.Contains(object? value)
src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\ReadOnlyCollection.cs (1)
200bool IList.Contains(object? value)
System.Private.Xml (2)
System\Xml\Xsl\ListBase.cs (1)
157bool System.Collections.IList.Contains(object? value)
System\Xml\Xsl\Runtime\XmlQuerySequence.cs (1)
274bool System.Collections.IList.Contains(object? value)
System.Security.Cryptography.Xml (3)
System\Security\Cryptography\Xml\CanonicalXmlNodeList.cs (1)
46public bool Contains(object? value)
System\Security\Cryptography\Xml\EncryptionPropertyCollection.cs (1)
47bool IList.Contains(object? value)
System\Security\Cryptography\Xml\ReferenceList.cs (1)
44public bool Contains(object? value)
System.ServiceModel.Primitives (1)
netstandard.cs (1)
46bool IList.Contains(object value) { return default; }
System.Text.RegularExpressions (3)
System\Text\RegularExpressions\CaptureCollection.cs (1)
157bool IList.Contains(object? value) =>
System\Text\RegularExpressions\GroupCollection.cs (1)
171bool IList.Contains(object? value) =>
System\Text\RegularExpressions\MatchCollection.cs (1)
170bool IList.Contains(object? value) =>
System.Windows.Forms (38)
System\Windows\Forms\AutoCompleteStringCollection.cs (1)
189bool IList.Contains(object? value) => Contains((string)value!);
System\Windows\Forms\Controls\ComboBox\ComboBox.ObjectCollection.cs (1)
256public bool Contains(object? value)
System\Windows\Forms\Controls\DataGridView\DataGridViewCellCollection.cs (1)
24bool IList.Contains(object? value) => ((IList)_items).Contains(value);
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnCollection.cs (1)
41bool IList.Contains(object? value) => _items.Contains(value);
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.ObjectCollection.cs (1)
186public bool Contains(object? value) => IndexOf(value!) != -1;
System\Windows\Forms\Controls\DataGridView\DataGridViewRowCollection.cs (1)
43bool IList.Contains(object? value) => _items.Contains(value);
System\Windows\Forms\Controls\DataGridView\DataGridViewSelectedCellCollection.cs (1)
28bool IList.Contains(object? value) => ((IList)_items).Contains(value);
System\Windows\Forms\Controls\DataGridView\DataGridViewSelectedColumnCollection.cs (1)
24bool IList.Contains(object? value) => ((IList)_items).Contains(value);
System\Windows\Forms\Controls\DataGridView\DataGridViewSelectedRowCollection.cs (1)
22bool IList.Contains(object? value) => ((IList)_items).Contains(value);
System\Windows\Forms\Controls\ImageList\ImageList.ImageCollection.cs (1)
432bool IList.Contains(object? value)
System\Windows\Forms\Controls\Labels\LinkLabel.LinkCollection.cs (1)
225bool IList.Contains(object? value)
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.CheckedIndexCollection.cs (1)
119bool IList.Contains(object? index)
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.CheckedItemCollection.cs (1)
96public bool Contains(object? item)
System\Windows\Forms\Controls\ListBoxes\ListBox.IntegerCollection.cs (1)
71bool IList.Contains(object? item)
System\Windows\Forms\Controls\ListBoxes\ListBox.ObjectCollection.cs (1)
266bool IList.Contains(object? value) => Contains(value!);
System\Windows\Forms\Controls\ListBoxes\ListBox.SelectedIndexCollection.cs (1)
69bool IList.Contains(object? selectedIndex)
System\Windows\Forms\Controls\ListBoxes\ListBox.SelectedObjectCollection.cs (1)
142public bool Contains(object? selectedObject)
System\Windows\Forms\Controls\ListView\ListView.CheckedIndexCollection.cs (1)
155bool IList.Contains(object? checkedIndex)
System\Windows\Forms\Controls\ListView\ListView.CheckedListViewItemCollection.cs (1)
176bool IList.Contains(object? item)
System\Windows\Forms\Controls\ListView\ListView.ColumnHeaderCollection.cs (1)
351bool IList.Contains(object? value)
System\Windows\Forms\Controls\ListView\ListView.ListViewItemCollection.cs (1)
245bool IList.Contains(object? item)
System\Windows\Forms\Controls\ListView\ListView.SelectedIndexCollection.cs (1)
178bool IList.Contains(object? selectedIndex)
System\Windows\Forms\Controls\ListView\ListView.SelectedListViewItemCollection.cs (1)
301bool IList.Contains(object? item)
System\Windows\Forms\Controls\ListView\ListViewGroupCollection.cs (1)
211bool IList.Contains(object? value)
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewSubItemCollection.cs (1)
213bool IList.Contains(object? item)
System\Windows\Forms\Controls\TabControl\TabControl.TabPageCollection.cs (1)
141bool IList.Contains(object? page)
System\Windows\Forms\Controls\ToolStrips\ToolStripItemCollection.cs (1)
299bool IList.Contains(object? value) { return InnerList.Contains(value); }
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.ToolStripPanelRowCollection.cs (1)
113bool IList.Contains(object? value) { return InnerList.Contains(value); }
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.ToolStripPanelRowControlCollection.cs (1)
176bool IList.Contains(object? value) { return InnerList.Contains(value); }
System\Windows\Forms\Controls\TreeView\TreeNodeCollection.cs (1)
376bool IList.Contains(object? node) => node is TreeNode treeNode && Contains(treeNode);
System\Windows\Forms\Controls\Unsupported\ContextMenu\Menu.MenuItemCollection.cs (1)
64bool IList.Contains(object value) => throw null;
System\Windows\Forms\Controls\Unsupported\DataGrid\GridColumnStylesCollection.cs (1)
32bool IList.Contains(object value) => throw null;
System\Windows\Forms\Controls\Unsupported\DataGrid\GridTableStylesCollection.cs (1)
30bool IList.Contains(object value) => throw null;
System\Windows\Forms\Controls\Unsupported\StatusBar\StatusBar.StatusBarPanelCollection.cs (1)
64bool IList.Contains(object panel) => throw null;
System\Windows\Forms\Controls\Unsupported\ToolBar\ToolBar.ToolBarButtonCollection.cs (1)
64bool IList.Contains(object button) => throw null;
System\Windows\Forms\DataBinding\BindingSource.cs (1)
1494public virtual bool Contains(object? value) => List.Contains(value);
System\Windows\Forms\Layout\ArrangedElementCollection.cs (1)
124bool IList.Contains(object? value) => ((IList)InnerList).Contains(value);
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutStyleCollection.cs (1)
121bool IList.Contains(object? style) => ((IList)_innerList).Contains(style);
System.Windows.Forms.Design (3)
System\Windows\Forms\Design\ControlDesigner.DesignerControlCollection.cs (1)
38bool IList.Contains(object control) => ((IList)_realCollection).Contains(control);
System\Windows\Forms\Design\ImageListDesigner.OriginalImageCollection.cs (1)
137bool IList.Contains(object? value) => value is ImageListImage image && Contains(image);
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (1)
2169bool IList.Contains(object control) => ((IList)_realCollection).Contains(control);
System.Windows.Forms.Primitives (1)
System\Windows\Forms\NonNullCollection.cs (1)
92bool IList.Contains(object? value) => ((IList)_list).Contains(value);
System.Windows.Forms.Tests (1)
System\Windows\Forms\BindingSourceTests.cs (1)
790public bool Contains(object item) => ((IList)_innerList).Contains(item);
System.Xaml.Tests (1)
System\Xaml\XamlTypeTests.cs (1)
3234public bool Contains(object? value) => throw new NotImplementedException();
Test.Utilities (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
666bool IList.Contains(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
235bool IList.Contains(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
344readonly bool IList.Contains(object? value)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
217bool IList.Contains(object? value)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
422bool IList.Contains(object? item)
Text.Analyzers (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
666bool IList.Contains(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
235bool IList.Contains(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
344readonly bool IList.Contains(object? value)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
217bool IList.Contains(object? value)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
422bool IList.Contains(object? item)
348 references to Contains
dotnet-svcutil-lib (41)
FrameworkFork\Microsoft.CodeDom\Compiler\CompilerErrorCollection.cs (1)
113return List.Contains(value);
FrameworkFork\Microsoft.CodeDom\System\CodeAttributeArgumentCollection.cs (1)
116return List.Contains(value);
FrameworkFork\Microsoft.CodeDom\System\CodeAttributeDeclarationCollection.cs (1)
116return List.Contains(value);
FrameworkFork\Microsoft.CodeDom\System\CodeCatchClauseCollection.cs (1)
116return List.Contains(value);
FrameworkFork\Microsoft.CodeDom\System\CodeCommentStatementCollection.cs (1)
116return List.Contains(value);
FrameworkFork\Microsoft.CodeDom\System\CodeDirectiveCollection.cs (1)
77return List.Contains(value);
FrameworkFork\Microsoft.CodeDom\System\CodeExpressionCollection.cs (1)
116return List.Contains(value);
FrameworkFork\Microsoft.CodeDom\System\CodeNamespaceCollection.cs (1)
116return List.Contains(value);
FrameworkFork\Microsoft.CodeDom\System\CodeParameterDeclarationExpressionCollection.cs (1)
116return List.Contains(value);
FrameworkFork\Microsoft.CodeDom\System\CodeStatementCollection.cs (1)
125return List.Contains(value);
FrameworkFork\Microsoft.CodeDom\System\CodeTypeDeclarationCollection.cs (1)
116return List.Contains(value);
FrameworkFork\Microsoft.CodeDom\System\CodeTypeMemberCollection.cs (1)
116return List.Contains(value);
FrameworkFork\Microsoft.CodeDom\System\CodeTypeParameterCollection.cs (1)
81return List.Contains(value);
FrameworkFork\Microsoft.CodeDom\System\CodeTypeReferenceCollection.cs (1)
132return List.Contains(value);
FrameworkFork\Microsoft.Xml\Xml\schema\GenerateConverter.cs (1)
871return ((IList)InterfaceTypes).Contains(type);
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchema.cs (1)
703if (extList.Contains(schema))
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaObjectCollection.cs (1)
92return List.Contains(item);
FrameworkFork\Microsoft.Xml\Xml\Serialization\Advanced\SchemaImporterExtension.cs (1)
141return List.Contains(extension);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlAnyElementAttributes.cs (1)
61return List.Contains(attribute);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlArrayItemAttributes.cs (1)
61return List.Contains(attribute);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlElementAttributes.cs (1)
61return List.Contains(attribute);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemas.cs (3)
141if (List.Contains(schema)) 152if (List.Contains(schema)) 204return List.Contains(schema);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlFormatWriterGenerator.cs (1)
596((IList)Globals.TypeOfNullable.GetInterfaces()).Contains(memberType))
FrameworkFork\System.Web.Services\Services\Description\MimeFormatExtensions.cs (2)
115return List.Contains(mimePart); 282return List.Contains(match);
FrameworkFork\System.Web.Services\Services\Description\ServiceDescription.cs (13)
1612return List.Contains(extension); 1908return List.Contains(operationMessage); 2100return List.Contains(import); 2182return List.Contains(message); 2282return List.Contains(port); 2382return List.Contains(portType); 2482return List.Contains(binding); 2582return List.Contains(service); 2682return List.Contains(messagePart); 2782return List.Contains(bindingOperation); 2864return List.Contains(bindingOperationFault); 2964return List.Contains(operation); 3046return List.Contains(operationFaultMessage);
FrameworkFork\System.Web.Services\Services\Description\ServiceDescriptions.cs (1)
74return List.Contains(serviceDescription);
GenerateDocumentationAndConfigFiles (4)
src\Dependencies\Collections\Internal\IListCalls.cs (1)
47return list.Contains(value);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
669return backingList.Contains(value);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
345=> ((IList)ReadOnlyList).Contains(value);
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
221if (list.Contains(value))
Metrics (4)
src\Dependencies\Collections\Internal\IListCalls.cs (1)
47return list.Contains(value);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
669return backingList.Contains(value);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
345=> ((IList)ReadOnlyList).Contains(value);
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
221if (list.Contains(value))
Metrics.Legacy (4)
src\Dependencies\Collections\Internal\IListCalls.cs (1)
47return list.Contains(value);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
669return backingList.Contains(value);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
345=> ((IList)ReadOnlyList).Contains(value);
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
221if (list.Contains(value))
Microsoft.Build.Framework (4)
IListCalls.cs (1)
45return list.Contains(value);
ImmutableSegmentedList`1.cs (1)
667return backingList.Contains(value);
ImmutableSegmentedList`1+ValueBuilder.cs (1)
343=> ((IList)ReadOnlyList).Contains(value);
SegmentedArray`1.cs (1)
222if (list.Contains(value))
Microsoft.CodeAnalysis (4)
src\Dependencies\Collections\Internal\IListCalls.cs (1)
47return list.Contains(value);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
669return backingList.Contains(value);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
345=> ((IList)ReadOnlyList).Contains(value);
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
221if (list.Contains(value))
Microsoft.CodeAnalysis.Analyzers (4)
src\Dependencies\Collections\Internal\IListCalls.cs (1)
47return list.Contains(value);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
669return backingList.Contains(value);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
345=> ((IList)ReadOnlyList).Contains(value);
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
221if (list.Contains(value))
Microsoft.CodeAnalysis.AnalyzerUtilities (4)
src\Dependencies\Collections\Internal\IListCalls.cs (1)
47return list.Contains(value);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
669return backingList.Contains(value);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
345=> ((IList)ReadOnlyList).Contains(value);
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
221if (list.Contains(value))
Microsoft.CodeAnalysis.BannedApiAnalyzers (4)
src\Dependencies\Collections\Internal\IListCalls.cs (1)
47return list.Contains(value);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
669return backingList.Contains(value);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
345=> ((IList)ReadOnlyList).Contains(value);
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
221if (list.Contains(value))
Microsoft.CodeAnalysis.CodeStyle (4)
src\Dependencies\Collections\Internal\IListCalls.cs (1)
47return list.Contains(value);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
669return backingList.Contains(value);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
345=> ((IList)ReadOnlyList).Contains(value);
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
221if (list.Contains(value))
Microsoft.CodeAnalysis.Collections.Package (4)
Internal\IListCalls.cs (1)
47return list.Contains(value);
Segmented\ImmutableSegmentedList`1.cs (1)
669return backingList.Contains(value);
Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
345=> ((IList)ReadOnlyList).Contains(value);
Segmented\SegmentedArray`1.cs (1)
221if (list.Contains(value))
Microsoft.CodeAnalysis.Extensions.Package (4)
src\Dependencies\Collections\Internal\IListCalls.cs (1)
47return list.Contains(value);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
669return backingList.Contains(value);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
345=> ((IList)ReadOnlyList).Contains(value);
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
221if (list.Contains(value))
Microsoft.CodeAnalysis.InteractiveHost (4)
src\Dependencies\Collections\Internal\IListCalls.cs (1)
47return list.Contains(value);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
669return backingList.Contains(value);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
345=> ((IList)ReadOnlyList).Contains(value);
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
221if (list.Contains(value))
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (4)
src\Dependencies\Collections\Internal\IListCalls.cs (1)
47return list.Contains(value);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
669return backingList.Contains(value);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
345=> ((IList)ReadOnlyList).Contains(value);
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
221if (list.Contains(value))
Microsoft.CodeAnalysis.PublicApiAnalyzers (4)
src\Dependencies\Collections\Internal\IListCalls.cs (1)
47return list.Contains(value);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
669return backingList.Contains(value);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
345=> ((IList)ReadOnlyList).Contains(value);
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
221if (list.Contains(value))
Microsoft.CodeAnalysis.ResxSourceGenerator (4)
src\Dependencies\Collections\Internal\IListCalls.cs (1)
47return list.Contains(value);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
669return backingList.Contains(value);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
345=> ((IList)ReadOnlyList).Contains(value);
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
221if (list.Contains(value))
Microsoft.CodeAnalysis.Threading.Package (4)
src\Dependencies\Collections\Internal\IListCalls.cs (1)
47return list.Contains(value);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
669return backingList.Contains(value);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
345=> ((IList)ReadOnlyList).Contains(value);
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
221if (list.Contains(value))
Microsoft.CodeAnalysis.UnitTests (30)
Collections\ImmutableListTestBase.cs (2)
25protected static readonly Func<IList, object?, object> ContainsFunc = (l, v) => l.Contains(v); 127Assert.Equal(((IList)list).Contains(i), hitTest[i]);
Collections\ImmutableSegmentedListBuilderTest.cs (2)
317Assert.True(list.Contains(5)); 318Assert.False(list.Contains(7));
Collections\List\IList.NonGeneric.Tests.cs (17)
51while (collection.Contains(toAdd) || InvalidValues.Contains(toAdd)) 475while (collection.Contains(toAdd)) 481while (collection.Contains(toAdd)) 525while (collection.Contains(toAdd)) 565while (collection.Contains(item)) 567Assert.False(collection.Contains(item)); 576Assert.True(collection.Contains(item)); 585Assert.False(collection.Contains(null)); 596Assert.True(collection.Contains(null)); 620Assert.Throws<ArgumentException>(() => collection.Contains(invalidValue)) 636if (list.Contains(value)) 654if (!list.Contains(value)) 883while (collection.Contains(value)) 902while (list.Contains(value) || Enumerable.Contains(InvalidValues, value)) 926if (!collection.Contains(value)) 945if (!collection.Contains(value)) 968Assert.True(collection.Contains(value));
Collections\List\SegmentedList.Generic.Tests.Misc.cs (8)
511Assert.True(_ilist.Contains(items[i])); //"Should contain item." 522Assert.False(_ilist.Contains(itemsY[i])); //"Should not contain item" 533Assert.False(_ilist.Contains(items[i])); //"Should not contain item" 546Assert.True(_ilist.Contains(items[i])); //"Should contain item." 562Assert.True(_ilist.Contains(items[items.Length / 2])); //"Should contain item." 565Assert.False(_ilist.Contains(items[items.Length / 2])); //"Should not contain item" 578Assert.True(_ilist.Contains(value)); //"Should contain item." 586Assert.False(_ilist.Contains(new LinkedListNode<string>("rah")),
Collections\SegmentedArrayTests.cs (1)
87Assert.Throws<NullReferenceException>(() => ((IList)data).Contains(IntPtr.Zero));
Microsoft.CodeAnalysis.Workspaces (4)
src\Dependencies\Collections\Internal\IListCalls.cs (1)
47return list.Contains(value);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
669return backingList.Contains(value);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
345=> ((IList)ReadOnlyList).Contains(value);
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
221if (list.Contains(value))
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (4)
src\Dependencies\Collections\Internal\IListCalls.cs (1)
47return list.Contains(value);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
669return backingList.Contains(value);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
345=> ((IList)ReadOnlyList).Contains(value);
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
221if (list.Contains(value))
Microsoft.Maui.Controls (6)
ListProxy.cs (1)
76 return _list.Contains(item);
Shell\ShellElementCollection.cs (5)
127 public virtual bool Contains(BaseShellItem item) => Inner.Contains(item); 170 if (VisibleItems.Contains(element)) 182 if (VisibleItems.Contains(element)) 199 if (VisibleItems.Contains(item)) 203 else if (VisibleItems.Contains(element))
Microsoft.VisualBasic.Core (1)
Microsoft\VisualBasic\Collection.vb (1)
719Private Function IListContains(ByVal value As Object) As Boolean Implements IList.Contains
PresentationFramework (29)
MS\Internal\ListOfObject.cs (1)
66return _list.Contains(item);
System\Windows\Automation\Peers\DataGridItemAutomationPeer.cs (3)
272return this.OwningDataGrid.SelectedItems.Contains(Item); 293if (this.OwningDataGrid.SelectedItems.Contains(item)) 322if (this.OwningDataGrid.SelectedItems.Contains(item))
System\Windows\Controls\Calendar.cs (1)
1115if (!e.RemovedItems.Contains(addedDate))
System\Windows\Controls\ColumnDefinition.cs (1)
163/// <see cref="IList.Contains"/>
System\Windows\Controls\CustomDictionarySources.cs (1)
216return ((IList)_uriList).Contains(value);
System\Windows\Controls\DataGrid.cs (9)
1323return SelectedItems.Contains(item) ? Visibility.Visible : Visibility.Collapsed; 1355return _selectionAnchor != null && SelectedItems.Contains(_selectionAnchor.Value.Item) && 2129if (SelectedItems.Contains(CollectionView.NewItemPlaceholder)) 2609if (SelectedItems.Contains(currentInfo.Item)) 3632bool wasSelected = SelectedItems.Contains(currentAddItem); 3824if (HasNewItemPlaceholder && SelectedItems.Contains(CollectionView.NewItemPlaceholder)) 4205if (SelectedItems.Contains(rowItem)) 5077if (SelectedItems.Contains(item)) 5115SelectedItems.Contains(cellInfo.Item))
System\Windows\Controls\DataGridCellsPanel.cs (1)
633Debug.Assert(!children.Contains(child), "we incorrectly identified a recycled container");
System\Windows\Controls\DataGridColumnCollection.cs (1)
632if (newColumns != null && newColumns.Contains(column))
System\Windows\Controls\RowDefinition.cs (1)
158/// <see cref="IList.Contains"/>
System\Windows\Controls\VirtualizingStackPanel.cs (1)
8901Debug.Assert(!children.Contains(child), "we incorrectly identified a recycled container");
System\Windows\Data\BindingListCollectionView.cs (2)
91: CollectionProxy.Contains(item); 1787return (!_isGrouping) ? CollectionProxy.Contains(item) : (_group.LeafIndexOf(item) >= 0);
System\Windows\Data\ListCollectionView.cs (2)
1193: SourceList.Contains(editItem) && PassesFilter(editItem); 2256return (!IsGrouping) ? InternalList.Contains(item) : (_group.LeafIndexOf(item) >= 0);
System\Windows\Documents\LinkTarget.cs (1)
88return ((IList)this).Contains((object)value);
System\Windows\Documents\TableCellCollection.cs (1)
284return ((IList)_cellCollectionInternal).Contains(value);
System\Windows\Documents\TableColumnCollection.cs (1)
291return ((IList)_columnCollection).Contains(value);
System\Windows\Documents\TableRowCollection.cs (1)
284return ((IList)_rowCollectionInternal).Contains(value);
System\Windows\Documents\TableRowGroupCollection.cs (1)
284return ((IList)_rowGroupCollectionInternal).Contains(value);
Roslyn.Diagnostics.Analyzers (4)
src\Dependencies\Collections\Internal\IListCalls.cs (1)
47return list.Contains(value);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
669return backingList.Contains(value);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
345=> ((IList)ReadOnlyList).Contains(value);
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
221if (list.Contains(value))
System.CodeDom (14)
src\libraries\Common\src\System\CodeDom\CodeTypeReferenceCollection.cs (1)
63public bool Contains(CodeTypeReference value) => List.Contains(value);
System\CodeDom\CodeAttributeArgumentCollection.cs (1)
51public bool Contains(CodeAttributeArgument value) => List.Contains(value);
System\CodeDom\CodeAttributeDeclarationCollection.cs (1)
53public bool Contains(CodeAttributeDeclaration value) => List.Contains(value);
System\CodeDom\CodeCatchClauseCollection.cs (1)
51public bool Contains(CodeCatchClause value) => List.Contains(value);
System\CodeDom\CodeCommentStatementCollection.cs (1)
51public bool Contains(CodeCommentStatement value) => List.Contains(value);
System\CodeDom\CodeDirectiveCollection.cs (1)
51public bool Contains(CodeDirective value) => List.Contains(value);
System\CodeDom\CodeExpressionCollection.cs (1)
51public bool Contains(CodeExpression value) => List.Contains(value);
System\CodeDom\CodeNamespaceCollection.cs (1)
51public bool Contains(CodeNamespace value) => List.Contains(value);
System\CodeDom\CodeParameterDeclarationExpressionCollection.cs (1)
51public bool Contains(CodeParameterDeclarationExpression value) => List.Contains(value);
System\CodeDom\CodeStatementCollection.cs (1)
53public bool Contains(CodeStatement value) => List.Contains(value);
System\CodeDom\CodeTypeDeclarationCollection.cs (1)
51public bool Contains(CodeTypeDeclaration value) => List.Contains(value);
System\CodeDom\CodeTypeMemberCollection.cs (1)
51public bool Contains(CodeTypeMember value) => List.Contains(value);
System\CodeDom\CodeTypeParameterCollection.cs (1)
53public bool Contains(CodeTypeParameter value) => List.Contains(value);
System\CodeDom\Compiler\CompilerErrorCollection.cs (1)
51public bool Contains(CompilerError value) => List.Contains(value);
System.ComponentModel.TypeConverter (2)
System\ComponentModel\Design\DesignerVerbCollection.cs (1)
49public bool Contains(DesignerVerb? value) => List.Contains(value);
System\ComponentModel\ListSortDescriptionCollection.cs (1)
50public bool Contains(object? value) => ((IList)_sorts).Contains(value);
System.Data.Common (3)
System\Data\Common\DbParameterCollection.cs (3)
79/// For a description of this member, see <see cref="IList.Contains" />. 81/// <param name="value">For a description of this member, see <see cref="IList.Contains" />.</param> 82/// <returns>For a description of this member, see <see cref="IList.Contains" />.</returns>
System.Diagnostics.TraceSource (1)
System\Diagnostics\TraceListeners.cs (1)
127return ((IList)this).Contains(listener);
System.Linq (1)
System\Linq\OfType.SpeedOpt.cs (1)
183return list.Contains(value);
System.ObjectModel (1)
System\Collections\Specialized\NotifyCollectionChangedEventArgs.cs (1)
306public bool Contains(object? value) => _list.Contains(value);
System.Private.CoreLib (4)
src\libraries\System.Private.CoreLib\src\System\Collections\ArrayList.cs (4)
810return _list.Contains(obj); 1535return _list.Contains(item); 1625return _list.Contains(obj); 1884return _list.Contains(obj);
System.Private.DataContractSerialization (3)
src\libraries\Common\src\System\CodeDom\CodeTypeReferenceCollection.cs (1)
63public bool Contains(CodeTypeReference value) => List.Contains(value);
System\Runtime\Serialization\Json\JsonFormatWriterGenerator.cs (1)
677((IList)Globals.TypeOfNullable.GetInterfaces()).Contains(memberType))
System\Runtime\Serialization\XmlFormatWriterGenerator.cs (1)
690((IList)Globals.TypeOfNullable.GetInterfaces()).Contains(memberType))
System.Private.Xml (8)
System\Xml\Schema\XmlSchema.cs (1)
530if (extList.Contains(schema))
System\Xml\Schema\XmlSchemaObjectCollection.cs (1)
51return List.Contains(item);
System\Xml\Serialization\XmlAnyElementAttributes.cs (1)
54return List.Contains(attribute);
System\Xml\Serialization\XmlArrayItemAttributes.cs (1)
54return List.Contains(attribute);
System\Xml\Serialization\XmlElementAttributes.cs (1)
54return List.Contains(attribute);
System\Xml\Serialization\XmlSchemas.cs (3)
93if (List.Contains(schema)) 100if (List.Contains(schema)) 132return List.Contains(schema);
System.Windows.Forms (15)
System\Windows\Forms\Control.ControlCollection.cs (1)
166public bool Contains(Control? control) => ((IList)InnerList).Contains(control);
System\Windows\Forms\Controls\DataGridView\DataGridViewCellCollection.cs (1)
24bool IList.Contains(object? value) => ((IList)_items).Contains(value);
System\Windows\Forms\Controls\DataGridView\DataGridViewSelectedCellCollection.cs (2)
28bool IList.Contains(object? value) => ((IList)_items).Contains(value); 118public bool Contains(DataGridViewCell dataGridViewCell) => ((IList)_items).Contains(dataGridViewCell);
System\Windows\Forms\Controls\DataGridView\DataGridViewSelectedColumnCollection.cs (2)
24bool IList.Contains(object? value) => ((IList)_items).Contains(value); 85public bool Contains(DataGridViewColumn dataGridViewColumn) => ((IList)_items).Contains(dataGridViewColumn);
System\Windows\Forms\Controls\DataGridView\DataGridViewSelectedRowCollection.cs (2)
22bool IList.Contains(object? value) => ((IList)_items).Contains(value); 71public bool Contains(DataGridViewRow dataGridViewRow) => ((IList)_items).Contains(dataGridViewRow);
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelCell.cs (2)
400_restoreOnVisibleChanged = (ToolStripPanelRow is not null && ((IList)ToolStripPanelRow.Cells).Contains(this)); 407if (ToolStripPanelRow is not null && ((IList)ToolStripPanelRow.Cells).Contains(this))
System\Windows\Forms\DataBinding\BindingSource.cs (1)
1494public virtual bool Contains(object? value) => List.Contains(value);
System\Windows\Forms\Layout\ArrangedElementCollection.cs (1)
124bool IList.Contains(object? value) => ((IList)InnerList).Contains(value);
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutColumnStyleCollection.cs (1)
31public bool Contains(ColumnStyle columnStyle) => ((IList)this).Contains(columnStyle);
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutRowStyleCollection.cs (1)
31public bool Contains(RowStyle rowStyle) => ((IList)this).Contains(rowStyle);
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutStyleCollection.cs (1)
121bool IList.Contains(object? style) => ((IList)_innerList).Contains(style);
System.Windows.Forms.Design (16)
System\ComponentModel\Design\DataSourceDescriptorCollection.cs (1)
20public bool Contains(DataSourceDescriptor value) => List.Contains(value);
System\ComponentModel\Design\DataSourceGroupCollection.cs (1)
20public bool Contains(DataSourceGroup value) => List.Contains(value);
System\ComponentModel\Design\DesignerActionItemCollection.cs (1)
18public bool Contains(DesignerActionItem value) => List.Contains(value);
System\ComponentModel\Design\DesignerActionListCollection.cs (1)
52public bool Contains(DesignerActionList? value) => List.Contains(value);
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.ComponentListCodeDomSerializer.cs (1)
473if (!shimObjectNames.Contains(name))
System\Windows\Forms\Design\Behavior\AdornerCollection.cs (1)
137return List.Contains(value);
System\Windows\Forms\Design\Behavior\GlyphCollection.cs (2)
82return List.Contains(value); 118if (List.Contains(value))
System\Windows\Forms\Design\ControlDesigner.DesignerControlCollection.cs (1)
38bool IList.Contains(object control) => ((IList)_realCollection).Contains(control);
System\Windows\Forms\Design\DataSourceDescriptorCollection.cs (1)
31return List.Contains(value);
System\Windows\Forms\Design\DataSourceGroupCollection.cs (1)
31return List.Contains(value);
System\Windows\Forms\Design\ListAdapter.cs (2)
32bool ICollection<T>.Contains(T item) => _list.Contains(item); 41if (_list.IsReadOnly || !_list.Contains(item))
System\Windows\Forms\Design\OleDragDropHandler.cs (1)
1056if (c.Parent is null || !compList.Contains(c.Parent))
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (1)
2169bool IList.Contains(object control) => ((IList)_realCollection).Contains(control);
System\Windows\Forms\Design\ToolStripCollectionEditor.ToolStripItemEditorForm.cs (1)
1164if (!_targetCollectionList.Contains(item.Component))
System.Windows.Forms.Design.Tests (1)
System\Windows\Forms\Design\ControlDesigner.DesignerControlCollectionTests.cs (1)
80((IList)_collection).Contains(control).Should().BeTrue();
System.Windows.Forms.Primitives (1)
System\Windows\Forms\NonNullCollection.cs (1)
92bool IList.Contains(object? value) => ((IList)_list).Contains(value);
System.Windows.Forms.Tests (87)
System\Windows\Forms\AutoCompleteStringCollectionTests.cs (3)
81Assert.True(collection.Contains(s)); 82Assert.False(collection.Contains("anotherValue")); 90Assert.False(collection.Contains("value"));
System\Windows\Forms\BindingSourceTests.cs (1)
790public bool Contains(object item) => ((IList)_innerList).Contains(item);
System\Windows\Forms\CheckedListBox.CheckedIndexCollectionTests.cs (1)
76((IList)_collection).Contains(index).Should().Be(expected);
System\Windows\Forms\ColumnHeaderCollectionTests.cs (7)
601Assert.True(collection.Contains(header)); 602Assert.False(collection.Contains(new ColumnHeader())); 603Assert.False(collection.Contains(new object())); 604Assert.False(collection.Contains(null)); 613Assert.False(collection.Contains(new ColumnHeader())); 614Assert.False(collection.Contains(new object())); 615Assert.False(collection.Contains(null));
System\Windows\Forms\DataGridViewSelectedCellCollectionTests.cs (6)
356Assert.False(iList.Contains(value)); 374Assert.True(iList.Contains(control.Rows[0].Cells[0])); 375Assert.False(iList.Contains(control.Rows[1].Cells[0])); 376Assert.True(iList.Contains(control.Rows[2].Cells[0])); 377Assert.False(iList.Contains(new SubDataGridViewCell())); 378Assert.False(iList.Contains(null));
System\Windows\Forms\DataGridViewSelectedColumnCollectionTests.cs (6)
392Assert.False(iList.Contains(value)); 414Assert.True(iList.Contains(control.Columns[0])); 415Assert.False(iList.Contains(control.Columns[1])); 416Assert.True(iList.Contains(control.Columns[2])); 417Assert.False(iList.Contains(new DataGridViewColumn())); 418Assert.False(iList.Contains(null));
System\Windows\Forms\DataGridViewSelectedRowCollectionTests.cs (6)
347Assert.False(iList.Contains(value)); 364Assert.True(iList.Contains(control.Rows[0])); 365Assert.False(iList.Contains(control.Rows[1])); 366Assert.True(iList.Contains(control.Rows[2])); 367Assert.False(iList.Contains(new DataGridViewRow())); 368Assert.False(iList.Contains(null));
System\Windows\Forms\ImageList.ImageCollectionTests.cs (2)
1741Assert.Throws<NotSupportedException>(() => collection.Contains(value)); 1757Assert.False(collection.Contains(value));
System\Windows\Forms\ListBox.IntegerCollectionTests.cs (14)
1970Assert.False(collection.Contains(0)); 1971Assert.False(collection.Contains(1)); 1972Assert.False(collection.Contains(new object())); 1973Assert.False(collection.Contains(null)); 1986Assert.False(collection.Contains(0)); 1987Assert.True(collection.Contains(1)); 1988Assert.False(collection.Contains(2)); 1989Assert.False(collection.Contains(new object())); 1990Assert.False(collection.Contains(null)); 1995Assert.True(collection.Contains(0)); 1996Assert.True(collection.Contains(1)); 1997Assert.False(collection.Contains(2)); 1998Assert.False(collection.Contains(new object())); 1999Assert.False(collection.Contains(null));
System\Windows\Forms\ListBox.ObjectCollectionTests.cs (12)
9267Assert.False(collection.Contains(0)); 9268Assert.False(collection.Contains(1)); 9269Assert.False(collection.Contains(new object())); 9282Assert.False(collection.Contains(0)); 9283Assert.True(collection.Contains(1)); 9284Assert.False(collection.Contains(2)); 9285Assert.False(collection.Contains(new object())); 9290Assert.True(collection.Contains(0)); 9291Assert.True(collection.Contains(1)); 9292Assert.False(collection.Contains(2)); 9293Assert.False(collection.Contains(new object())); 9302Assert.Throws<ArgumentNullException>("value", () => collection.Contains(null));
System\Windows\Forms\ListView.CheckedIndexCollectionTests.cs (1)
233ilist.Contains(value).Should().Be(expected);
System\Windows\Forms\ListViewGroupCollectionTests.cs (7)
673Assert.True(collection.Contains(group)); 674Assert.False(collection.Contains(new ListViewGroup())); 675Assert.False(collection.Contains(new object())); 676Assert.False(collection.Contains(null)); 685Assert.False(collection.Contains(new ListViewGroup())); 686Assert.False(collection.Contains(new object())); 687Assert.False(collection.Contains(null));
System\Windows\Forms\ListViewSubItemCollectionTests.cs (7)
516Assert.True(collection.Contains(subItem)); 517Assert.False(collection.Contains(new ListViewItem.ListViewSubItem())); 518Assert.False(collection.Contains(new object())); 519Assert.False(collection.Contains(null)); 528Assert.False(collection.Contains(new ListViewItem.ListViewSubItem())); 529Assert.False(collection.Contains(new object())); 530Assert.False(collection.Contains(null));
System\Windows\Forms\TabControl.TabPageCollectionTests.cs (10)
1587Assert.True(iList.Contains(child1)); 1588Assert.True(iList.Contains(child2)); 1589Assert.False(iList.Contains(new TabPage())); 1590Assert.False(iList.Contains(new Control())); 1591Assert.False(iList.Contains(new object())); 1592Assert.False(iList.Contains(null)); 1601Assert.False(iList.Contains(new TabPage())); 1602Assert.False(iList.Contains(new Control())); 1603Assert.False(iList.Contains(new object())); 1604Assert.False(iList.Contains(null));
System\Windows\Forms\TableLayoutStyleCollectionTests.cs (4)
263Assert.True(collection.Contains(style)); 264Assert.False(collection.Contains(new ColumnStyle())); 265Assert.False(collection.Contains(new RowStyle())); 266Assert.False(collection.Contains(null));
Test.Utilities (4)
src\Dependencies\Collections\Internal\IListCalls.cs (1)
47return list.Contains(value);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
669return backingList.Contains(value);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
345=> ((IList)ReadOnlyList).Contains(value);
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
221if (list.Contains(value))
Text.Analyzers (4)
src\Dependencies\Collections\Internal\IListCalls.cs (1)
47return list.Contains(value);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
669return backingList.Contains(value);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
345=> ((IList)ReadOnlyList).Contains(value);
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
221if (list.Contains(value))