128 references to Count
System.Activities (6)
System\Activities\NativeActivityContext.cs (1)
2111int expectedParameterCount = expectedParameters.Count();
System\Activities\Statements\CompensableActivity.cs (1)
604return ((this.AssertFlag.Get(context) != false) && (this.Index.Get(context) < this.Elements.Get(context).Count()));
System\Activities\Statements\Compensate.cs (1)
136new While(env => (assertFlag.Get(env) != true) && index.Get(env) < elements.Get(env).Count())
System\Activities\Statements\Confirm.cs (1)
145index.Get(env) < elements.Get(env).Count())
System\Activities\Statements\InternalState.cs (1)
645return eventManager.Queue.Count() == updatedEventsInQueue ? updateCurrentEventSucceed : false;
System\Activities\Validation\ValidationHelper.cs (1)
48if (requiredArguments.Count() > 0)
System.Activities.Core.Presentation (6)
System\Activities\Core\Presentation\FlowchartDesigner.xaml.cs (1)
1712if (droppedObjects.Count() == 1 && movedViewElements.Count == 1)
System\Activities\Core\Presentation\StateContainerEditor.CompositeView.cs (2)
239int emptyConnectionPointsCountNeeded = isDestinationStateSelected ? sourceStateItems.Count() + 1 : sourceStateItems.Count();
System\Activities\Core\Presentation\StateContainerEditor.xaml.cs (3)
1141Fx.Assert(adornersRemoved.Count() <= 1, "There should be at most one ConnectionPointsAdorner"); 1142if (adornersRemoved.Count() == 1) 2437if ((draggedModelItems.Count<ModelItem>() == 1 && StateContainerEditor.IsFinalState(draggedModelItems.First<ModelItem>()))
System.Activities.DurableInstancing (4)
System\Activities\DurableInstancing\SqlWorkflowInstanceStore.cs (4)
272if (promoteAsVariant != null && promoteAsVariant.Count() > SqlWorkflowInstanceStoreConstants.MaximumPropertiesPerPromotion) 275promoteAsVariant.Count(), "variant", SqlWorkflowInstanceStoreConstants.MaximumPropertiesPerPromotion)); 278if (promoteAsBinary != null && promoteAsBinary.Count() > SqlWorkflowInstanceStoreConstants.MaximumPropertiesPerPromotion) 281promoteAsVariant.Count(), "binary", SqlWorkflowInstanceStoreConstants.MaximumPropertiesPerPromotion));
System.Activities.Presentation (17)
System.Activities.Presentation\System\Activities\Presentation\DeleteHelper.cs (1)
44if (toDelete.Count() > 0)
System.Activities.Presentation\System\Activities\Presentation\DragDropHelper.cs (2)
387if (droppedObjects.Count() > 0) 521if (draggedModelItems.Count() > 0)
System.Activities.Presentation\System\Activities\Presentation\Model\GenericArgumentsUpdater.cs (2)
44Fx.Assert(oldModelItemType.GetGenericArguments().Count() == 1, "we only support changing a single type parameter ?"); 76Fx.Assert(modelItem.ItemType.GetGenericArguments().Count() == 1, "we only support changing a single type parameter ?");
System.Activities.Presentation\System\Activities\Presentation\Model\GraphManager.cs (2)
49if (this.GetBackPointers(vertex).Count() != 0) 223bool wasReachable = this.GetBackPointers(destinationVertex).Count() > 0;
System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemCollectionImpl.cs (1)
141return (this.Parents.Count() > 0) ? this.Parents.First() : null;
System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemDictionaryImpl.cs (1)
302return (this.Parents.Count() > 0) ? this.Parents.First() : null;
System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemImpl.cs (1)
133return (this.Parents.Count() > 0) ? this.Parents.First() : null;
System.Activities.Presentation\System\Activities\Presentation\View\ArgumentDesigner.xaml.cs (1)
493if (oldDuplicates.Count<DesignTimeArgument>() == 1)
System.Activities.Presentation\System\Activities\Presentation\View\ExpressionTextBox.xaml.cs (1)
742if ((validationRules != null) && (validationRules.Count<ValidationRule>() > 0))
System.Activities.Presentation\System\Activities\Presentation\View\TreeView\DesignerTreeAutoExpandHelper.cs (2)
92if (modelItem.Parents == null || modelItem.Parents.Count() == 0) 97if (modelItem.Sources != null && modelItem.Sources.Count() != 0)
System.Activities.Presentation\System\Activities\Presentation\View\TreeView\TreeViewItemViewModel.cs (1)
492if (1 >= item.Parents.Count())
System.Activities.Presentation\System\Activities\Presentation\View\VariableDesigner.xaml.cs (1)
181if (oldDuplicates.Count<DesignTimeVariable>() == 1)
System.Activities.Presentation\System\Activities\Presentation\WorkflowViewElement.cs (1)
1001if (modelItemsToDrag.Count() == 1)
System.Data (26)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\DeleteHelper.cs (1)
44if (toDelete.Count() > 0)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\DragDropHelper.cs (2)
387if (droppedObjects.Count() > 0) 521if (draggedModelItems.Count() > 0)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\GenericArgumentsUpdater.cs (2)
44Fx.Assert(oldModelItemType.GetGenericArguments().Count() == 1, "we only support changing a single type parameter ?"); 76Fx.Assert(modelItem.ItemType.GetGenericArguments().Count() == 1, "we only support changing a single type parameter ?");
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\GraphManager.cs (2)
49if (this.GetBackPointers(vertex).Count() != 0) 223bool wasReachable = this.GetBackPointers(destinationVertex).Count() > 0;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemCollectionImpl.cs (1)
141return (this.Parents.Count() > 0) ? this.Parents.First() : null;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemDictionaryImpl.cs (1)
302return (this.Parents.Count() > 0) ? this.Parents.First() : null;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemImpl.cs (1)
133return (this.Parents.Count() > 0) ? this.Parents.First() : null;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\ArgumentDesigner.xaml.cs (1)
493if (oldDuplicates.Count<DesignTimeArgument>() == 1)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\ExpressionTextBox.xaml.cs (1)
742if ((validationRules != null) && (validationRules.Count<ValidationRule>() > 0))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\TreeView\DesignerTreeAutoExpandHelper.cs (2)
92if (modelItem.Parents == null || modelItem.Parents.Count() == 0) 97if (modelItem.Sources != null && modelItem.Sources.Count() != 0)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\TreeView\TreeViewItemViewModel.cs (1)
492if (1 >= item.Parents.Count())
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\VariableDesigner.xaml.cs (1)
181if (oldDuplicates.Count<DesignTimeVariable>() == 1)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\WorkflowViewElement.cs (1)
1001if (modelItemsToDrag.Count() == 1)
fx\src\data\System\Data\Common\DBConnectionString.cs (3)
274Debug.Assert(combinedSet._restrictionValues.Except(componentSet._restrictionValues).Count() == 0, "Combined set allows values not allowed by component set"); 289Debug.Assert(combinedSet._restrictionValues.Intersect(componentSet._restrictionValues).Count() == 0, "Combined values allows values prevented by component set"); 295Debug.Assert(componentSet._restrictionValues.Except(combinedSet._restrictionValues).Count() == 0, "Combined values does not prevent all of the values prevented by the component set");
fx\src\data\System\Data\SqlClient\SqlCommand.cs (4)
5694if(parameters.Count() > 0) { 5696while (i < parameters.Count() && parameters[i].Direction == ParameterDirection.ReturnValue) { 5700if (i < parameters.Count()) { 5719for (; i < parameters.Count(); i++) {
fx\src\data\System\Data\SqlClient\SqlSecurityUtility.cs (1)
300if ((trustedKeyPaths == null) || (trustedKeyPaths.Count() == 0) ||
fx\src\data\System\Data\SqlClient\SqlSymmetricKeyCache.cs (1)
70if ((trustedKeyPaths == null) || (trustedKeyPaths.Count() == 0) ||
System.Data.Entity (40)
System\Data\Common\CommandTrees\Internal\PatternMatchRules.cs (2)
87Debug.Assert(rules.Count() != 0, "At least one PatternMatchRule is required"); 88Debug.Assert(rules.Where(r => r == null).Count() == 0, "Individual PatternMatchRules must not be null");
System\Data\Common\Utils\Boolean\BoolExpr.cs (1)
96int candidateUniqueTermCount = simplifiedCandidate.GetTerms().Distinct().Count();
System\Data\EntityModel\SchemaObjectModel\SchemaEnumType.cs (1)
244if (_enumMembers.GroupBy(o => o.Name).Where(g => g.Count() > 1).Any())
System\Data\EntityModel\SchemaObjectModel\SchemaManager.cs (2)
276if (schemaToBeAdded.SchemaVersion != XmlConstants.UndefinedVersion && schemaCollection.Count() > 0) 389errorCollection.Where(e => e.Severity == EdmSchemaErrorSeverity.Error).Count() > MaxErrorCount)
System\Data\Mapping\FunctionImportMapping.cs (2)
57if (structuralTypeMappings.Count() == 0) 176Debug.Assert(complexTypeMappings.Count() == 1, "how come there are more than 1, complex type cannot derive from other complex type");
System\Data\Mapping\FunctionImportMapping.ReturnTypeRenameMapping.cs (1)
243if (nodesInBaseHierachy.Count() == 0)
System\Data\Mapping\StorageMappingItemCollection.ViewDictionary.cs (1)
192Debug.Assert(extentMappingViews.AllValues.Count() == 1, "Viewgen should have produced only one view");
System\Data\Mapping\Update\Internal\UpdateTranslator.cs (1)
761Debug.Assert(null != remainder && remainder.Count() > 0, "must provide non-empty remainder");
System\Data\Mapping\ViewGeneration\CellCreator.cs (1)
204int indexOfBooLMemberInProjection = originalCell.GetLeftQuery(viewTarget).GetProjectedMembers().TakeWhile(path => !path.Equals(memberToExpand)).Count();
System\Data\Mapping\ViewGeneration\CqlGeneration\CqlBlock.cs (1)
193Debug.Assert(this.Slots.Where(slot => slot.IsRequiredByParent).Count() == 1, "Top level projection must project only one slot.");
System\Data\Mapping\ViewGeneration\DiscriminatorMap.cs (1)
149int uniqueValueCount = discriminatorValues.Distinct(TrailingSpaceComparer.Instance).Count();
System\Data\Mapping\ViewGeneration\Structures\CaseStatement.cs (1)
357if (withRelationships != null && withRelationships.Count() > 0)
System\Data\Mapping\ViewGeneration\Structures\LeafCellTreeNode.cs (2)
234Debug.Assert(scalarPropertyMaps.Count() == 1, "Can't Map the same column multiple times in the same end"); 271Debug.Assert(otherEnds.Count() == 1);
System\Data\Mapping\ViewGeneration\Validation\ErrorPatternMatcher.cs (4)
159int indexOfMemberInProjection = leftCellQuery.GetProjectedMembers().TakeWhile(path => !path.Equals(leftMember)).Count(); 162if (indexOfMemberInProjection < leftCellQuery.GetProjectedMembers().Count()) 486if (((edmTypesForFirstCellWrapper.Except(edmTypesForSecondCellWrapper)).Count() != 0 ) 487|| ((edmTypesForSecondCellWrapper.Except(edmTypesForFirstCellWrapper)).Count() != 0 ))
System\Data\Mapping\ViewGeneration\Validation\ForeignConstraint.cs (2)
388if ((childRefPropertiesCollection.Count() != 0 && parentRefPropertiesCollection.Count() != 0))
System\Data\Mapping\ViewGeneration\Validator.cs (4)
370Debug.Assert(cConstraints.KeyConstraints.Count() == cViewConstraints.KeyConstraints.Count(), 372Debug.Assert(sConstraints.KeyConstraints.Count() == sViewConstraints.KeyConstraints.Count(),
System\Data\Mapping\ViewValidator.cs (2)
36if (validator.Errors.Count() == 0) 316&& setInfos.SetInfos.Count() == 2)
System\Data\Objects\ELinq\MethodCallTranslator.cs (3)
73if (linq.Method.GetParameters().Count() == 1 && linq.Method.ReturnType.Equals(typeof(bool))) 2261if (constantArguments.Count() > 0) 2269if (otherArguments.Count() > 0)
System\Data\Objects\ELinq\TypeSystem.cs (1)
53int argCount = inputTypes.Count();
System\Data\Objects\EntityEntry.cs (1)
2389Debug.Assert(objectsInRelatedEnd.Count() == 1, "unexpected number of entities for EntityReference");
System\Data\Query\InternalTrees\ColumnMapFactory.cs (1)
173if (memberGroup.Count() != 1)
System\Data\Query\PlanCompiler\JoinGraph.cs (2)
1276columnVars.Where(v => v.ColumnMetadata.IsNullable).Count() == 0) 2149if (childColumnVars.Count > 1 && childColumnVars.Where(v => v.ColumnMetadata.IsNullable).Count() > 0)
System\Data\Query\PlanCompiler\TransformationRules.cs (1)
2332if (varDefListNode.Children.Where(c => c.Child0.Op.OpType == OpType.NullSentinel).Count() == 0)
System\Data\SqlClient\SqlGen\SqlGenerator.cs (2)
1899bool useInClause = HasBuiltMapForIn(e, map) && map.Keys.Count() > 0; 1922int realValueCount = realValues.Count();
System.Data.Services (10)
System\Data\Services\Epm\EpmHelper.cs (1)
246Debug.Assert(Enum.GetNames(typeof(SyndicationItemProperty)).Count() == 12, "Any addition to SyndicationItemPropery enum requires updating this method.");
System\Data\Services\Providers\BasicExpandProvider.cs (6)
44.First(m => m.Name == "OrderBy" && m.IsGenericMethod == true && m.GetParameters().Count() == 2); 49.First(m => m.Name == "ThenBy" && m.IsGenericMethod == true && m.GetParameters().Count() == 2); 54.First(m => m.Name == "OrderByDescending" && m.IsGenericMethod == true && m.GetParameters().Count() == 2); 59.First(m => m.Name == "ThenByDescending" && m.IsGenericMethod == true && m.GetParameters().Count() == 2); 64.First(m => m.Name == "Skip" && m.IsGenericMethod == true && m.GetParameters().Count() == 2); 69.First(m => m.Name == "Take" && m.IsGenericMethod == true && m.GetParameters().Count() == 2);
System\Data\Services\Providers\DataServiceProviderWrapper.cs (2)
747this.ServiceOperations.Count(); 748this.Types.Count();
System\Data\Services\Providers\ExpandedProjectionNode.cs (1)
372existingNodes.Where(node => node.Property == property).Count() <= 1,
System.Data.Services.Client (1)
System\Data\Services\Client\ClientType.cs (1)
265Debug.Assert(this.KeyCount == this.Properties.Where(k => k.KeyProperty).Count(), "KeyCount mismatch");
System.Data.Services.Design (2)
parent\Server\System\Data\Services\Epm\EpmHelper.cs (1)
246Debug.Assert(Enum.GetNames(typeof(SyndicationItemProperty)).Count() == 12, "Any addition to SyndicationItemPropery enum requires updating this method.");
System\Data\EntityModel\Emitters\ClientApiGenerator.cs (1)
736if (this.GetSourceTypes().Where(x => x.BuiltInTypeKind == BuiltInTypeKind.EntityType).Where(x => ((EntityType)x).Name == eventArgs.BaseType.BaseType).Count() != 0)
System.IdentityModel (4)
System\IdentityModel\Tokens\Saml2SecurityTokenHandler.cs (2)
1343if (claimCollection.Count<Claim>() > 0) 1353if (claimCollection.Count<Claim>() > 0)
System\IdentityModel\Tokens\SamlSecurityTokenHandler.cs (2)
361if (claimCollection.Count<Claim>() > 0) 372if (claimCollection.Count<Claim>() > 0)
System.ServiceModel (2)
System\ServiceModel\Channels\HttpHeadersWebHeaderCollection.cs (1)
67return this.AllHeaders.Count();
System\ServiceModel\Description\WsdlHelper.cs (1)
227if (contractWsdls.Count() > 1)
System.ServiceModel.Activities (2)
System\ServiceModel\Activities\Dispatcher\DurableInstanceManager.cs (1)
684this.instanceCount = contexts.Count<PersistenceContext>();
System\ServiceModel\Activities\Dispatcher\WorkflowServiceInstance.cs (1)
397int modulesCount = modules.Count<IPersistencePipelineModule>();
System.ServiceModel.Web (2)
System\ServiceModel\Dispatcher\HelpPage.cs (2)
264if (parts.Count() == 1) 268else if (parts.Count() == 0)
System.Web (4)
Compilation\AssemblyResolver.cs (1)
165if (except.Count() == 0) {
UI\WebControls\ModelDataSourceView.cs (2)
1089if (valueProviderAttributes.Count() > 1) { 1093if (valueProviderAttributes.Count() > 0) {
WebSockets\SubprotocolUtil.cs (1)
124if (subprotocols.Distinct(StringComparer.Ordinal).Count() != subprotocols.Count) {
System.Web.Entity (2)
System\Data\WebControls\EntityDataSourceUtil.cs (1)
190types.Count() > 1 || entityType.Abstract)
System\Data\WebControls\EntityDataSourceWrapperCollection.cs (1)
751 < EntityDataSourceUtil.GetTypeAndSubtypesOf(entityType, csWorkspace.GetItemCollection(DataSpace.CSpace), true).Count())