Implemented interface members:
property
Count
System.Collections.Generic.ICollection<T>.Count
property
Count
System.Collections.Generic.IReadOnlyCollection<T>.Count
property
Count
System.Collections.ICollection.Count
458 references to Count
ComSvcConfig (2)
Options.cs (1)
405this.components = new List<ComponentDefinition<string>>(comps.Count);
parent\svcutil\CommandLineParser.cs (1)
145get { return contents.Count; }
mscorlib (18)
system\collections\generic\dictionary.cs (9)
255if (array.Length - index < Count) { 291KeyValuePair<TKey, TValue>[] array = new KeyValuePair<TKey, TValue>[Count]; 545if (array.Length - index < Count) { 825if (array.Length - index < dictionary.Count) { 837get { return dictionary.Count; } 886if (array.Length - index < dictionary.Count) { 1012if (array.Length - index < dictionary.Count) { 1024get { return dictionary.Count; } 1073if (array.Length - index < dictionary.Count)
system\diagnostics\eventing\eventsource.cs (1)
6283if (channelTab.Count == MaxCountChannels)
system\reflection\emit\modulebuilder.cs (2)
839int size = m_TypeBuilderDict.Count; 840Type[] typeList = new Type[m_TypeBuilderDict.Count];
system\resources\resourcewriter.cs (2)
332int numResources = _resourceList.Count; 334numResources += _preserializedData.Count;
system\runtime\interopservices\windowsruntime\windowsruntimemarshal.cs (2)
122count += NativeOrStaticEventRegistrationImpl.s_eventRegistrations.Count; 502BCLDebug.Log("INTEROP", "[WinRT_Eventing] s_eventRegistrations size = " + s_eventRegistrations.Count + "\n");
system\threading\asynclocal.cs (2)
448int count = Count; 497Contract.Assert(map.Count == count - 1);
PresentationBuildTasks (1)
Framework\System\Windows\Markup\ParserContext.cs (1)
927return cache.Count == 0 ? null : cache;
PresentationCore (10)
Core\CSharp\MS\Internal\DeferredElementTreeState.cs (2)
117return _oldCoreParents.Count == 0 && _oldLogicalParents.Count == 0;
Core\CSharp\MS\Internal\FontCache\FontFaceLayoutInfo.cs (1)
827get { return CMap.Count; }
Core\CSharp\MS\Internal\FontFace\CompositeFontInfo.cs (1)
164Dictionary<XmlLanguage, ushort[]> table = new Dictionary<XmlLanguage, ushort[]>(_familyMapRangesByLanguage.Count);
Core\CSharp\MS\Internal\Ink\Renderer.cs (1)
586i = Math.Min(_visuals.Count, _strokes.Count); //not -1, we're about to decrement
Core\CSharp\MS\Internal\Resources\ContentFileHelper.cs (1)
28if (_contentFiles != null && _contentFiles.Count > 0)
Core\CSharp\System\Windows\Input\ManipulationLogic.cs (1)
741get { return (_currentManipulators.Count > 0) ? _currentManipulators.Values : null; }
Core\CSharp\System\Windows\Media\MediaContext.cs (1)
1479ICompositionTarget[] registeredVTs = new ICompositionTarget[_registeredICompositionTargets.Count];
Shared\MS\Internal\MimeTypeMapper.cs (1)
40if (_fileExtensionToMimeType.Count == 0)
Shared\MS\Internal\SizeLimitedCache.cs (1)
265return (_nodeLookup.Count - _permanentCount >= _maximumItems);
PresentationFramework (14)
src\Framework\MS\Internal\Annotations\AnnotationMap.cs (1)
71return _annotationIdToAttachedAnnotations.Count == 0;
src\Framework\MS\Internal\Annotations\ObservableDictionary.cs (2)
83int count = _nameValues.Count; 232return _nameValues.Count;
src\Framework\MS\Internal\Data\CommitManager.cs (6)
31get { return _bindings.Count == 0 && _bindingGroups.Count == 0; } 109int count = _bindings.Count; 119foundDirt = foundDirt || (_bindings.Count < count); 121count = _bindingGroups.Count; 131foundDirt = foundDirt || (_bindingGroups.Count < count);
src\Framework\System\Windows\Markup\ParserContext.cs (1)
927return cache.Count == 0 ? null : cache;
src\Framework\System\Windows\SystemResources.cs (4)
1072_hwndNotify.Count == 0 || 1212if (_hwndNotify != null && _hwndNotify.Count != 0) 1372&& _hwndNotify.Count != 0) 1741if (_hwndNotify != null && _hwndNotify.Count != 0)
SMSvcHost (1)
System\ServiceModel\Activation\AppManager.cs (1)
30return this.apps.Count;
svcutil (1)
CommandLineParser.cs (1)
145get { return contents.Count; }
System (3)
compmod\system\componentmodel\ReflectTypeDescriptionProvider.cs (2)
1904eventArray = new EventDescriptor[eventList.Count]; 1941propertyArray = new PropertyDescriptor[propertyList.Count];
net\System\_UriSyntax.cs (1)
316if (m_TempTable.Count >= c_MaxCapacity) {
System.Activities (29)
Microsoft\VisualBasic\Activities\VisualBasicHelper.cs (1)
114if (HostedCompilerCache.Count >= HostedCompilerCacheSize)
System\Activities\Activity.cs (1)
1332return this.activityExtensionProviders.Count;
System\Activities\DurableInstancing\CreateWorkflowOwnerCommand.cs (1)
39return this.instanceOwnerMetadata == null || this.instanceOwnerMetadata.Count == 0;
System\Activities\DurableInstancing\CreateWorkflowOwnerWithIdentityCommand.cs (1)
40return this.instanceOwnerMetadata == null || this.instanceOwnerMetadata.Count == 0;
System\Activities\DurableInstancing\LoadWorkflowByInstanceKeyCommand.cs (1)
45return (this.keysToAssociate == null || this.keysToAssociate.Count == 0) && AssociateInstanceKeyToInstanceId == Guid.Empty;
System\Activities\DurableInstancing\SaveWorkflowCommand.cs (4)
111(this.instanceData == null || this.instanceData.Count == 0) && 112(this.keyMetadataChanges == null || this.keyMetadataChanges.Count == 0) && 113(this.instanceMetadataChanges == null || this.instanceMetadataChanges.Count == 0) && 116(this.keysToAssociate == null || this.keysToAssociate.Count == 0);
System\Activities\DynamicUpdate\DynamicUpdateMapBuilder.cs (1)
594if (this.SavedOriginalValuesForCurrentActivity != null && this.SavedOriginalValuesForCurrentActivity.Count > 0)
System\Activities\Hosting\SymbolResolver.cs (3)
25get { return this.symbols.Count; } 42List<object> values = new List<object>(this.symbols.Count); 158if (this.symbols.Count > array.Length - arrayIndex)
System\Activities\Hosting\WorkflowInstanceExtensionCollection.cs (3)
68filteredActivityExtensionProviders = new Dictionary<Type, WorkflowInstanceExtensionProvider>(activityExtensionProviders.Count); 112if (filteredActivityExtensionProviders.Count > 0) 115extensionProviderCount += filteredActivityExtensionProviders.Count;
System\Activities\Runtime\ActivityExecutor.cs (2)
1039if (this.activeOperations != null && this.activeOperations.Count > 0) 2667bool hasOperations = this.activeOperations != null && this.activeOperations.Count > 0;
System\Activities\Runtime\BookmarkManager.cs (1)
41return this.bookmarks != null && this.bookmarks.Count > 0;
System\Activities\Runtime\BookmarkScopeManager.cs (1)
81Fx.Assert(this.bookmarkManagers != null && this.bookmarkManagers.Count > 0, "We always have the default sub instance.");
System\Activities\Runtime\ExecutionPropertyManager.cs (1)
424return IsOwner(instance) && this.properties.Count > 0;
System\Activities\Statements\InternalState.cs (1)
525Fx.Assert(this.internalTransitions.Count == this.triggerInternalTransitionMapping.Count, "Triggers mappings are correct.");
System\Activities\Tracking\ActivityStateRecord.cs (4)
241if (trackedVariables.Count == count) 274Fx.Assert(trackedVariables.Count > 0, "we should only allocate the dictionary if we're putting data in it"); 304if (trackedArguments.Count == count) 318Fx.Assert(trackedArguments.Count > 0, "we should only allocate the dictionary if we're putting data in it");
System\Activities\Validation\ValidationHelper.cs (2)
190Hashtable keysVisited = new Hashtable(equivalenceInfo.EquivalentGroupsDictionary.Count); 246string[] groupNames = new string[groupDefinitions.Count];
System\Activities\XamlIntegration\TextExpressionCompiler.cs (1)
1092new CodePrimitiveExpression(cacheIndicies.Count)));
System.Activities.DurableInstancing (2)
System\Activities\DurableInstancing\SerializationUtilities.cs (2)
146if (propertyBagToSerialize.Count > 0) 185if (propertyBags[i].Count > 0)
System.Activities.Presentation (11)
Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\ViewStateXamlHelper.cs (1)
240if (stack.Count == 0 && viewStateInfo.Count > 0)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\State\PersistedStateContainer.cs (1)
93if (_persistedStates.Count == 0)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\State\PropertyViewManagerStateContainer.cs (1)
116if (_persistenceIdToManagerTypeNameMap == null || _persistenceIdToManagerTypeNameMap.Count == 0)
System.Activities.Presentation\System\Activities\Presentation\Debugger\DebuggerService.cs (5)
372if (this.unmappedBreakpoints.Count > 0) 536if (this.breakpoints.Count > 0 || this.unmappedBreakpoints.Count > 0) 623if (this.unmappedBreakpoints.Count > 0) 625Dictionary<SourceLocation, BreakpointTypes> newUnmappedBreakpoints = new Dictionary<SourceLocation, BreakpointTypes>(this.unmappedBreakpoints.Count);
System.Activities.Presentation\System\Activities\Presentation\Model\ModelSearchServiceImpl.cs (1)
577if (location < 0 || location >= this.textImageIndexEntryMapping.Count)
System.Activities.Presentation\System\Activities\Presentation\Model\WeakKeyDictionary.cs (1)
77return _internalDictionary.Count;
System.Activities.Presentation\System\Activities\Presentation\Validation\ValidationService.cs (1)
808object[] oldErrorList = new object[this.ValidationErrors.Count];
System.AddIn (2)
System\Addin\Hosting\Store\PipelineComponent.cs (2)
98_qualificationData = dictionary.Count == 0 ? s_emptyDictionary : 116_qualificationData = dictionary.Count == 0 ? s_emptyDictionary :
System.Core (11)
Microsoft\Scripting\Ast\DebugViewWriter.cs (1)
110id = ids.Count + 1;
Microsoft\Scripting\Ast\ExpressionStringBuilder.cs (4)
53_ids.Add(label, _ids.Count); 67id = _ids.Count; 80_ids.Add(p, _ids.Count); 94id = _ids.Count;
Microsoft\Scripting\Compiler\Set.cs (1)
75get { return _data.Count; }
System\Diagnostics\Eventing\Reader\ProviderMetadataCachedInformation.cs (1)
107return cache.Count == maximumCacheSize;
System\Diagnostics\PerformanceData\CounterSet.cs (3)
190if (m_idToCounter.Count == 0) { 198+ (uint) m_idToCounter.Count * (uint) sizeof(UnsafeNativeMethods.PerfCounterInfoStruct); 215CounterSetInfo->NumCounters = (uint) m_idToCounter.Count;
System\Diagnostics\PerformanceData\CounterSetInstanceCounterDataSet.cs (1)
125m_dataBlock = (byte *) Marshal.AllocHGlobal(m_instance.m_counterSet.m_idToCounter.Count * sizeof(Int64));
System.Data (42)
cdf\src\NetFx40\Tools\Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\ViewStateXamlHelper.cs (1)
240if (stack.Count == 0 && viewStateInfo.Count > 0)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\State\PersistedStateContainer.cs (1)
93if (_persistedStates.Count == 0)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\State\PropertyViewManagerStateContainer.cs (1)
116if (_persistenceIdToManagerTypeNameMap == null || _persistenceIdToManagerTypeNameMap.Count == 0)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Debugger\DebuggerService.cs (5)
372if (this.unmappedBreakpoints.Count > 0) 536if (this.breakpoints.Count > 0 || this.unmappedBreakpoints.Count > 0) 623if (this.unmappedBreakpoints.Count > 0) 625Dictionary<SourceLocation, BreakpointTypes> newUnmappedBreakpoints = new Dictionary<SourceLocation, BreakpointTypes>(this.unmappedBreakpoints.Count);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelSearchServiceImpl.cs (1)
577if (location < 0 || location >= this.textImageIndexEntryMapping.Count)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\WeakKeyDictionary.cs (1)
77return _internalDictionary.Count;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Validation\ValidationService.cs (1)
808object[] oldErrorList = new object[this.ValidationErrors.Count];
fx\src\data\System\Data\Common\DbConnectionStringBuilder.cs (3)
166get { return CurrentValues.Count; } 265if ((GetType() != connectionStringBuilder.GetType()) || (CurrentValues.Count != connectionStringBuilder.CurrentValues.Count)) {
fx\src\data\System\Data\Common\ObjectStorage.cs (1)
5081+cache.Count, TempAssemblyComparer.Default);
fx\src\data\System\Data\DataView.cs (3)
294Debug.Assert(rowViewCache.Count == CountFromIndex, "DataView.Count mismatch"); 295return rowViewCache.Count; 1498Debug.Assert(rvc.Count == CountFromIndex, "didn't add expected count");
fx\src\data\System\Data\Odbc\OdbcConnectionStringbuilder.cs (1)
55Debug.Assert(2 == hash.Count, "initial expected size is incorrect");
fx\src\data\System\Data\OleDb\OledbConnectionStringbuilder.cs (4)
72Debug.Assert(5 == hash.Count, "initial expected size is incorrect"); 217if (0 < dynamic.Count) { 218knownKeywords = new string[_validKeywords.Length + dynamic.Count]; 485if (0 < providerInfo.Count) {
fx\src\data\System\Data\ProviderBase\DbConnectionFactory.cs (2)
420Dictionary<DbConnectionPoolKey, DbConnectionPoolGroup> newConnectionPoolGroups = new Dictionary<DbConnectionPoolKey, DbConnectionPoolGroup>(1+connectionPoolGroups.Count); 519Dictionary<DbConnectionPoolKey, DbConnectionPoolGroup> newConnectionPoolGroups = new Dictionary<DbConnectionPoolKey, DbConnectionPoolGroup>(connectionPoolGroups.Count);
fx\src\data\System\Data\SqlClient\SqlCommand.cs (3)
3930throw SQL.InvalidEncryptionKeyOrdinalEnclaveMetadata(requestedKey, columnEncryptionKeyTable.Count); 4002throw SQL.InvalidEncryptionKeyOrdinalParameterMetadata(columnEncryptionKeyOrdinal, columnEncryptionKeyTable.Count); 4320if (keysToBeSentToEnclave == null || keysToBeSentToEnclave.Count <= 0) {
fx\src\data\System\Data\SqlClient\SqlConnectionStringBuilder.cs (1)
240Debug.Assert((KeywordsCount + SqlConnectionString.SynonymCount) == hash.Count, "initial expected size is incorrect");
fx\src\data\System\Data\SqlClient\SqlDependency.cs (3)
862if (identityDatabaseHash.Count == 0) { 899if (0 == _serverUserHash.Count) { // Special error for no calls to start. 918if (identityDatabaseHash.Count > 1) {
fx\src\data\System\Data\SqlClient\SqlDependencyUtils.cs (9)
220Debug.Assert(_notificationIdToDependenciesHash.Count == _commandHashToNotificationId.Count, "always keep these maps in sync!"); 367if (0 == _dependencyIdToDependencyHash.Count) { 405Debug.Assert(_notificationIdToDependenciesHash.Count == _commandHashToNotificationId.Count, "always keep these maps in sync!"); 451Debug.Assert(_notificationIdToDependenciesHash.Count == _commandHashToNotificationId.Count, "always keep these maps in sync!"); 504if (0 == SingletonInstance._dependencyIdToDependencyHash.Count) { 519dependencies = new SqlDependency[SingletonInstance._dependencyIdToDependencyHash.Count];
fx\src\data\System\Data\SqlClient\TdsParserStateObject.cs (1)
3140Debug.Assert(_pendingWritePackets.Count == 0 && _asyncWriteCount == 0, "Should not clear all write packets if there are packets pending");
System.Data.Entity (73)
System\Data\Common\EntitySql\SemanticAnalyzer.cs (1)
4367Debug.Assert(NumberOfElements == astExprConverters.Count, "The number of elements and initial capacity don't match");
System\Data\Common\QueryCache\EntityClientCacheKey.cs (3)
167Debug.Assert(paramTypeUsage.Count == entityCommand.Parameters.Count, "entityParameter collection and query parameter collection must have the same number of entries"); 168if (1 == paramTypeUsage.Count) 178Debug.Assert(paramTypeUsage.Count == entityCommand.Parameters.Count, "entityParameter collection and query parameter collection must have the same number of entries");
System\Data\Common\QueryCache\QueryCacheManager.cs (3)
152if (_cacheData.Count > _sweepingTriggerHighMark) 281if (_cacheData.Count > _sweepingTriggerHighMark) 287List<QueryCacheKey> cacheKeys = new List<QueryCacheKey>(_cacheData.Count);
System\Data\Common\Utils\AliasGenerator.cs (1)
71int capacity = 1 + ((null != prefixCounter) ? prefixCounter.Count : 0);
System\Data\EntityModel\SchemaObjectModel\SchemaElementLookUpTable.cs (1)
44return KeyToType.Count;
System\Data\Mapping\MetadataMappingHasherVisitor.cs (1)
57if (this.m_itemsAlreadySeen.Count > 1)
System\Data\Mapping\StorageEntityContainerMapping.cs (2)
123return ((m_entitySetMappings.Count == 0) 124&& (m_associationSetMappings.Count == 0));
System\Data\Mapping\StorageMappingItemCollection.cs (1)
737Debug.Assert(m_memberMappings.Count == 0, "Assumption: This method is called only once, and from the constructor because m_extentMappingViews is not thread safe.");
System\Data\Mapping\StorageMappingItemCollection.ViewDictionary.cs (2)
110if (extentMappingViews.Count == 0) 117Debug.Assert(extentMappingViews.Count > 0, "view should be generated at this point");
System\Data\Mapping\Update\Internal\DynamicUpdateCommand.cs (1)
201if (clauseMappings.Count == 0)
System\Data\Mapping\Update\Internal\TableChangeProcessor.cs (2)
113List<UpdateCommand> commands = new List<UpdateCommand>(deleteResults.Count + insertResults.Count);
System\Data\Mapping\Update\Internal\UpdateCompiler.cs (1)
332List<DbModificationClause> result = new List<DbModificationClause>(setClauses.Count);
System\Data\Mapping\ViewGeneration\QueryRewriting\QueryRewriter.cs (5)
758if (literalRemap.Count > 0) 888if (attributeConditions.Count == 0 || CoverAttributes(ref rewriting, toFillQuery, attributeConditions)) 954if (attributeConditions.Count == 0) 970if (attributeConditions.Count == 0) 975if (attributeConditions.Count == 0)
System\Data\Mapping\ViewGeneration\Structures\MemberProjectionIndex.cs (1)
119index = m_indexMap.Count;
System\Data\Mapping\ViewGeneration\Validation\ErrorPatternMatcher.cs (1)
255if (condMembersValues.Count > 0) //it is possible that there are no condition members
System\Data\Metadata\ObjectItemCollection.cs (2)
357if (typesInLoading.Count != 0) 412return typesInLoading.Count != 0;
System\Data\Metadata\ObjectLayer\AssemblyCache.cs (1)
80if (loadingData.TypesInLoading.Count > 0)
System\Data\Metadata\ObjectLayer\ObjectItemConventionAssemblyLoader.cs (1)
71if (SessionData.TypesInLoading.Count == 0)
System\Data\Metadata\ObjectLayer\ObjectItemLoadingSessionData.cs (1)
109Debug.Assert(_loaderFactory == null || _typesInLoading.Count == 0, "Only reset the factory after types have not been loaded or load from the cache");
System\Data\Objects\DataClasses\EntityCollection.cs (4)
130return ((null != _wrappedRelatedEntities) ? _wrappedRelatedEntities.Count : 0); 474Debug.Assert(_wrappedRelatedEntities.Count == 0, "After removing all related entities local collection count should be zero"); 569return _wrappedRelatedEntities == null || (_wrappedRelatedEntities.Count == 0); 657Debug.Assert(_wrappedRelatedEntities.Count == 0);
System\Data\Objects\ObjectContext.cs (6)
1244throw EntityUtil.NthElementIsNull(entities.Count); 2025throw EntityUtil.NthElementNotInObjectStateManager(entities.Count); 2029throw EntityUtil.NthElementInAddedState(entities.Count); 2040throw EntityUtil.NthElementIsDuplicate(entities.Count); 2072if (refreshKeys.Count > 0) 2124else if ((RefreshMode.ClientWins == refreshMode) && (0 < entities.Count))
System\Data\Objects\ObjectStateManager.cs (15)
511if (_danglingForeignKeys.Count == 0) 1796size += ((null != _addedRelationshipStore) ? _addedRelationshipStore.Count : 0); 1797size += ((null != _addedEntityStore) ? _addedEntityStore.Count : 0); 1801size += ((null != _modifiedEntityStore) ? _modifiedEntityStore.Count : 0); 1805size += ((null != _deletedRelationshipStore) ? _deletedRelationshipStore.Count : 0); 1806size += ((null != _deletedEntityStore) ? _deletedEntityStore.Count : 0); 1810size += ((null != _unchangedRelationshipStore) ? _unchangedRelationshipStore.Count : 0); 1811size += ((null != _unchangedEntityStore) ? _unchangedEntityStore.Count : 0); 1821size += _addedEntityStore.Count; 1825size += _modifiedEntityStore.Count; 1829size += _deletedEntityStore.Count; 1833size += _unchangedEntityStore.Count; 2892if (0 == dictionaryContainingEntry.Count) 2940if (0 == dictionaryContainingEntry.Count) 3128if (addedRelationshipsByGraph != null && addedRelationshipsByGraph.Count > 0)
System\Data\Query\InternalTrees\ColumnMapFactory.cs (1)
338return renameList == null || renameList.Count == 0 || !renameList.Any(m => m.Key == member.Name) ? member.Name : renameList[member.Name].GetRename(currentType);
System\Data\Query\InternalTrees\Command.cs (6)
1368Debug.Assert(leftMap.Count == rightMap.Count, "VarMap count mismatch"); 1385Debug.Assert(leftMap.Count == rightMap.Count, "VarMap count mismatch"); 1401Debug.Assert(leftMap.Count == rightMap.Count, "VarMap count mismatch");
System\Data\Query\PlanCompiler\ITreeGenerator.cs (2)
108_referencedArgs = new Dictionary<Node, bool>(_arguments.Count); 130if (mappedVars.Count > 0)
System\Data\Query\PlanCompiler\JoinGraph.cs (2)
2311PlanCompiler.Assert(predicates == null || predicates.Count == 0, "Leaking predicates?"); 2471PlanCompiler.Assert(predicates == null || predicates.Count == 0, "Leaking predicates");
System\Data\Query\PlanCompiler\NestPullup.cs (1)
1838if (collectionVarDefinitions.Count != 0)
System\Data\Query\PlanCompiler\StructuredTypeInfo.cs (2)
343filteredMaps = new Dictionary<md.EntitySetBase, ExplicitDiscriminatorMap>(discriminatorMaps.Count, discriminatorMaps.Comparer); 358if (filteredMaps.Count == 0)
System\Data\Query\PlanCompiler\VarRemapper.cs (2)
85if (m_varMap.Count == 0) 98if (m_varMap.Count == 0)
System\Data\SqlClient\SqlGen\SqlSelectStatement.cs (1)
197if ((null != outerExtents) && (0 < outerExtents.Count))
System.Data.Entity.Design (3)
System\Data\Entity\Design\EntityViewGeneration\EntityViewGenerator.cs (2)
277if (generatedViews.Count == 0 && schemaErrors.Count > 0) 414new CodePrimitiveExpression(generatedViews.Count));
System\Data\EntityModel\EdmToObjectNamespaceMap.cs (1)
85get { return _map.Count; }
System.Data.Linq (14)
DataServices.cs (1)
526&& keys.Count == type.IdentityMembers.Count) {
DataShape.cs (6)
95if (ds1 == null || ds2 == null || ds1.includes.Count != ds2.includes.Count) { 212for (int loop = 0; loop < this.includes.Count; ++loop) { 228if (removed == this.includes.Count) 288get { return this.includes.Count == 0 && this.subqueries.Count == 0; }
Mapping\MappedMetaModel.cs (1)
442if (this.inheritanceDefault == null && (this.inheritanceCode != null || this.inheritanceCodes != null && this.inheritanceCodes.Count > 0))
SqlClient\Query\SqlFormatter.cs (6)
319aliasName = "A" + this.names.Count; 396aliasName = "A" + this.names.Count; 413name = "C" + this.names.Count; 594aliasName = "A" + this.names.Count; 629aliasName = "A" + this.names.Count; 686name = "C" + this.names.Count;
System.Data.Services (8)
parent\Client\System\Data\Services\Client\BatchStream.cs (3)
554if (this.contentHeaders.Count != 2) 594if (this.contentHeaders.Count > 2 || 595(this.contentHeaders.Count == 2 && !this.contentHeaders.ContainsKey(XmlConstants.HttpContentLength)))
System\Data\Services\DataServiceConfiguration.cs (1)
288return this.pageSizes.Count > 0 || this.defaultPageSize > 0;
System\Data\Services\KeyInstance.cs (1)
91return this.namedValues.Count;
System\Data\Services\Providers\DataServiceProviderWrapper.cs (2)
103metadataProvider is BaseServiceProvider && queryProvider is BaseServiceProvider || (metadata.ResourceSetWrapperCache.Count == 0 && metadata.VisibleTypeCache.Count == 0),
System\Data\Services\Serializers\JsonDeserializer.cs (1)
735bool bindOperation = !topLevel && uri != null && jsonObjectTable.Count == 1;
System.Data.Services.Client (12)
System\Data\Services\Client\ALinq\NavigationPropertySingletonExpression.cs (1)
93this.CustomQueryOptions.Count > 0 ||
System\Data\Services\Client\ALinq\ResourceBinder.cs (1)
424Debug.Assert(keyValuesDictionary.Count > 0, "At least one key property is required in a key predicate");
System\Data\Services\Client\ALinq\ResourceSetExpression.cs (1)
151this.CustomQueryOptions.Count > 0 ||
System\Data\Services\Client\ALinq\TypeSystem.cs (3)
83Debug.Assert(expressionMethodMap.Count == ExpectedCount, "expressionMethodMap.Count == ExpectedCount"); 101Debug.Assert(expressionVBMethodMap.Count == 11, "expressionVBMethodMap.Count == 11"); 126Debug.Assert(propertiesAsMethodsMap.Count == 7, "propertiesAsMethodsMap.Count == 7");
System\Data\Services\Client\ALinq\UriWriter.cs (2)
245if (rse.KeyPredicate.Count == 1) 367if (re.CustomQueryOptions.Count > 0)
System\Data\Services\Client\AtomMaterializerLog.cs (1)
100this.mergeOption != MergeOption.OverwriteChanges || this.foundEntriesWithMedia.Count == 0,
System\Data\Services\Client\BatchStream.cs (3)
554if (this.contentHeaders.Count != 2) 594if (this.contentHeaders.Count > 2 || 595(this.contentHeaders.Count == 2 && !this.contentHeaders.ContainsKey(XmlConstants.HttpContentLength)))
System.Data.Services.Design (2)
System\Data\EntityModel\EdmToObjectNamespaceMap.cs (1)
82get { return _map.Count; }
System\Data\EntityModel\Emitters\EntityContainerEmitter.cs (1)
78bool needTypeMapper = (0 < this.Generator.NamespaceMap.Count);
System.Data.SqlXml (3)
System\Xml\Xsl\Xslt\Compiler.cs (1)
111moduleOrder[baseUri] = moduleOrder.Count;
System\Xml\Xsl\Xslt\QilGenerator.cs (2)
185List<EarlyBoundInfo> ebTypes = new List<EarlyBoundInfo>(scriptClasses.Count); 1796Debug.Assert(sheet.TemplateMatches.Count == 0);
System.Drawing (1)
commonui\System\Drawing\Design\ToolboxItem.cs (1)
722AssemblyName[] parentAssemblies = new AssemblyName[parents.Count];
System.IdentityModel (5)
System\IdentityModel\BoundedCache.cs (1)
126if (_items.Count >= _capacity)
System\IdentityModel\Tokens\MruSessionSecurityTokenCache.cs (1)
312if (this.items.Count >= this.maximumSize)
System\IdentityModel\Tokens\SecurityTokenHandlerCollectionManager.cs (1)
52get { return this.collections.Count; }
System\IdentityModel\Tokens\SessionSecurityToken.cs (2)
1058if (DomainNameMap.Count >= MaxDomainNameMapSize) 1064int victim = rnd.Next() % DomainNameMap.Count;
System.Messaging (2)
System\Messaging\MessageQueue.cs (2)
4207if (table.Count >= capacity) 4262capacity = 2 * table.Count;
System.Runtime.Caching (1)
System\Caching\MemoryCacheEntry.cs (1)
210if (_fields != null && _fields._dependents != null && _fields._dependents.Count > 0) {
System.Runtime.DurableInstancing (1)
System\Runtime\DurableInstancing\InstanceStore.cs (1)
309this.ownerKeysToScan = new Guid[this.owners.Count];
System.Runtime.Serialization (4)
System\Runtime\Serialization\CodeExporter.cs (2)
993if (knownContracts == null || knownContracts.Count == 0) 1009if (knownContractDictionary == null || knownContractDictionary.Count == 0)
System\Runtime\Serialization\ExtensionDataReader.cs (1)
802prefix = (ns == null || ns.Length == 0) ? String.Empty : "p" + nsToPrefixTable.Count;
System\Xml\XmlMtomReader.cs (1)
405if (mimeParts.Count > maxMimeParts)
System.ServiceModel (85)
System\ServiceModel\Channels\AddressHeaderCollection.cs (2)
133if (myHeaders.Count != otherHeaders.Count)
System\ServiceModel\Channels\ConnectAlgorithms.cs (8)
61|| (((nodeAddresses.Count != 0 || pendingConnectedNeighbor.Count != 0) && maintainer.IsOpen) 91if (nodeAddresses.Count > 0) 93if (pendingConnectedNeighbor.Count + maintainer.ConnectedNeighborCount < wantedConnectionCount) 98if (nodeAddresses.Count == 0 || !maintainer.IsOpen) // nodeAddresses or maintainer is closed got updated better cycle 103int index2 = random.Next() % nodeAddresses.Count; 170if (nodeAddresses.Count == 0 || pendingConnectedNeighbor.Count + maintainer.ConnectedNeighborCount == wantedConnectionCount)
System\ServiceModel\Channels\DeliveryStrategy.cs (1)
94return this.Channel.InternalPendingItems + this.items.Count;
System\ServiceModel\Channels\MsmqReceiveContextLockManager.cs (1)
181if ((this.messageExpiryMap.Count < 1))
System\ServiceModel\Channels\PeerFlooder.cs (3)
804tables[active] = NewCache(tables[active].Count); 922if (this.results.Count == 0) 1008if (this.results.Count == 0 && this.doneAdding && this.shouldCallComplete)
System\ServiceModel\Channels\PeerMaintainer.cs (3)
127if (referralCache.Count <= this.config.MaxReferralCacheSize && !referralCache.ContainsKey(key)) 198if (referralCache.Count == 0) 309if (referralCache.Count == 0)
System\ServiceModel\Channels\PnrpPeerResolver.cs (4)
502if (resultsLink.Count != 0) 516linkRegs = new PnrpRegistration[resultsLink.Count]; 521if (resultsSite.Count != 0) 535siteRegs = new PnrpRegistration[resultsSite.Count];
System\ServiceModel\Channels\ReliableChannelListener.cs (2)
667return (this.channelsByInput == null) ? false : (this.channelsByInput.Count > 0); 685return (this.channelsByInput.Count == 1) ? channelsByInput.ContainsKey(inputId) : false;
System\ServiceModel\Channels\ReliableMessagingHelpers.cs (3)
714if ((tempFaultList == null) || (tempFaultList.Count == 0)) 764if ((this.faultList == null) || (this.faultList.Count == 0)) 907if ((this.closeHandle == null) || (this.faultList.Count > 0))
System\ServiceModel\Channels\ReliableReplySessionChannel.cs (7)
105return this.connection.AllAdded && (this.requestsByRequestSequenceNumber.Count == 0) && this.lastReplyAcked; 124return (this.requestsByRequestSequenceNumber.Count - this.requestsByReplySequenceNumber.Count); 652if (this.requestsByReplySequenceNumber.Count > 0) 732if (this.requestsByRequestSequenceNumber.Count == 0) 1105&& (this.requestsByReplySequenceNumber.Count < this.listener.MaxTransferWindowSize) 1187haveAllReplyAcks = this.requestsByRequestSequenceNumber.Count == 0;
System\ServiceModel\Channels\SecurityBindingElement.cs (2)
1844if (this.operationSupportingTokenParameters.Count == 0) 1856if (this.optionalOperationSupportingTokenParameters.Count == 0)
System\ServiceModel\Channels\UriPrefixTable.cs (3)
508return this.children.Count == 0; 514return (this.children.Count == 0 && Data == null); 520return (this.children.Count == 0 && Data == null);
System\ServiceModel\Description\ImportedPolicyConversionContext.cs (2)
243Dictionary<K, V> counterValue = new Dictionary<K, V>(sets.Count); 257KeyValuePair<K, IEnumerator<V>>[] digits = new KeyValuePair<K, IEnumerator<V>>[sets.Count];
System\ServiceModel\Description\MetadataExchangeClient.cs (1)
520get { return this.usedRetrievers.Count == this.maxResolvedReferences; }
System\ServiceModel\Description\WsdlImporter.cs (1)
1883if (warnings.Count >= 1024)
System\ServiceModel\Description\XmlSerializerOperationGenerator.cs (1)
120if (partInfoTable != null && partInfoTable.Count > 0)
System\ServiceModel\Dispatcher\ActionMessageFilter.cs (1)
24string[] act = new string[this.actions.Count];
System\ServiceModel\Dispatcher\ActionMessageFilterTable.cs (1)
56return this.filters.Count;
System\ServiceModel\Dispatcher\AndMessageFilterTable.cs (1)
49return this.filters.Count;
System\ServiceModel\Dispatcher\DataContractSerializerOperationFormatter.cs (1)
142messageInfo.AnyHeaders = messageInfo.UnknownHeaderDescription != null || messageInfo.HeaderDescriptionTable.Count > 0;
System\ServiceModel\Dispatcher\EndpointAddressMessageFilterTable.cs (2)
103return this.filters.Count; 374if (cset.qnames.Count == 0)
System\ServiceModel\Dispatcher\MessageFilter.cs (1)
68return this.filters.Count;
System\ServiceModel\Dispatcher\MessageFilterTable.cs (1)
74return this.filters.Count;
System\ServiceModel\Dispatcher\MessageQueryTable.cs (1)
28get { return this.dictionary.Count; }
System\ServiceModel\Dispatcher\QueryRelOp.cs (1)
260return this.literals.Count;
System\ServiceModel\Dispatcher\QuerySubExprEliminator.cs (1)
446if (nextLookup.Count == 0)
System\ServiceModel\Dispatcher\SecurityImpersonationBehavior.cs (2)
427if (this.domainNameMap.Count >= maxDomainNameMapSize) 433int victim = this.random.Next() % this.domainNameMap.Count;
System\ServiceModel\Dispatcher\XmlSerializerOperationFormatter.cs (1)
67object[] headerValues = new object[headerDescriptionTable.Count];
System\ServiceModel\Dispatcher\XPathMessageFilterTable.cs (2)
58return (this.filters.Count > 0 && null != this.iqMatcher); 85return this.filters.Count;
System\ServiceModel\Security\SecurityProtocol.cs (2)
165if (this.mergedSupportingTokenProvidersMap != null && this.mergedSupportingTokenProvidersMap.Count > 0) 319if (this.ScopedSupportingTokenProviderSpecification.Count == 0)
System\ServiceModel\Security\SecurityProtocolFactory.cs (2)
787if (this.mergedSupportingTokenAuthenticatorsMap != null && this.mergedSupportingTokenAuthenticatorsMap.Count > 0) 815if (this.scopedSupportingTokenAuthenticatorSpecification.Count == 0)
System\ServiceModel\Security\SecuritySessionFilter.cs (1)
193get { return this.filterMappings.Count; }
System\ServiceModel\Security\SecuritySessionServerSettings.cs (4)
567return this.pendingSessions1.Count + this.pendingSessions2.Count + ((IInputQueueChannelAcceptor)this.channelAcceptor).PendingCount; 886if (this.pendingSessions1.Count == 0 && this.pendingSessions2.Count == 0)
System\UriTemplate.cs (5)
557if (this.queries.Count > 0) 599if (this.queries.Count != other.queries.Count) 702if ((this.queries.Count != 0) || (extraQueryParameters != null)) 1039return this.defaults.Count;
System\UriTemplateEquivalenceComparer.cs (1)
53return obj.segments.Count + obj.queries.Count;
System\UriTemplateHelpers.cs (9)
27if (ut.queries.Count == 0) 78return (ut.queries.Count == 0); 95if (array[a].queries.Count == 0) 99if (array[a].queries.Count == 0) 111while (a < b && array[a].queries.Count == 0) // all equivalent 290if (queryVarNamesAllLiterals.Count == 0) 332string[] queryLitVals = new string[queryVarNames.Count]; 369return Comparer<int>.Default.Compare(x.queries.Count, y.queries.Count);
System\UriTemplateTable.cs (1)
315if (candidates[i].Template.queries.Count == 0)
System.ServiceModel.Activation (3)
System\ServiceModel\Activation\CollectibleLRUCache.cs (3)
156if (this.directory.Count > 0) 223if (this.directory.Count > 0) 243return this.directory.Count;
System.ServiceModel.Activities (16)
System\ServiceModel\Activities\ContractInferenceHelper.cs (2)
707Fx.Assert(select.Count != 0, "Empty MessageQuerySet is not allowed!"); 722Fx.Assert(queryCorrelation.MessageQuerySet.Count != 0, "Empty MessageQuerySet is not allowed!");
System\ServiceModel\Activities\Dispatcher\CorrelationKeyCalculator.cs (7)
113if (values.Count == 0) 156if (values.Count == 0) 181if (values.Count <= 3) 311if (keys.Count == 1) 334Fx.Assert(keys.Count == 1, "Cannot intialize CorrelationCacheSingleKey with multiple key values."); 380(this.keyValues.Count == target.keyValues.Count))
System\ServiceModel\Activities\Dispatcher\PersistenceProviderDirectory.cs (4)
235if (this.instanceCache.Count > 0) 267Fx.Assert(this.instanceCache.Count == 0, "All instances should have been detached."); 268Fx.Assert(this.keyMap.Count == 0, "All instances should have been removed from the key map."); 497Fx.Assert(this.instanceCache.Count <= MaxInstances, "Too many instances in PPD.");
System\ServiceModel\Activities\MessagingActivityHelper.cs (1)
284if (queryCorrelation.MessageQuerySet.Count == 0)
System\ServiceModel\Activities\Receive.cs (2)
228return this.correlatesOn != null && this.correlatesOn.Count > 0; 478if (this.correlatesOn == null || (this.correlatesOn.Name == null && this.correlatesOn.Count == 0))
System.ServiceModel.Channels (3)
System\ServiceModel\Channels\UdpOutputChannel.cs (3)
394if (this.retransmitList.Count == 0 && this.retransmissionDoneWaitHandle != null) 449if (!aborting && this.retransmitList != null && this.retransmitList.Count > 0) 1022if (this.channel.retransmitList != null && this.channel.retransmitList.Count > 0)
System.ServiceModel.Discovery (4)
System\ServiceModel\Discovery\AsyncOperationLifetimeManager.cs (4)
80retValue = new AsyncOperationContext[this.activeOperations.Count]; 133setCloseHandle = (this.closeHandle != null) && (this.activeOperations.Count == 0); 177setCloseHandle = (this.closeHandle != null) && (this.activeOperations.Count == 0); 215setCloseHandle = (this.activeOperations.Count == 0);
System.ServiceModel.Internals (5)
System\Runtime\Collections\ObjectCache.cs (1)
69return this.cacheItems.Count;
System\Runtime\DuplicateDetector.cs (2)
45Fx.Assert(this.items.Count == this.fifoList.Count, "The items and fifoList must be synchronized."); 47if (this.items.Count == this.capacity)
System\Runtime\MruCache.cs (2)
54return this.items.Count; 67if (this.items.Count == this.highWatermark)
System.ServiceModel.Routing (2)
System\ServiceModel\Dispatcher\StrictAndMessageFilter.cs (1)
64get { return this.andFilters.Count; }
System\ServiceModel\Routing\SessionChannels.cs (1)
49if (this.sessions.Count > 0)
System.ServiceModel.Web (7)
System\ServiceModel\Description\WebHttpBehavior.cs (4)
669int numUriVariables = throwAway.pathMapping.Count + throwAway.queryMapping.Count; 744int numUriVariables = throwAway.pathMapping.Count + throwAway.queryMapping.Count;
System\ServiceModel\Dispatcher\WebHttpDispatchOperationSelector.cs (1)
110if (this.methodSpecificTables.Count == 0)
System\ServiceModel\Web\WebServiceHost.cs (2)
262int numUriVariables = throwAway.pathMapping.Count + throwAway.queryMapping.Count;
System.Web (6)
Hosting\ApplicationManager.cs (1)
1044if (clrQuirks != null && clrQuirks.Count > 0) {
Hosting\ObjectCacheHost.cs (1)
126if (_cacheInfos != null && _cacheInfos.Count > 0) {
ModelBinding\ModelBinderDictionary.cs (1)
23return _innerDictionary.Count;
ModelBinding\ModelStateDictionary.cs (1)
27return _innerDictionary.Count;
Routing\RouteValueDictionary.cs (1)
28return _dictionary.Count;
UI\WebControls\MethodParametersDictionary.cs (1)
44return InnerDictionary.Count;
System.Web.Entity (1)
System\Data\WebControls\EntityDataSourceView.cs (1)
1039if (null == _originalProperties || 0 == _originalProperties.Count)
System.Web.Extensions (9)
ApplicationServices\ProfileService.cs (2)
88if (allowedGet == null || allowedGet.Count == 0) { 132if (allowedGet == null || allowedGet.Count == 0) {
Compilation\WCFModel\SchemaMerger.cs (2)
99int knownItemCount = knownItemTable.Count; 101if (knownItemTable.Count > knownItemCount)
Profile\ProfileService.cs (3)
43if (allowedGet == null || allowedGet.Count == 0) { 52dictionary = new Dictionary<string, object>(allowedGet.Count, StringComparer.OrdinalIgnoreCase); 64dictionary = new Dictionary<string, object>(allowedGet.Count, StringComparer.OrdinalIgnoreCase);
Script\Services\WebServiceMethodData.cs (1)
163object[] actualParams = new object[_parameterData.Count];
Util\OrderedDictionary.cs (1)
35return _dictionary.Count;
System.Windows.Forms (4)
winforms\Managed\System\WinForms\HtmlShim.cs (1)
80EventHandler[] events = new EventHandler[attachedEventList.Count];
winforms\Managed\System\WinForms\HtmlShimManager.cs (2)
148HtmlDocument.HtmlDocumentShim[] shims = new HtmlDocument.HtmlDocumentShim[htmlDocumentShims.Count]; 162HtmlElement.HtmlElementShim[] shims = new HtmlElement.HtmlElementShim[htmlElementShims.Count];
winforms\Managed\System\WinForms\TableLayoutSettings.cs (1)
597List<ControlInformation> listOfControlInfo = new List<ControlInformation>(controlsInfo.Count);
System.Workflow.Activities (1)
Rules\Parser\Symbol.cs (1)
126ArrayList members = new ArrayList(NestedSymbols.Count);
System.Workflow.ComponentModel (3)
AuthoringOM\ActivityExecutionContext.cs (1)
522if (grantedLocks.Count == 0)
AuthoringOM\Serializer\WorkflowMarkupSerializer.cs (2)
2559if (namedArgs.Count == 0) 2605if (namedArgs.Count > 0)
System.Workflow.Runtime (15)
Hosting\ManualWorkflowSchedulerService.cs (2)
120p.RawValue = scheduleRequests.Count; 174p.RawValue = scheduleRequests.Count;
RTTrackingProfile.cs (6)
144_activities = new Dictionary<string, List<ActivityTrackPointCacheItem>>(runtimeProfile._activities.Count); 153_dynamicActivities = new Dictionary<string, List<ActivityTrackPointCacheItem>>(runtimeProfile._dynamicActivities.Count); 162_user = new Dictionary<string, List<UserTrackPoint>>(runtimeProfile._user.Count); 171_dynamicUser = new Dictionary<string, List<UserTrackPoint>>(runtimeProfile._dynamicUser.Count); 391if ((null != _dynamicActivities) && (_dynamicActivities.Count > 0)) 398if ((null != _dynamicUser) && (_dynamicUser.Count > 0))
System\Activities\Statements\Interop.cs (1)
498if (this.metaProperties != null && this.metaProperties.Count > 0)
Tracking.cs (3)
218if ((null != _listeners) || (_listeners.Count > 0)) 957if (replacements != null && replacements.Count > 0) 1078info.AddValue("services", this._services.Count == 0 ? null : this._services);
Tracking\SqlTrackingService.cs (1)
1127if (null != _tmpActivityInstanceId && _tmpActivityInstanceId.Count > 0)
WorkBatch.cs (1)
45get { return _pendingWorkCollection.WorkItems.Count; }
WorkflowRuntime.cs (1)
64return dictionaryDictionary[Math.Abs(key.GetHashCode() % dictionaryDictionary.Count)];
System.Xml (10)
System\Xml\Core\XmlWellFormedWriter.cs (3)
1861Debug.Assert(attrHashTable.Count == 0); 1883int count = attrHashTable.Count; 1885if (count != attrHashTable.Count) {
System\Xml\Schema\XmlSchemaObjectTable.cs (5)
84Debug.Assert(table.Count == entries.Count); 85return table.Count; 108return new NamesCollection(entries, table.Count); 115return new ValuesCollection(entries, table.Count); 121return new XSODictionaryEnumerator(this.entries, table.Count, EnumeratorType.DictionaryEntry);
System\Xml\Serialization\CodeGenerator.cs (2)
105ArgBuilder arg = new ArgBuilder(argNames[i], argList.Count, argTypes[i]); 164localTmp = DeclareLocal(type, "_tmp" + TmpLocals.Count);
WindowsBase (4)
Base\MS\Internal\ContentType.cs (2)
248if (_parameterDictionary != null && _parameterDictionary.Count > 0) 289if (_parameterDictionary != null && _parameterDictionary.Count > 0)
Base\MS\Internal\IO\Packaging\PartBasedPackageProperties.cs (1)
860entriesToNullify = new KeyValuePair<PackageXmlEnum, Object>[_propertyDictionary.Count];
Base\MS\Internal\TraceLevelStore.cs (1)
44if (element == null || _dictionary.Count == 0)
WsatConfig (2)
CommandLine\ArgumentsParser.cs (2)
46if (optionsHitCount.Count >= 1) 74if (optionsHitCount.Count > optionsAllowed)
XamlBuildTask (2)
Microsoft\Build\Tasks\Xaml\NamespaceTable.cs (1)
24if (tempNamespaceList != null && tempNamespaceList.Count > 0)
Microsoft\Build\Tasks\Xaml\PartialClassGenerationTask.cs (1)
297if (referencesTimeStampCache == null || referencesTimeStampCache.Count != References.Length)