79 references to Contains
System.Activities.Core.Presentation (2)
System\Activities\Core\Presentation\StateContainerEditor.Utilities.cs (1)
539} while (existingTransitionNames.Contains<string>(name));
System\Activities\Core\Presentation\StateContainerEditor.xaml.cs (1)
2174} while (existingStateNames.Contains<string>(name));
System.Activities.Presentation (14)
System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemCollectionImpl.cs (1)
647bool wasInCollection = item != null && this.modelItems.Contains(item);
System.Activities.Presentation\System\Activities\Presentation\Model\ModelSearchServiceImpl.cs (1)
138if (selection.SelectedObjects.Contains(modelItem) && modelItem != this.lastNavigatedItem)
System.Activities.Presentation\System\Activities\Presentation\Model\ModelTreeManager.cs (2)
1146return ((IModelTreeItem)edge.DestinationVertex).ItemBackPointers.Contains(from); 1167return dictionary.Keys.Concat(dictionary.Values).Contains(backPointer.SourceVertex);
System.Activities.Presentation\System\Activities\Presentation\View\ExpressionTextBox.xaml.cs (3)
653if (!ExpressionEditorTypeTable.Keys.Contains(name)) 664if (!ConvertFromStringDelegates.Keys.Contains(name)) 683if (!ExpressionEditorTypeTable.Keys.Contains(expressionEditorName))
System.Activities.Presentation\System\Activities\Presentation\View\GenericActivityTypeDesigner.xaml.cs (1)
44if (properties != null && properties.Contains(displayNameProperty))
System.Activities.Presentation\System\Activities\Presentation\View\TypeBrowser.xaml.cs (2)
736if (!noSearch && searchText.Contains('.')) 797if (searchText.Contains('.') && ns.DisplayName != null && ns.DisplayName.StartsWith(searchText, StringComparison.OrdinalIgnoreCase))
System.Activities.Presentation\System\Activities\Presentation\WorkflowItemPresenter.cs (2)
470if (this.Context.Items.GetValue<Selection>().SelectedObjects.Contains(e.OldValue)) 1199return draggedObjects.Contains(this.wfItemPresenter.Item);
System.Activities.Presentation\System\Activities\Presentation\WorkflowViewElement.cs (2)
655bool isSelected = this.Context.Items.GetValue<Selection>().SelectedObjects.Contains<ModelItem>(this.ModelItem); 764if (!selection.SelectedObjects.Contains(this.ModelItem))
System.ComponentModel.DataAnnotations (1)
DataAnnotations\FileExtensionsAttribute.cs (1)
73return ExtensionsParsed.Contains(Path.GetExtension(fileName).ToLowerInvariant());
System.Data (13)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemCollectionImpl.cs (1)
647bool wasInCollection = item != null && this.modelItems.Contains(item);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelSearchServiceImpl.cs (1)
138if (selection.SelectedObjects.Contains(modelItem) && modelItem != this.lastNavigatedItem)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelTreeManager.cs (2)
1146return ((IModelTreeItem)edge.DestinationVertex).ItemBackPointers.Contains(from); 1167return dictionary.Keys.Concat(dictionary.Values).Contains(backPointer.SourceVertex);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\ExpressionTextBox.xaml.cs (3)
653if (!ExpressionEditorTypeTable.Keys.Contains(name)) 664if (!ConvertFromStringDelegates.Keys.Contains(name)) 683if (!ExpressionEditorTypeTable.Keys.Contains(expressionEditorName))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\GenericActivityTypeDesigner.xaml.cs (1)
44if (properties != null && properties.Contains(displayNameProperty))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\TypeBrowser.xaml.cs (2)
736if (!noSearch && searchText.Contains('.')) 797if (searchText.Contains('.') && ns.DisplayName != null && ns.DisplayName.StartsWith(searchText, StringComparison.OrdinalIgnoreCase))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\WorkflowItemPresenter.cs (1)
1199return draggedObjects.Contains(this.wfItemPresenter.Item);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\WorkflowViewElement.cs (2)
655bool isSelected = this.Context.Items.GetValue<Selection>().SelectedObjects.Contains<ModelItem>(this.ModelItem); 764if (!selection.SelectedObjects.Contains(this.ModelItem))
System.Data.Entity (27)
System\Data\Common\CommandTrees\ExpressionBuilder\Internal\ArgumentValidation.cs (1)
2110if (!clrEnumType.GetEnumNames().Contains(edmEnumTypeMember.Name)
System\Data\Mapping\FunctionImportMapping.cs (2)
141if (!isOfTypeEntityTypeColumnsRenameMapping.Keys.Contains(isOfType)) 152if (!entityTypeColumnsRenameMapping.Keys.Contains(entityType))
System\Data\Mapping\FunctionImportMapping.ReturnTypeRenameMapping.cs (1)
151if (!this.ColumnRenameMapping.Keys.Contains(mapping.CMember))
System\Data\Mapping\StorageMappingItemCollection.cs (1)
643.Where(p => entitySet.ForeignKeyDependents.SelectMany(fk => fk.Item2.ToProperties).Contains(p)));
System\Data\Mapping\StorageMappingItemLoader.cs (1)
1426if (associationSet.ElementType.ReferentialConstraints.Single().ToProperties.All(p => dependentKeys.Contains(p)))
System\Data\Mapping\Update\Internal\PropagatorResult.cs (1)
437if (keyManager.GetPrincipals(otherKey.Identifier).Contains(this.Identifier))
System\Data\Mapping\ViewGeneration\CellCreator.cs (5)
106.Where(restriction => restriction.Domain.Values.Contains(Constant.NotNull)) 107.Select(restriction => restriction.RestrictedMemberSlot.MemberPath).Contains(boolMember))) 149if (cell.SQuery.GetProjectedMembers().Contains(memberToExpand)) 216.Where(restriction => restriction.Domain.Values.Contains(negatedCondition)).Any() 219.Where(restriction => restriction.Domain.Values.Contains(negatedCondition)).Any())
System\Data\Mapping\ViewGeneration\Structures\MemberDomainMap.cs (1)
120if (domainValues.Count <= 0 || (!domainValues.Contains(Constant.Null) && condition.Domain.Values.Contains(Constant.Null)))
System\Data\Mapping\ViewGeneration\Validation\ErrorPatternMatcher.cs (3)
127if (condition.Domain.Values.Contains(Constant.NotNull)) 135if (negatedConst.Elements.Contains(Constant.Null)) 646if (anotherCellQuery.GetProjectedMembers().Contains(conditionMember))
System\Data\Mapping\ViewGeneration\ViewgenContext.cs (2)
143oneToOneForeignKeyAssociationsForThisWrapper = oneToOneForeignKeyAssociationsForThisWrapper.Where(it => (it.AssociationEndMembers.All(endMember => entityTypes.Contains(endMember.GetEntityType())))); 146var oneToOneForeignKeyAssociationSetsForThisWrapper = allForeignKeyAssociationSets.Where(it => oneToOneForeignKeyAssociationsForThisWrapper.Contains(it.ElementType));
System\Data\Mapping\ViewValidator.cs (1)
149!(type.BuiltInTypeKind == BuiltInTypeKind.ComplexType && GetComplexTypes().Contains((ComplexType)type)))
System\Data\Metadata\MappingMetadataHelper.cs (1)
35foreach (StorageTypeMapping typeMap in extentMap.TypeMappings.Where(map => map.Types.Union(map.IsOfTypes).Contains(entityType)))
System\Data\Metadata\MetadataWorkspace.cs (1)
206if (!MetadataWorkspace.SupportedEdmVersions.Contains(edmCollection.EdmVersion))
System\Data\Metadata\ObjectLayer\ObjectItemConventionAssemblyLoader.cs (1)
751bool isKeyMember = Helper.IsEntityType(cspaceType) && ((EntityType)cspaceType).KeyMemberNames.Contains(clrProperty.Name);
System\Data\Objects\DataClasses\RelationshipManager.cs (1)
619if (!relationshipName.Contains('.'))
System\Data\Objects\ELinq\ExpressionConverter.cs (1)
317if (!_parameters.Select(p => p.Value).Contains(queryParameter))
System\Data\Objects\ELinq\TypeSystem.cs (2)
229if (map.TargetMethods.Contains(test)) 257Debug.Assert(Enumerable.Contains(propertyInfo.DeclaringType.GetInterfaces(), interfaceType), "Ensure propertyInfo.DeclaringType implements interfaceType before calling IsImplementationOf");
System\Data\SqlClient\SqlProviderUtilities.cs (1)
368Debug.Assert(new[] { "nvarchar(max)", "varchar(max)", "varbinary(max)" }.Contains(typeName),
System.Data.Entity.Design (6)
System\Data\Entity\Design\EntityFrameworkVersions.cs (5)
108Debug.Assert(ValidVersions.Contains(entityFrameworkVersion), "Did you forget to check for valid versions before calling this private method?"); 133Debug.Assert(ValidVersions.Contains(entityFrameworkVersion), "Did you forget to check for valid versions before calling this private method?"); 151Debug.Assert(ValidVersions.Contains(entityFrameworkVersion), "Did you forget to check for valid versions before calling this private method?"); 169Debug.Assert(ValidVersions.Contains(entityFrameworkVersion), "Did you forget to check for valid versions before calling this private method?"); 190return ValidVersions.Contains(entityFrameworkVersion);
System\Data\Entity\Design\PluralizationService\EnglishPluralizationService.cs (1)
867|| this._uninflectiveWordList.Contains(word.ToLowerInvariant()))
System.Data.Linq (1)
SqlClient\SqlTypeSystemProvider.cs (1)
877if (!Enum.GetNames(typeof(SqlDbType)).Select(n => n.ToUpperInvariant()).Contains(typeName.ToUpperInvariant()))
System.Data.Services (4)
System\Data\Services\Providers\ObjectContextServiceProvider.cs (1)
1018if (!entitySetsWithAssocation.Contains(entitySet))
System\Data\Services\RequestDescription.cs (1)
461return KnownDataServiceVersions.Contains(requestVersion);
System\Data\Services\Serializers\JsonSerializer.cs (1)
810this.Provider.GetResourceProperties(this.CurrentContainer, resourceType).Contains(property))
System\Data\Services\Serializers\SyndicationSerializer.cs (1)
953if (this.Provider.GetResourceProperties(this.CurrentContainer, resourceType).Contains(property))
System.Data.Services.Client (2)
System\Data\Services\Client\ALinq\ResourceBinder.cs (1)
287if (rse.KeyPredicate.Keys.Contains(g.Key))
System\Data\Services\Client\DataServiceContext.cs (1)
2273if (!Util.SupportedResponseVersions.Contains(version.Key))
System.IdentityModel (1)
System\IdentityModel\Tokens\Saml2SecurityTokenHandler.cs (1)
860return tokenTypeIdentifiers.Contains(tokenType);
System.ServiceModel.Routing (1)
System\ServiceModel\Dispatcher\StrictAndMessageFilter.cs (1)
277return this.andFilters.Contains(item);
System.ServiceModel.Web (2)
System\ServiceModel\Description\WebHttpBehavior.cs (1)
1322match.QueryParameters.AllKeys.Contains(callbackParameterName))
System\ServiceModel\Dispatcher\FormatSelectingMessageInspector.cs (1)
129wildcardMediaTypes.Contains(type)))
System.Web (3)
Compilation\ClientBuildManagerTypeDescriptionProviderBridge.cs (2)
105return (from p in runtimeProperties where reflectionPropertyNames.Contains(p.Name) select p.Name).ToArray(); 119return (from e in runtimeEvents where reflectionEventNames.Contains(e.Name) select e.Name).ToArray();
Util\QueryableUtility.cs (1)
21return _methods.Where(m => m.Name == method).Contains(GetQueryableMethod(expression));
System.Web.DynamicData (1)
DynamicData\ModelProviders\EFColumnProvider.cs (1)
50return navigationProperties.Any(n => EFAssociationProvider.GetDependentPropertyNames(n, !IsPrimaryKey /* checkRelationshipType */).Contains(property.Name));
System.Web.Entity (1)
System\Data\WebControls\EntityDataSourceViewSchema.cs (1)
84if (keyNames != null && keyNames.Contains(column.ColumnName))