Implemented interface member:
method
Contains
System.Collections.IList.Contains(System.Object)
5 overrides of Contains
System.Private.CoreLib (5)
src\libraries\System.Private.CoreLib\src\System\Collections\ArrayList.cs (5)
808public override bool Contains(object? obj) 1260public override bool Contains(object? item) 1722public override bool Contains(object? obj) 1977public override bool Contains(object? obj) 2258public override bool Contains(object? item)
109 references to Contains
dotnet-svcutil-lib (29)
FrameworkFork\Microsoft.CodeDom\System\CodeNamespaceImportCollection.cs (1)
212return _data.Contains(value);
FrameworkFork\Microsoft.Xml\Xml\schema\ContentValidator.cs (5)
1094if (!particles.Contains(p)) 1110if (!elem.QualifiedName.Equals(member.QualifiedName) && !particles.Contains(member)) 1743if (!names.Contains(s)) 1894if (!names.Contains(s)) 2208if (!names.Contains(s))
FrameworkFork\Microsoft.Xml\Xml\schema\Preprocessor.cs (8)
326if (!schema.ImportedNamespaces.Contains(importNS)) 718if (!imports.Contains(includedSchema)) 722if (!_rootSchema.ImportedNamespaces.Contains(importNS)) 889if (originalGroup == null || (parentSchema != originalSchema && !includesOfRedefine.Contains(parentSchema))) 915if (originalAttrGroup == null || (parentSchema != originalSchema && !includesOfRedefine.Contains(parentSchema))) 941if (originalType == null || (parentSchema != originalSchema && !includesOfRedefine.Contains(parentSchema))) 971if (originalType == null || (parentSchema != originalSchema && !includesOfRedefine.Contains(parentSchema))) 992if (includesList.Contains(schema))
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaCollectionCompiler.cs (2)
53Debug.Assert(!members.Contains(element)); 430if (substitutionGroup.Members.Contains(examplar))
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaSetCompiler.cs (2)
460if (!members.Contains(element)) 483if (substitutionGroup.Members.Contains(examplar))
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaSet.cs (8)
542schemaToRemove.ImportedSchemas.Contains(mainSchema)) 558if (mainSchema.ImportedNamespaces.Contains(tns)) 1120if (!oldSubstGroup.Members.Contains(substGroup.Members[i])) 1137if (substitutionGroup.Members.Contains(headElement)) 1327if (!existingSchemas.Contains(schemaToRemove)) 1334if (!existingSchemas.Contains((XmlSchema)elementToRemove.Parent)) 1341if (!existingSchemas.Contains((XmlSchema)attributeToRemove.Parent)) 1348if (!existingSchemas.Contains((XmlSchema)schemaTypeToRemove.Parent))
FrameworkFork\Microsoft.Xml\Xml\Serialization\ImportContext.cs (1)
309if (list.Contains(o))
FrameworkFork\System.Web.Services\Services\Description\ServiceDescription.cs (2)
1711if (!_handledElements.Contains(element)) 1742return _handledElements.Contains(element);
PresentationBuildTasks (3)
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\BamlRecordWriter.cs (1)
693if (!asmList.Contains(asmName))
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\MarkupExtensionParser.cs (1)
1358if (propertyNamesSoFar.Contains(propertyName))
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XmlnsDictionary.cs (1)
500if (!prefixes.Contains(_nsDeclarations[thisDecl].Prefix))
PresentationFramework (17)
MS\Internal\Controls\InnerItemCollectionView.cs (1)
86return _viewList.Contains(item);
MS\Internal\Data\CollectionViewGroupRoot.cs (1)
263if (names.Contains(child.Group.Name))
MS\Internal\PtsHost\PtsContext.cs (4)
285Invariant.Assert(!_pages.Contains(ptsPage), "Page already exists."); 326Invariant.Assert(!_pageBreakRecords.Contains(br), "Break record already exists."); 480Invariant.Assert(_pages.Contains(ptsPage), "Page does not exist."); 517Invariant.Assert(_pageBreakRecords.Contains(br), "Break record does not exist.");
System\Windows\Data\CompositeCollection.cs (2)
151return InternalList.Contains(containItem); 474if (InternalList.Contains(cc))
System\Windows\Documents\Highlights.cs (2)
222Invariant.Assert(!_layers.Contains(highlightLayer)); 240Invariant.Assert(_layers != null && _layers.Contains(highlightLayer));
System\Windows\Markup\MarkupExtensionParser.cs (1)
1358if (propertyNamesSoFar.Contains(propertyName))
System\Windows\Markup\XmlnsDictionary.cs (1)
500if (!prefixes.Contains(_nsDeclarations[thisDecl].Prefix))
System\Windows\Navigation\NavigationService.cs (5)
611Debug.Assert(ChildNavigationServices.Contains(ncChild), "Child NavigationService must already exist"); 627if (PendingNavigationList.Contains(ncChild)) 1904if (_parentNavigationService.PendingNavigationList.Contains(this)) 2109if (!_recursiveNavigateList.Contains(localNavigateQueueItem)) 3976if (!_parentNavigationService.PendingNavigationList.Contains(this))
System.CodeDom (1)
System\CodeDom\CodeNamespaceImportCollection.cs (1)
90bool IList.Contains(object value) => _data.Contains(value);
System.Collections.NonGeneric (1)
System\Collections\CollectionBase.cs (1)
145return InnerList.Contains(value);
System.Collections.Specialized (1)
System\Collections\Specialized\StringCollection.cs (1)
95return data.Contains(value);
System.ComponentModel.TypeConverter (1)
System\ComponentModel\Design\DesignerOptionService.cs (1)
369return _children.Contains(value);
System.Data.Common (13)
System\Data\XMLDiffLoader.cs (1)
43if (!_tables!.Contains(r.ChildTable))
System\Data\xmlsaver.cs (8)
292if (!_tables.Contains(((ForeignKeyConstraint)constr).RelatedTable)) 301while (_constraintNames!.Contains(name)) 483if (!_tables.Contains(r.ChildTable)) 495if (!_relations.Contains(r)) 2073if (!_tables.Contains(foreign.RelatedTable) || !_tables.Contains(foreign.Table)) 2309if (!_tables.Contains(r.ChildTable)) 2769if (!_dTables.Contains(r.ChildTable))
System\Data\XMLSchema.cs (3)
177if (schemaList.Contains(schema)) 785if (_refTables.Contains(element.QualifiedName.Namespace + ":" + typeName)) 1042if (_complexTypes!.Contains(ct))
System\Data\XmlToDatasetMap.cs (1)
426if (!tableList.Contains(childRelations.ChildTable))
System.Diagnostics.Process (2)
System\Diagnostics\ProcessModuleCollection.cs (1)
37public bool Contains(ProcessModule module) => InnerList.Contains(module);
System\Diagnostics\ProcessThreadCollection.cs (1)
65return InnerList.Contains(thread);
System.Private.CoreLib (4)
src\libraries\System.Private.CoreLib\src\System\Collections\ArrayList.cs (3)
1264return _list.Contains(item); 1724return _list.Contains(obj); 1979return _list.Contains(obj);
src\libraries\System.Private.CoreLib\src\System\Security\SecurityElement.cs (1)
157if (value != null && value.Contains(null))
System.Private.Xml (26)
System\Xml\Schema\ContentValidator.cs (5)
1014if (!particles.Contains(p)) 1030if (!elem.QualifiedName.Equals(member.QualifiedName) && !particles.Contains(member)) 1641if (!names.Contains(s)) 1790if (!names.Contains(s)) 2067if (!names.Contains(s))
System\Xml\Schema\Preprocessor.cs (8)
306if (!schema.ImportedNamespaces.Contains(importNS)) 692if (!imports.Contains(includedSchema)) 696if (!_rootSchema!.ImportedNamespaces.Contains(importNS)) 856if (originalGroup == null || (parentSchema != originalSchema && !includesOfRedefine.Contains(parentSchema))) 881if (originalAttrGroup == null || (parentSchema != originalSchema && !includesOfRedefine.Contains(parentSchema))) 906if (originalType == null || (parentSchema != originalSchema && !includesOfRedefine.Contains(parentSchema))) 935if (originalType == null || (parentSchema != originalSchema && !includesOfRedefine.Contains(parentSchema))) 956if (includesList.Contains(schema))
System\Xml\Schema\SchemaCollectionCompiler.cs (2)
54Debug.Assert(!members.Contains(element)); 442if (substitutionGroup.Members.Contains(examplar))
System\Xml\Schema\SchemaSetCompiler.cs (2)
476if (!members.Contains(element)) 500if (substitutionGroup.Members.Contains(examplar))
System\Xml\Schema\XmlSchemaSet.cs (8)
430schemaToRemove.ImportedSchemas.Contains(mainSchema)) 445if (mainSchema.ImportedNamespaces.Contains(tns)) 968if (!oldSubstGroup.Members.Contains(substGroup.Members[i])) 985if (substitutionGroup.Members.Contains(headElement)) 1169if (!existingSchemas.Contains(schemaToRemove)) 1177if (!existingSchemas.Contains((XmlSchema?)elementToRemove!.Parent)) 1185if (!existingSchemas.Contains((XmlSchema?)attributeToRemove!.Parent)) 1193if (!existingSchemas.Contains((XmlSchema?)schemaTypeToRemove!.Parent))
System\Xml\Serialization\ImportContext.cs (1)
235if (list.Contains(o))
System.Security.Cryptography.Xml (4)
System\Security\Cryptography\Xml\CanonicalXmlNodeList.cs (1)
48return _nodeArray.Contains(value);
System\Security\Cryptography\Xml\EncryptionPropertyCollection.cs (2)
52return _props.Contains(value); 57return _props.Contains(value);
System\Security\Cryptography\Xml\ReferenceList.cs (1)
46return _references.Contains(value);
System.Web.Services.Description (2)
System\Web\Services\Description\ServiceDescription.cs (2)
1211if (!_handledElements.Contains(element)) 1229return _handledElements == null ? false : _handledElements.Contains(element);
System.Windows.Forms (2)
System\Windows\Forms\FormCollection.cs (1)
85inCollection = InnerList.Contains(form);
System\Windows\Forms\Input\InputLanguageCollection.cs (1)
34public bool Contains(InputLanguage? value) => InnerList.Contains(value);
System.Windows.Forms.Design (1)
System\Drawing\Design\ToolboxItemCollection.cs (1)
38public bool Contains(ToolboxItem value) => InnerList.Contains(value);
UIAutomationClient (2)
System\Windows\Automation\CacheRequest.cs (2)
246if (!_properties.Contains(property)) 264if (!_patterns.Contains(pattern))