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