Implemented interface members:
property
Count
System.Collections.Generic.ICollection<T>.Count
property
Count
System.Collections.Generic.IReadOnlyCollection<T>.Count
107 references to Count
System.Activities (6)
Microsoft\VisualBasic\Activities\XamlIntegration\VisualBasicExpressionConverter.cs (1)
332return this.ImportReferences == null || this.ImportReferences.Count == 0;
System\Activities\Activity.cs (2)
1347return this.requiredExtensionTypes.Count; 1360return activityExtensionProviders != null || (requiredExtensionTypes != null && requiredExtensionTypes.Count > 0);
System\Activities\Hosting\WorkflowInstanceExtensionCollection.cs (1)
120if (requiredActivityExtensionTypes != null && requiredActivityExtensionTypes.Count > 0)
System\Activities\Statements\Flowchart.cs (1)
205List<Activity> children = new List<Activity>(uniqueChildren.Count);
System\Activities\XamlIntegration\CompiledDataContext.cs (1)
206if (this.activities != null && this.activities.Count <= 5)
System.Activities.Presentation (10)
Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\DesignTimeXamlWriter.cs (2)
145if (this.namespacesToIgnore.Count > 0) 189if (this.namespacesToIgnore.Count > 0)
System.Activities.Presentation\System\Activities\Presentation\CutCopyPasteHelper.cs (3)
311if (parentModelItems.Count == 0) 516if ((childrenContainers == null || childrenContainers.Count == 0) && null != pasteModelItem.View) 520else if (null != childrenContainers && childrenContainers.Count == 1)
System.Activities.Presentation\System\Activities\Presentation\DragDropHelper.cs (2)
584return checkingMap.Count == 0; 804if (parentModelItems.Count == 0)
System.Activities.Presentation\System\Activities\Presentation\Model\EditingScope.cs (2)
163Fx.Assert(this.itemsAdded.Count == 0 && this.itemsRemoved.Count == 0, "There should not be items changed before completed.");
System.Activities.Presentation\System\Activities\Presentation\Xaml\ErrorTolerantObjectWriter.cs (1)
485(unresolvedTypes.Count > 1 || !unresolvedTypes.Contains(type)))
System.Core (8)
System\Collections\Generic\HashSet.cs (8)
621if (m_count > otherAsSet.Count) { 665if (m_count >= otherAsSet.Count) { 709if (otherAsSet.Count > m_count) { 759if (otherAsSet.Count >= m_count) { 812if (m_count != otherAsSet.Count) { 1449T[] newArray = new T[Count]; 1477if (set1.Count != set2.Count) {
System.Data (10)
cdf\src\NetFx40\Tools\Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\DesignTimeXamlWriter.cs (2)
145if (this.namespacesToIgnore.Count > 0) 189if (this.namespacesToIgnore.Count > 0)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\CutCopyPasteHelper.cs (3)
311if (parentModelItems.Count == 0) 516if ((childrenContainers == null || childrenContainers.Count == 0) && null != pasteModelItem.View) 520else if (null != childrenContainers && childrenContainers.Count == 1)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\DragDropHelper.cs (2)
584return checkingMap.Count == 0; 804if (parentModelItems.Count == 0)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\EditingScope.cs (2)
163Fx.Assert(this.itemsAdded.Count == 0 && this.itemsRemoved.Count == 0, "There should not be items changed before completed.");
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Xaml\ErrorTolerantObjectWriter.cs (1)
485(unresolvedTypes.Count > 1 || !unresolvedTypes.Contains(type)))
System.Data.Entity (47)
System\Data\Common\CommandTrees\Internal\ViewSimplifier.cs (1)
179if (principalSetsAndDependentTypes.Count == 0)
System\Data\Common\Utils\Set.cs (3)
91return _values.Count; 177return _values.Count == other._values.Count
System\Data\EntityModel\SchemaObjectModel\SchemaManager.cs (1)
299if (_namespaceLookUpTable.Count == 0 && schema.DataModel != SchemaDataModelOption.ProviderManifestModel)
System\Data\Mapping\Update\Internal\Graph.cs (2)
159var result = new TVertex[m_vertices.Count]; 194if (m_vertices.Count == 0)
System\Data\Mapping\ViewGeneration\DiscriminatorMap.cs (1)
131if (1 != discriminatorDomain.Count) { return false; }
System\Data\Mapping\ViewGeneration\QueryRewriting\FragmentQueryKB.cs (1)
166if (derivedTypes.Count != 0)
System\Data\Mapping\ViewGeneration\QueryRewriting\FragmentQueryProcessor.cs (1)
147if (newProjectedAttributes.Count > 0)
System\Data\Mapping\ViewGeneration\QueryRewriting\QueryRewriter.cs (6)
125if (_usedViews.Count == 0 || _errorLog.Count > 0) 138TraceVerbose("Used {0} views of {1} total for rewriting", _usedViews.Count, _views.Count); 831Debug.Assert(toFill.Query.Attributes.Count > 0, "Query has no attributes?"); 874if (toFillQuery.Attributes.Count == 0) 924Debug.Assert(toFill.Query.Attributes.Count == 0, "This method is used for attribute-less queries only"); 945Debug.Assert(usedViews.Count > 0);
System\Data\Mapping\ViewGeneration\QueryRewriting\RewritingPass.cs (1)
50if (qp.REORDER_VIEWS && recentlyUsedViews.Count > 0)
System\Data\Mapping\ViewGeneration\QueryRewriting\RewritingProcessor.cs (2)
157return views.Count; 253int numPermutations = Math.Min(MAX_PERMUTATIONS, Math.Max(MIN_PERMUTATIONS, (int)(usedViews.Count * PERMUTE_FRACTION)));
System\Data\Mapping\ViewGeneration\QueryRewriting\RewritingSimplifier.cs (3)
135if (remainingViews.Count == 0) 139if (remainingViews.Count == 1) 170int halfCount = remainingViews.Count / 2;
System\Data\Mapping\ViewGeneration\Structures\LeftCellWrapper.cs (5)
120Debug.Assert(m_mergedCells.Count == 1); 391if (x.FragmentQuery.Attributes.Count > y.FragmentQuery.Attributes.Count) 395else if (x.FragmentQuery.Attributes.Count < y.FragmentQuery.Attributes.Count)
System\Data\Objects\ELinq\Funcletizer.cs (1)
418if (parameters.Count != 1)
System\Data\Objects\EntityEntry.cs (1)
1715Debug.Assert(pair.Value.Count == 1, "Unexpected number of keys");
System\Data\Objects\Internal\EntityProxyFactory.cs (2)
1121if (ospaceEntityType.Members.Count != _scalarMembers.Count + _relationshipMembers.Count)
System\Data\Objects\ObjectStateManager.cs (12)
593return _entriesWithConceptualNulls != null && _entriesWithConceptualNulls.Count != 0; 3144if (pair.Key.IsDependentEndOfReferentialConstraint(true) && pair.Value.Count > 0) 3156if (pair.Value.Count > 1) 3180if (pair.Key.IsDependentEndOfReferentialConstraint(true) && pair.Value.Count > 0) 3191if (pair.Value.Count > 1) 3198else if (pair.Value.Count == 1) 3219if (newFks != null && newFks.Count > 0) 3242if (removedKeys.Count > 0) 3617entityKeysOfDeletedObjects.Count > 0 && 3643entitiesToAdd.Count > 0) 3668entityKeysOfAddedObjects.Count > 0) 3677entitiesToAdd.Count > 0)
System\Data\Query\InternalTrees\ColumnMapFactory.cs (1)
55Dictionary<EntityType, TypedColumnMap> typeChoices = new Dictionary<EntityType, TypedColumnMap>(mappedEntityTypes.Count);
System\Data\Query\PlanCompiler\AggregatePushdown.cs (1)
92return (_candidateAggregateNodes != null && _candidateAggregateNodes.Count != 0);
System\Data\Query\PlanCompiler\PreProcessor.cs (1)
191if (m_referencedTypes.Count > 0)
System\Data\Query\PlanCompiler\StructuredTypeInfo.cs (1)
373m_entitySetIdToEntitySetMap = new md.EntitySet[referencedEntitySets.Count];
System.Data.Entity.Design (1)
System\Data\Entity\Design\EntityStoreSchemaGenerator.cs (1)
1504if (session.ReadOnlyEntities.Count > 0)
System.Data.Services (2)
System\Data\Services\Providers\BasicExpandProvider.cs (1)
1033this.projectedProperties = new List<ProjectedProperty>(this.projectedPropertyCandidates.Count);
System\Data\Services\Providers\ReflectionServiceProvider.cs (1)
768if (etagPropertyNames.Count != 0)
System.Data.Services.Design (1)
System\Data\EntityModel\Emitters\ClientApiGenerator.cs (1)
859if (entitySets.Count == 1)
System.Runtime.DurableInstancing (9)
System\Runtime\DurableInstancing\InstanceHandle.cs (4)
177if (this.pendingOwnerEvents != null && this.pendingOwnerEvents.Count > 0) 181if (this.boundOwnerEvents != null && this.boundOwnerEvents.Count > 0) 555normals = new List<InstancePersistenceEvent>(this.pendingOwnerEvents.Count); 716if (this.boundOwnerEvents != null && this.boundOwnerEvents.Count > 0)
System\Runtime\DurableInstancing\InstanceStore.cs (5)
173if (normal.BoundHandles.Count > 0) 216if (normal.BoundHandles.Count == 0 && normal.PendingHandles.Count == 0) 401if (!normal.IsSignaled && normal.BoundHandles.Count == 0 && normal.PendingHandles.Count == 0)
System.ServiceModel (1)
System\ServiceModel\ServiceChannelManager.cs (1)
431return this.hashSet.Count;
System.ServiceModel.Activities (4)
System\ServiceModel\Activities\Dispatcher\PersistenceContext.cs (2)
1235if ((thisPtr.persistenceContext.keysToAssociate.Count != 0) || 1236((thisPtr.persistenceContext.keysToDisassociate.Count != 0) &&
System\ServiceModel\Activities\WorkflowService.cs (2)
326if (property.ImplementingReceives.Count < 1) 508if (this.receiveAndReplyPairs.Count != 0)
System.Web (6)
Routing\ParsedRoute.cs (1)
313if (unusedNewValues.Count > 0) {
UI\EventValidationStore.cs (2)
30return _hashes.Count; 130writer.Write7BitEncodedInt(_hashes.Count); // number of entries
WebSockets\AspNetWebSocketManager.cs (3)
34return _activeSockets.Count; 61activeSocketCount = _activeSockets.Count; 79activeSocketCount = _activeSockets.Count;
System.Web.Extensions (1)
UI\ScriptManager.cs (1)
1639if (virtualPathsInBundles.Count == 0) {
System.Workflow.Runtime (1)
System\Activities\Statements\Interop.cs (1)
309if (this.extraDynamicArguments != null && this.extraDynamicArguments.Count > 0)