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