Implemented interface member:
method
Contains
System.Collections.Generic.ICollection<T>.Contains(T)
78 references to Contains
mscorlib (1)
system\collections\objectmodel\collection.cs (1)
287return Contains((T) value);
PresentationFramework (17)
src\Framework\MS\Internal\Annotations\XmlElementCollection.cs (3)
101if (item != null && this.Contains(item)) 117if (item != null && this.Contains(item)) 226if (element != null && this.Contains(element))
src\Framework\MS\Internal\Ink\InkCanvasSelection.cs (2)
815if ( SelectedStrokes.Contains(s) ) 1025if ( !strokes2.Contains(s) )
src\Framework\System\Windows\Automation\Peers\CalendarAutomationPeer.cs (1)
609if (OwningCalendar.SelectedDates.Contains(startDate) == isSelected)
src\Framework\System\Windows\Automation\Peers\DateTimeAutomationPeer.cs (1)
728return this.OwningCalendar.SelectedDates.Contains(Date);
src\Framework\System\Windows\Controls\DataGridColumnHeaderCollection.cs (1)
52Debug.Assert(_columns.Contains(column));
src\Framework\System\Windows\Controls\InkCanvas.cs (4)
2390System.Diagnostics.Debug.Assert(_dynamicallySelectedStrokes.Contains(s)); 2498if ( !validStrokes.Contains(strokes[i]) ) 2526if ( !currentSelectedStrokes.Contains(strokes[i]) ) 2576if ( superset.Contains(stroke) )
src\Framework\System\Windows\Controls\SelectedDatesCollection.cs (2)
160if (!this.Contains(item)) 270if (!this.Contains(item))
src\Framework\System\Windows\Controls\ToolBarTray.cs (1)
894if (toolBar.Band != bandIndex || toolBar.BandIndex != toolBarIndex || !toolbarCollection.Contains(toolBar))
src\Framework\System\Windows\Controls\Validation.cs (1)
551if (validationErrors == null || validationErrors.Count == 0 || !validationErrors.Contains(validationError))
src\Framework\System\Windows\Data\BindingExpressionBase.cs (1)
1818bool addToGroup = explicitJoin ? !bg.BindingExpressions.Contains(root) : true;
System (5)
net\System\Net\NetworkInformation\GatewayIPAddressInformationCollection.cs (1)
53return addresses.Contains(address);
net\System\Net\NetworkInformation\IPAddressCollection.cs (1)
43return addresses.Contains(address);
net\System\Net\NetworkInformation\IPAddressInformationCollection.cs (1)
46return addresses.Contains(address);
net\System\Net\NetworkInformation\MulticastIPAddressInformationCollection.cs (1)
46return addresses.Contains(address);
net\System\Net\NetworkInformation\UnicastIPAddressInformationCollection.cs (1)
46return addresses.Contains(address);
System.Activities (7)
System\Activities\DynamicActivityTypeDescriptor.cs (2)
202if (owner == null || !owner.Properties.Contains(this.activityProperty)) 213if (owner == null || !owner.Properties.Contains(this.activityProperty))
System\Activities\Statements\Flowchart.cs (1)
234Fx.Assert(node.Index == -1 && !this.reachableNodes.Contains(node), "Corrupt Flowchart.reachableNodes.");
System\Activities\Statements\StateMachine.cs (1)
496if (!this.States.Contains(this.InitialState))
System\Activities\Statements\StateMachineEventManager.cs (1)
129if (this.activeBookmarks.Contains(completedEvent.Bookmark))
System\Activities\Tracking\RuntimeTrackingProfile.cs (2)
318if (subscriptions[i].States.Contains(activityRecord.State)) 322else if (subscriptions[i].States.Contains("*"))
System.Activities.Presentation (13)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\PropertyInspector\CategoryBase.cs (1)
126if (this.iconProvider == null || !this.categoryEditors.Contains(this.iconProvider))
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\PropertyInspector\CategoryContainer.xaml.cs (2)
282Fx.Assert(referenceOrder.Contains(property), "Reference order should contain the property to be added."); 581if (!unconsumedProperties.Contains(property))
System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemImpl.cs (4)
297if (dataModelItem != null && !this.parents.Contains(dataModelItem)) 315if (!this.sources.Contains(property)) 425if (this.parents.Contains(oldParent)) 433if (this.sources.Contains(oldModelProperty))
System.Activities.Presentation\System\Activities\Presentation\NamespaceListProperty.cs (2)
382if (!(BlackListsedNamespaces.Contains(import.Import) && FrameworkAssemblies.Contains(import.Assembly)))
System.Activities.Presentation\System\Activities\Presentation\Toolbox\ToolboxCategory.cs (1)
136return this.tools.Contains((ToolboxItemWrapper)value);
System.Activities.Presentation\System\Activities\Presentation\Toolbox\ToolboxCategoryItems.cs (1)
67return this.categories.Contains(item);
System.Activities.Presentation\System\Activities\Presentation\View\ActivityTypeResolver.xaml.cs (1)
201else if (tkv.MostRecentlyUsedTypes.Contains(typeof(int)))
System.Activities.Presentation\System\Activities\Presentation\View\TypeResolvingOptions.cs (1)
131if (rhs.Contains(t))
System.Data (11)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\PropertyInspector\CategoryBase.cs (1)
126if (this.iconProvider == null || !this.categoryEditors.Contains(this.iconProvider))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\PropertyInspector\CategoryContainer.xaml.cs (2)
282Fx.Assert(referenceOrder.Contains(property), "Reference order should contain the property to be added."); 581if (!unconsumedProperties.Contains(property))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemImpl.cs (4)
297if (dataModelItem != null && !this.parents.Contains(dataModelItem)) 315if (!this.sources.Contains(property)) 425if (this.parents.Contains(oldParent)) 433if (this.sources.Contains(oldModelProperty))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Toolbox\ToolboxCategory.cs (1)
136return this.tools.Contains((ToolboxItemWrapper)value);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Toolbox\ToolboxCategoryItems.cs (1)
67return this.categories.Contains(item);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\ActivityTypeResolver.xaml.cs (1)
201else if (tkv.MostRecentlyUsedTypes.Contains(typeof(int)))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\TypeResolvingOptions.cs (1)
131if (rhs.Contains(t))
System.Data.Services.Client (2)
System\Data\Services\Client\Binding\DataServiceCollectionOfT.cs (2)
450if (!this.Contains(item)) 616if (!this.Contains(item))
System.ServiceModel (7)
System\ServiceModel\Description\ContractDescription.cs (1)
197if (!result.Contains(inheritedContract))
System\ServiceModel\Description\MessageContractImporter.cs (1)
163if (!importer.Errors.Contains(warning))
System\ServiceModel\Description\MetadataResolver.cs (1)
293if (qnames.Contains(qname))
System\ServiceModel\Description\SchemaHelper.cs (1)
154if (!errors.Contains(warning))
System\ServiceModel\Description\TypeLoader.cs (1)
725if (!contractDescription.Operations.Contains(op)) // in a diamond hierarchy, ensure we don't add same op twice from two different parents
System\ServiceModel\Dispatcher\ChannelDispatcher.cs (1)
730if (!namesSeen.Contains(ed.ContractName))
System\ServiceModel\ServiceHost.cs (1)
668else if (!this.EndpointsByListenUriInfo.TryGetValue(DispatcherBuilder.GetListenUriInfoForEndpoint(this, inputEndpoint), out endpoints) || !endpoints.Contains(inputEndpoint))
System.ServiceModel.Activities (3)
System\ServiceModel\Activities\ContractInferenceHelper.cs (1)
612if (!operation.KnownTypes.Contains(knownType))
System\ServiceModel\Activities\WorkflowService.cs (1)
1167if (receiveActivity.KnownTypes == null || !receiveActivity.KnownTypes.Contains(targetType))
System\ServiceModel\Activities\WorkflowServiceHost.cs (1)
603if (!uniqueQueries.Contains(correlationQuery))
System.ServiceModel.Discovery (2)
System\ServiceModel\Discovery\EndpointDiscoveryMetadata.cs (1)
255if (!endpointDiscoveryMetadata.ContractTypeNames.Contains(defaultContractTypeName))
System\ServiceModel\Discovery\FindCriteria.cs (1)
227if (!endpointDiscoveryMetadata.InternalContractTypeNames.Contains(contractTypeName))
System.Web (6)
Routing\RouteCollection.cs (2)
325if (Contains(item)) { 358if (Contains(item)) {
UI\WebControls\Menu.cs (2)
1757if (CachedLevelsContainingCssClass.Contains(depth)) { 1794if (containsClassName && !CachedLevelsContainingCssClass.Contains(depth)) {
UI\WebControls\TreeView.cs (2)
1846if (CachedLevelsContainingCssClass.Contains(depth)) { 1885if (containsClassName && !CachedLevelsContainingCssClass.Contains(depth)) {
System.Web.DataVisualization (2)
Common\General\Selection.cs (2)
2592if (series.Points.Contains(dataPoint)) 2610if (this.ChartControl.Series.Contains(asSeries))
System.Web.Extensions (1)
ApplicationServices\ProfileService.cs (1)
182if (vp.FailedProperties.Contains(propertyName)) {
System.Windows.Forms.DataVisualization (1)
Common\General\Selection.cs (1)
2592if (series.Points.Contains(dataPoint))