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
4932 references to Count
ComSvcConfig (3)
EndpointConfigContainer.cs (1)
217return (endpointConfigs.Count > 0);
Tool.cs (2)
373if (null == baseAddresses || 0 == baseAddresses.Count) 583if (endpointsToDelete.Count != 0)
Microsoft.Activities.Build (4)
Microsoft\Activities\Build\Expressions\ExpressionsBuildExtension.cs (1)
43if (violations != null && violations.Count > 0)
Microsoft\Activities\Build\Validation\DeferredValidationTask.cs (1)
53if (violations != null && violations.Count > 0)
Microsoft\Activities\Build\Validation\ReportDeferredValidationErrorsTask.cs (1)
40if (violations != null && violations.Count > 0)
Microsoft\Activities\Build\Validation\ValidationBuildExtension.cs (1)
156if (validationErrors.Count > 0)
mscorlib (203)
parent\parent\parent\parent\InternalApis\NDP_Common\inc\PinnableBufferCache.cs (13)
175PinnableBufferCacheEventSource.Log.FreeBufferStillTooYoung(m_CacheName, m_NotGen2.Count); 209PinnableBufferCacheEventSource.Log.AllocateBufferFreeListEmpty(m_CacheName, m_NotGen2.Count); 212if (m_NotGen2.Count == 0) 217int idx = m_NotGen2.Count - 1; 226PinnableBufferCacheEventSource.Log.AllocateBufferFromNotGen2(m_CacheName, m_NotGen2.Count); 234if (m_NotGen2.Count == m_restockSize / 2) 255PinnableBufferCacheEventSource.Log.AllocateBufferAged(m_CacheName, m_NotGen2.Count); 256for (int i = 0; i < m_NotGen2.Count; i++) 270PinnableBufferCacheEventSource.Log.AgePendingBuffersResults(m_CacheName, promotedCount, notInGen2.Count); 372if (m_NotGen2.Count > 0) 379PinnableBufferCacheEventSource.Log.TrimFlush(m_CacheName, m_buffersUnderManagement, freeCount, m_NotGen2.Count); 385PinnableBufferCacheEventSource.Log.TrimFree(m_CacheName, m_buffersUnderManagement, freeCount, m_NotGen2.Count); 386m_buffersUnderManagement -= m_NotGen2.Count;
system\_localdatastoremgr.cs (1)
299for (int i = 0; i < m_ManagedLocalDataStores.Count; i++)
system\AggregateException.cs (1)
405while (exceptionsToFlatten.Count > nDequeueIndex)
system\appdomain.cs (1)
149while (nestedDelegates.Count>idx)
system\attribute.cs (4)
58Array array = CreateAttributeArrayHelper(type, attributeList.Count); 59Array.Copy(attributeList.ToArray(), 0, array, 0, attributeList.Count); 159Array array = CreateAttributeArrayHelper(type, attributeList.Count); 160Array.Copy(attributeList.ToArray(), 0, array, 0, attributeList.Count);
system\cfgparser.cs (1)
544return m_attributes.Count-1;
system\collections\generic\list.cs (26)
237return Count - 1; 246Contract.Ensures(Count >= Contract.OldValue(Count)); 291Contract.Ensures(Contract.Result<int>() <= Count); 292return BinarySearch(0, Count, item, null); 297Contract.Ensures(Contract.Result<int>() <= Count); 298return BinarySearch(0, Count, item, comparer); 451Contract.Ensures(Contract.Result<int>() < Count); 457Contract.Ensures(Contract.Result<int>() < startIndex + Count); 500Contract.Ensures(Contract.Result<int>() < Count); 614Contract.Ensures(Contract.Result<int>() < Count); 639Contract.Ensures(Contract.Result<int>() < Count); 659Contract.Ensures(Contract.Result<int>() < Count); 756Contract.Ensures(Contract.Result<int>() < Count); 779Contract.Ensures(((Count == 0) && (Contract.Result<int>() == -1)) || ((Count > 0) && (Contract.Result<int>() <= index))); 794if ((Count != 0) && (index < 0)) { 798if ((Count !=0) && (count < 0)) { 802Contract.Ensures(((Count == 0) && (Contract.Result<int>() == -1)) || ((Count > 0) && (Contract.Result<int>() <= index))); 847Contract.Ensures(Contract.Result<int>() <= Contract.OldValue(Count)); 918Reverse(0, Count); 949Sort(0, Count, null); 956Sort(0, Count, comparer); 1000Contract.Ensures(Contract.Result<T[]>().Length == Count); 1054return _list.Count;
system\diagnostics\eventing\eventprovider.cs (2)
306if (sessionsChanged.Count > 1) 511for (int i = 0; i < sessions.Count; ++i)
system\diagnostics\eventing\eventsource.cs (8)
1223if ((ulong)etwSessions != 0 || m_legacySessions != null && m_legacySessions.Count > 0) 1953if ((ulong)etwSessions != 0 || m_legacySessions != null && m_legacySessions.Count > 0) 2339if (m_legacySessions != null && m_legacySessions.Count > 0 && 4425if (s_EventSources.Count % 64 == 63) // on every block of 64, fill up the block before continuing 4427int i = s_EventSources.Count; // Work from the top down. 4442newIndex = s_EventSources.Count; 5803if (s_etwSessions.Count > s_thrSessionCount) 5828if (s_etwSessions.Count > s_thrSessionCount)
System\Diagnostics\Eventing\TraceLogging\EventPayload.cs (3)
25Contract.Assert(payloadNames.Count == payloadValues.Count); 92public int Count { get { return m_names.Count; } }
System\Diagnostics\Eventing\TraceLogging\TraceLoggingEventSource.cs (5)
754int lenPos = traitMetaData.Count; 763providerMetadata = Statics.MetadataForString(this.Name, 0, traitMetaData.Count, 0); 764int startPos = providerMetadata.Length-traitMetaData.Count; 777int startPos = metaData.Count; 802return metaData.Count - startPos;
System\Diagnostics\Eventing\TraceLogging\TraceLoggingTypeInfo_T.cs (2)
144var recursionCheckCount = recursionCheck.Count; 147recursionCheck.RemoveRange(recursionCheckCount, recursionCheck.Count - recursionCheckCount);
system\globalization\datetimeformat.cs (2)
1134String[] value = new String[results.Count]; 1135results.CopyTo(0, value, 0, results.Count);
system\globalization\datetimeformatinfoscanner.cs (3)
543if (m_dateWords != null && m_dateWords.Count > 0) 545result = new String[m_dateWords.Count]; 546for (i = 0; i < m_dateWords.Count; i++)
system\io\directory.cs (6)
266int count = stackDir.Count; 268if (stackDir.Count != 0 278String[] securityList = new String[stackDir.Count]; 323while (stackDir.Count > 0) { 324String name = stackDir[stackDir.Count - 1]; 325stackDir.RemoveAt(stackDir.Count - 1);
system\io\filesystemenumerable.cs (1)
416while (searchStack.Count > 0)
system\io\isolatedstorage\isolatedstoragefile.cs (1)
1122if (list.Count != 0)
system\io\longpath.cs (6)
511int count = stackDir.Count; 513if (stackDir.Count != 0 523String[] securityList = new String[stackDir.Count]; 557while (stackDir.Count > 0) 559String name = stackDir[stackDir.Count - 1]; 560stackDir.RemoveAt(stackDir.Count - 1);
system\reflection\customattribute.cs (8)
1371object[] typedResult = CreateAttributeArrayHelper(arrayType, result.Count); 1372Array.Copy(result.ToArray(), 0, typedResult, 0, result.Count); 1472object[] typedResult = CreateAttributeArrayHelper(arrayType, result.Count); 1473Array.Copy(result.ToArray(), 0, typedResult, 0, result.Count); 2222count = pcas.Count; 2288count = pcas.Count; 2414count = pcas.Count; 2516count = pcas.Count;
system\reflection\emit\aqnbuilder.cs (2)
163for (int i = nestings.Count - 1; i >= 0; i--) 168if (i == nestings.Count - 1 && enclosingType.Namespace != null && enclosingType.Namespace.Length != 0)
system\reflection\emit\assemblybuilder.cs (3)
1577int size = m_assemblyData.m_moduleBuilderList.Count; 1937size = m_assemblyData.m_moduleBuilderList.Count; 2028size = m_assemblyData.m_resWriterList.Count;
system\reflection\emit\assemblybuilderdata.cs (7)
276int size = m_resWriterList.Count; 295int size = m_moduleBuilderList.Count; 321for (int i = 0; i < m_moduleBuilderList.Count; i++) 346int size = m_moduleBuilderList.Count; 360size = m_resWriterList.Count; 382int size = m_moduleBuilderList.Count; 404int size = m_moduleBuilderList.Count;
system\reflection\emit\dynamicilgenerator.cs (10)
1198if (token < 0 || token > m_tokens.Count) 1208return m_tokens.Count - 1 | (int)MetadataTokenType.MemberRef; 1248return m_tokens.Count - 1 | (int)MetadataTokenType.MethodDef; 1253return m_tokens.Count - 1 | (int)MetadataTokenType.MethodDef; 1258return m_tokens.Count - 1 | (int)MetadataTokenType.MethodDef; 1263return m_tokens.Count - 1 | (int)MetadataTokenType.FieldDef; 1268return m_tokens.Count - 1 | (int)MetadataTokenType.FieldDef; 1273return m_tokens.Count - 1 | (int)MetadataTokenType.TypeDef; 1278return m_tokens.Count - 1 | (int)MetadataTokenType.String; 1283return m_tokens.Count - 1 | (int)MetadataTokenType.Signature;
system\reflection\emit\methodbuilder.cs (1)
760for (i = m_containingType.m_lastTokenizedMethod + 1; i < m_containingType.m_listMethods.Count; ++i)
system\reflection\emit\modulebuilder.cs (1)
966size = modList.Count;
system\reflection\emit\typebuilder.cs (6)
2300int[] interfaceTokens = new int[m_typeInterfaces.Count]; 2301for(int i = 0; i < m_typeInterfaces.Count; i++) 2316constraints = new int[m_typeInterfaces.Count + 2]; 2321constraints = new int[m_typeInterfaces.Count + 1]; 2324for (int i = 0; i < m_typeInterfaces.Count; i++) 2370int size = m_listMethods.Count;
system\resources\resourcemanager.cs (2)
1570if (assemblyNode.Attributes.Count == 0) 1575if (!String.Equals(de.Key, "name") || String.IsNullOrEmpty(assemblyName) || assemblyNode.Attributes.Count > 1)
system\resources\resourcewriter.cs (3)
444bw.Write(typeNames.Count); 445for (int i = 0; i < typeNames.Count; i++) 587typeIndex = types.Count;
system\rttype.cs (7)
1148for (int i = 0; i < al.Count; i++) 1469for (int j = 0; j < cache.Count; j++) 4865Contract.Assert(results.Count > 1); 4866finalists = new MethodInfo[results.Count]; 4919Contract.Assert(results.Count > 1); 4920finalists = new MethodInfo[results.Count]; 5238MethodBase[] cons = new MethodBase[matches.Count];
system\runtime\interopservices\windowsruntime\windowsruntimemarshal.cs (3)
173if (restTokens == null || restTokens.Count == 0) 179int last = restTokens.Count - 1; 1047if (exceptions.Count > 0)
system\runtime\interopservices\windowsruntime\windowsruntimemetadata.cs (1)
42packageGraphFilePathsArray = new string[packageGraphFilePathsList.Count];
system\runtime\serialization\formatterservices.cs (2)
131if (allMembers!=null && allMembers.Count>0) { 132MemberInfo[] membersTemp = new MemberInfo[allMembers.Count + typeMembers.Length];
system\runtime\serialization\serializationeventscache.cs (1)
76return (mi.Count == 0) ? null : mi;
system\security\claims\ClaimsIdentity.cs (5)
502for (int i = 0; i < m_instanceClaims.Count; i++) 691for (int i = 0; i < m_instanceClaims.Count; i++) 1040for (int i = 0; i < m_instanceClaims.Count; i++) 1219if (m_instanceClaims.Count > 0) 1266writer.Write((Int32)m_instanceClaims.Count);
system\security\claims\ClaimsPrincipal.cs (7)
398for (int i = 0; i < listOfIdentities.Count; i += 2) 654for (int i = 0; i < m_identities.Count; i++) 683for (int i = 0; i < m_identities.Count; i++) 717for (int i = 0; i < m_identities.Count; i++) 767for (int i = 0; i < m_identities.Count; i++) 847if (m_identities.Count > 0) 863writer.Write(m_identities.Count);
system\security\cryptography\cryptoconfig.cs (2)
649if (candidates.Count == 0) 849if (cryptoClass.Attributes.Count > 0)
system\security\permissions\principalpermission.cs (1)
355IDRole[] idrolesArray = new IDRole[idroles.Count];
system\security\permissions\siteidentitypermission.cs (2)
244if(alSites.Count == 0) 324if(al.Count != 0)
system\security\permissions\strongnameidentitypermission.cs (2)
345if(alStrongNames.Count == 0) 442if(al.Count != 0)
system\security\permissions\urlidentitypermission.cs (2)
275if(alUrls.Count == 0) 355if(al.Count != 0)
system\security\policy\evidence.cs (7)
1709List<Type> expensiveList = new List<Type>(ExpensiveEvidence.Count); 1736Type[] enumerationTypes = new Type[alreadyGeneratedList.Count + inexpensiveList.Count + expensiveList.Count]; 1738inexpensiveList.CopyTo(enumerationTypes, alreadyGeneratedList.Count); 1739expensiveList.CopyTo(enumerationTypes, alreadyGeneratedList.Count + inexpensiveList.Count);
system\security\policy\evidencebase.cs (3)
150return m_legacyEvidenceList.Count > 0 ? m_legacyEvidenceList[0] : null; 158Contract.Assert(m_legacyEvidenceList.Count > 0, "No items in LegacyEvidenceList, cannot tell what type they are"); 168Contract.Assert(m_legacyEvidenceList.Count == 0 || EvidenceType == evidence.GetType() || (evidence is LegacyEvidenceWrapper && (evidence as LegacyEvidenceWrapper).EvidenceType == EvidenceType),
system\security\policy\policystatement.cs (1)
226get { return m_dependentEvidence != null && m_dependentEvidence.Count > 0; }
system\security\principal\ircollection.cs (7)
59get { return _Identities.Count; } 182if (Identities.Count == 0) 195for ( int i = 0; i < Identities.Count; i++ ) 254Result = new IdentityReferenceCollection( Identities.Count ); 256for ( int i = 0; i < Identities.Count; i++ ) 351Result = new IdentityReferenceCollection( Identities.Count ); 353for ( int i = 0; i < Identities.Count; i++ )
system\security\util\stringexpressionset.cs (1)
294String[] finalArray = new String[tempList.Count];
system\stubhelpers.cs (1)
1654for (int i = m_list.Count - 1; i >= 0; i--)
system\threading\CancellationTokenSource.cs (1)
838Contract.Assert(exceptionList.Count > 0, "Expected exception count > 0");
system\threading\Tasks\ConcurrentExclusiveSchedulerPair.cs (2)
199(cs.m_exceptions != null && cs.m_exceptions.Count > 0) || 222bool success = (exceptions != null && exceptions.Count > 0) ?
system\threading\Tasks\Task.cs (7)
3661int continuationCount = continuations.Count; 4770if (list.Count == list.Capacity) 5183Contract.Assert(tasks.Count > 0, "Expected at least one task"); 5186var mres = new SetOnCountdownMres(tasks.Count); 6162Contract.Assert(observedExceptions.Count > 0, "Expected at least one exception"); 6412Contract.Assert(observedExceptions.Count > 0, "Expected at least one exception"); 6522if (taskList.Count == 0)
system\threading\Tasks\TaskCompletionSource.cs (1)
201if (defensiveCopy.Count == 0)
system\threading\Tasks\TaskExceptionHolder.cs (6)
248else Contract.Assert(exceptions.Count > 0, "Expected existing exceptions list to have > 0 exceptions."); 315for (int i = 0; i < exceptions.Count; i++) 323else if (i == exceptions.Count - 1) 377Contract.Assert(exceptions.Count > 0, "Expected at least one exception."); 389Exception[] combinedExceptions = new Exception[exceptions.Count + 1]; 407Contract.Assert(exceptions.Count > 0, "Expected at least one exception.");
system\threading\ThreadLocal.cs (2)
685while (availableId < m_freeIds.Count) 691if (availableId == m_freeIds.Count)
PresentationBuildTasks (20)
BuildTasks\Microsoft\Build\Tasks\Windows\UidManager.cs (2)
705for (int i = 0; i < _uids.Count; i++) 753get { return _uids.Count; }
BuildTasks\MS\Internal\Tasks\IncrementalCompileAnalyzer.cs (3)
242if (modifiedXamlFiles.Count > 0) 413for (int i = 0; i < modifiedXamlFiles.Count; i++) 439if (recompiledXaml.Count > 0)
BuildTasks\MS\Internal\Tasks\TaskHelper.cs (1)
261if (gacPaths.Count > 0)
Core\CSharp\MS\internal\Media\XamlSerializationHelper.cs (6)
213writer.Write( ( uint ) point3Ds.Count ) ; 216for ( int i = 0; i < point3Ds.Count ; i ++ ) 248writer.Write( ( uint ) points.Count ) ; 251for ( int i = 0; i < points.Count ; i ++ ) 283writer.Write( ( uint ) points.Count ) ; 286for ( int i = 0; i < points.Count ; i ++ )
Framework\System\Windows\Markup\BamlRecordWriter.cs (6)
1190bamlPropertyWithStaticResourceId.StaticResourceId = (short)(keyDeferRecord.StaticResourceRecordList.Count-1); 1600if (staticResourceRecordList.Count > 0) 1603for (int j=0; j<staticResourceRecordList.Count; j++) 1607for (int k=0; k<srRecords.Count; k++) 1695valueDeferRecord = _staticResourceRecordList[_staticResourceRecordList.Count-1]; 1710bamlStaticResourceId.StaticResourceId = (short)(keyDeferRecord.StaticResourceRecordList.Count-1);
Framework\System\Windows\Markup\XamlInt32CollectionSerializer.cs (1)
102count = ints.Count ;
Framework\System\Windows\Markup\XamlTypeMapper.cs (1)
3491for (int j = 0; j < namespaceAssemblyPair.Count; j++)
PresentationCore (448)
Core\CSharp\MS\Internal\FontCache\FontSourceCollection.cs (1)
280fontSources = new List<Text.TextInterface.IFontSource>(resourceEntries.Count);
Core\CSharp\MS\Internal\Ink\Bezier.cs (2)
74for (int x = 0; x < points.Count; x++) 581get { return _bezierControlPoints.Count; }
Core\CSharp\MS\Internal\Ink\CuspData.cs (2)
159int s = 0, e = _cusps.Count; 192get { return _points.Count; }
Core\CSharp\MS\Internal\Ink\ErasingStroke.cs (10)
102if ((_erasingStrokeNodes == null) || (_erasingStrokeNodes.Count == 0)) 145if ((_erasingStrokeNodes == null) || (_erasingStrokeNodes.Count == 0)) 161int index = eraseAt.Count; 177for (int i = index; i < eraseAt.Count; i++) 190if ((fragment.EndFIndex <= lastFragment.EndFIndex) || ((i + 1) == eraseAt.Count)) 218if (eraseAt[eraseAt.Count - 1].IsFull) 224if ((index > 0) && (index < eraseAt.Count)) 246if (eraseAt.Count != 0) 254return (eraseAt.Count != 0); 303newPath[newPath.Count - 1] = path[i];
Core\CSharp\MS\Internal\Ink\ExtendedPropertyCollection.cs (10)
58for (int i = 0; i < _extendedProperties.Count; i++) 118for (int x = 0; x < _extendedProperties.Count; x++) 147for (int x = 0; x < _extendedProperties.Count; x++) 210if (_extendedProperties.Count > 0) 212Guid[] guids = new Guid[_extendedProperties.Count]; 213for (int i = 0; i < _extendedProperties.Count; i++) 251for (int i = 0; i < _extendedProperties.Count; i++) 310return _extendedProperties.Count; 353_optimisticIndex < _extendedProperties.Count && 360for (int i = 0; i < _extendedProperties.Count; i++)
Core\CSharp\MS\Internal\Ink\GestureRecognizer\NativeRecognizer.cs (1)
310if (foundAllGestures && gestures.Count != 1)
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\AlgoModule.cs (1)
101if (((compressedData.Count - 1/*for the algo byte we just made room for*/) >> 2) > input.Length)
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\GuidTagList.cs (4)
68for (i = 0; i < _CustomGuids.Count; i++) 145if ((0 > nIndex) || (_CustomGuids.Count <= nIndex)) 208uint ul = (uint)(_CustomGuids.Count * Native.SizeOfGuid); 230for (int i = 0; i < _CustomGuids.Count; i++)
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\HuffModule.cs (1)
74if ((int)codec >= _huffCodecs.Count + AlgoModule.DefaultBAACount)
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (36)
119if (0 == (byte)(charData[charData.Count - 1])) 122charData.RemoveAt(charData.Count - 1); 592if (_strokeDescriptorTable.Count <= strokeDescriptorTableIndex) 605if (_transformTable.Count <= transformTableIndex) 627if (_metricTable.Count <= metricDescriptorTableIndex) 641if (_drawingAttributesTable.Count <= drawingAttributesTableIndex) 1599while (cTags < strd.Template.Count) 1653for (int i = 0; i < tags.Count; i++) 2267if (_strokeDescriptorTable.Count == 0) 2274if (_strokeDescriptorTable.Count == 1) 2279if (tmp.Template.Count == 0) 2296for (count = 0; count < _strokeDescriptorTable.Count; count++) 2306for (count = 0; count < _strokeDescriptorTable.Count; count++) 2326if (0 == _metricTable.Count) 2329for (int i = 0; i < _metricTable.Count; i++) 2343else if (1 == _metricTable.Count) 2353for (int i = 0; i < _metricTable.Count; i++) 2375for (int count = 0; count < strd.Template.Count; count++) 2394if (_transformTable.Count == 1 && _transformTable[0].Size == 0) 2403for (int i = 0; i < _transformTable.Count; i++) 2427if (_transformTable.Count == 1) 2438for (int i = 0; i < _transformTable.Count; i++) 2448for (int i = 0; i < _transformTable.Count; i++) 2539if (1 == _drawingAttributesTable.Count) 2570uint[] sizes = new uint[_drawingAttributesTable.Count]; 2571MemoryStream[] drawingAttributeStreams = new MemoryStream[_drawingAttributesTable.Count]; 2574for (int i = 0; i < _drawingAttributesTable.Count; i++) 2587for (int i = 0; i < _drawingAttributesTable.Count; i++) 2635for (int descriptorIndex = 0; descriptorIndex < _strokeDescriptorTable.Count; descriptorIndex++) 2647_strokeLookupTable[stroke].StrokeDescriptorTableIndex = (uint)_strokeDescriptorTable.Count - 1; 2653for (int tmp = 0; tmp < _metricTable.Count; tmp++) 2676_strokeLookupTable[stroke].MetricDescriptorTableIndex = (uint)(_metricTable.Count - 1); 2688for (int i = 0; i < _transformTable.Count; i++) 2701_strokeLookupTable[stroke].TransformTableIndex = (uint)(_transformTable.Count - 1); 2710for (int i = 0; i < _drawingAttributesTable.Count; i++) 2723_strokeLookupTable[stroke].DrawingAttributesTableIndex = (uint)_drawingAttributesTable.Count - 1;
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\StrokeDescriptor.cs (3)
41if( _strokeDescriptor.Count != strd.Template.Count ) 45for( int i = 0; i < _strokeDescriptor.Count; i++ )
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\StrokeSerializer.cs (2)
192for (int iTag = 1; iTag < strokeDescriptor.Template.Count && remainingBytesInStrokeBlock > 0; iTag++) 201while (iTag < strokeDescriptor.Template.Count && remainingBytesInStrokeBlock > 0)
Core\CSharp\MS\Internal\Ink\Lasso.cs (20)
57return (_points.Count < 3); 69return _points.Count; 83System.Diagnostics.Debug.Assert((0 <= index) && (index < _points.Count)); 133int last = _points.Count; 144Point prevLassoPoint = _points[_points.Count - 1]; 145for (int i = 0; i < _points.Count; i++) 194if (_points.Count < 3) 218Point lassoLastPoint = _points[_points.Count - 1]; 301if (crossingList.Count == 0) 389for (int x = 0; x <= crossingList.Count; x++) 406if (x == crossingList.Count) 452StrokeIntersection previousIntersection = strokeIntersections[strokeIntersections.Count - 1]; 461strokeIntersections[strokeIntersections.Count - 1] = previousIntersection; 512if (0 == _points.Count) 518Point lastPoint = _points[_points.Count - 1]; 689if (0 == points.Count) 710System.Diagnostics.Debug.Assert(intersection >= 0 && intersection <= points.Count - 2); 712if (intersection == points.Count - 2) 742for (int j = 0; j < points.Count; j++) 773int count = points.Count;
Core\CSharp\MS\Internal\Ink\StrokeIntersection.cs (8)
201if (inFIndices.Count > 0 && 202inFIndices[inFIndices.Count - 1].EndFIndex >= 206StrokeFIndices sfiPrevious = inFIndices[inFIndices.Count - 1]; 208inFIndices[inFIndices.Count - 1] = sfiPrevious; 233if (hitFIndices.Count > 0 && 234hitFIndices[hitFIndices.Count - 1].EndFIndex >= 238StrokeFIndices sfiPrevious = hitFIndices[hitFIndices.Count - 1]; 240hitFIndices[hitFIndices.Count - 1] = sfiPrevious;
Core\CSharp\MS\Internal\Ink\StrokeRenderer.cs (22)
168int cbEndIndex = connectingQuadPoints.Count - 1; 179for (int i = abIndex, j = connectingQuadPoints.Count - 1; i < j; i++, j--) 387if (pathFigureABSide.Count > 0) 491if (pathFigureABSide.Count == 0) 493Debug.Assert(pathFigureDCSide.Count == 0); 642if (pathFigureABSide.Count > 0) 659Debug.Assert(pathFigureDCSide.Count == 0); 686Debug.Assert(pathFigureABSide.Count == 0); 702if (pathFigureABSide.Count > 0) 722Debug.Assert(pathFigureDCSide.Count == 0); 818for (int i = 0, j = dcPoints.Count - 1; i < j; i++, j--) 883Debug.Assert(points.Count > 0); 885context.BeginFigure(points[points.Count - 1], //start point 911Debug.Assert(abPoints.Count > 0 && dcPoints.Count > 0); 936if (abPoints.Count == 0 || dcPoints.Count == 0) 949for (int i = startIndex; i < points.Count; ) 954if (polyLinePoints.Count > 0) 963Debug.Assert(i + 2 < points.Count); 964if (i + 2 < points.Count) 989if (polyLinePoints.Count > 0)
Core\CSharp\MS\Internal\Media3D\GeneralTransform2Dto3Dto2D.cs (7)
419for (int i = 0; i < hitTestEdgeList.Count; i++) 554if (pointList.Count >= 2) 559else if (pointList.Count == 1) 965if (pointList.Count >= 2) 970else if (pointList.Count == 1) 1048for (int i=0, count = edges.Count; i < count; i++) 1196for (int i = 0, count = edges.Count; i < count; i++)
Core\CSharp\System\Windows\Automation\Peers\AutomationPeer.cs (14)
574int cnt = children.Count; 1266result = new IRawElementProviderSimple[controlledPeers.Count]; 1268for (int i = 0; i < controlledPeers.Count; i++) 1380if (_children != null && _children.Count > 0) 1405int count = _children.Count; 1431if (_children != null && _children.Count > 0) 1433peer = _children[_children.Count - 1]; 1459&& _index + 1 < parent._children.Count 1482&& _index < parent._children.Count 1567iterationParent = (_parent._children == null || _parent._children.Count == caller._children.Count) 1681int count = children.Count; 1822for(int count = oldChildren.Count, i = 0; i < count; i++) 1835for(int count = _children.Count, i = 0; i < count; i++)
Core\CSharp\System\Windows\FreezableCollection.cs (10)
187for (int i = _collection.Count - 1; i >= 0; i--) 194Debug.Assert(_collection.Count == 0); 387return _collection.Count; 406if (index < 0 || (index + _collection.Count) > array.Length) 521if (index < 0 || (index + _collection.Count) > array.Length) 535int count = _collection.Count; 758return _collection.Count; 843int count = source._collection.Count; 938int count = _collection.Count; 1060if (_index > -2 && _index < _list._collection.Count - 1)
Core\CSharp\System\Windows\Ink\IncrementalHitTester.cs (9)
112int count = _strokeInfos.Count; 198for (int i = 0; i < _strokeInfos.Count && localRemoved.Count > 0; ) 220if (_strokes.Count != _strokeInfos.Count) 226for (int i = 0; i < _strokeInfos.Count; i++) 248for (int x = 0; x < _strokeInfos.Count; x++) 269for (int x = 0; x < _strokeInfos.Count; x++) 550for (int x = 0; x < this.StrokeInfos.Count; x++) 578System.Diagnostics.Debug.Assert(strokeHitEventArgCollection.Count != 0); 579for (int x = 0; x < strokeHitEventArgCollection.Count; x++)
Core\CSharp\System\Windows\Ink\Stroke.cs (5)
273Debug.Assert(bezierPoints != null && bezierPoints.Count > 0); 277new StylusPointCollection(_stylusPoints.Description, bezierPoints.Count); 287if (bezierPoints.Count == 1) 318for (int x = 1; x < bezierPoints.Count - 1; x++) 365bezierPoints[bezierPoints.Count - 1],
Core\CSharp\System\Windows\Input\AccessKeyManager.cs (4)
110return (targets != null && targets.Count > 0); 290for (int i = 0; i < targets.Count; i++) 329return (chosenIndex == targets.Count - 1) ? ProcessKeyResult.LastMatch : ProcessKeyResult.MoreMatches; 454for (int i = 0; i < possibleElements.Count; i++)
Core\CSharp\System\Windows\Input\Command\CanExecuteChangedEventManager.cs (3)
120removeList = (toRemove != null && toRemove.Count == list.Count); 308if (list.Count == 0)
Core\CSharp\System\Windows\Input\Command\CommandBindingCollection.cs (1)
316return (_innerCBList != null ? _innerCBList.Count : 0);
Core\CSharp\System\Windows\Input\Command\CommandManager.cs (2)
709for (int i=0; i<list.Count; ++i) 717while (++i<list.Count && list[i].Item1 == classType)
Core\CSharp\System\Windows\Input\Command\InputBindingCollection.cs (3)
200if (index >= 0 && index < _innerBindingList.Count) 341if (index >= 0 && index < _innerBindingList.Count) 368return (_innerBindingList != null ? _innerBindingList.Count : 0);
Core\CSharp\System\Windows\Input\Command\InputGestureCollection.cs (1)
376return (_innerGestureList != null ? _innerGestureList.Count : 0 );
Core\CSharp\System\Windows\Input\ManipulationDevice.cs (3)
165for (int i = _manipulators.Count - 1; i >= 0; i--) 206if (_manipulators == null || _manipulators.Count == 0) 514Debug.Assert(_manipulators == null || _manipulators.Count == 0);
Core\CSharp\System\Windows\Input\ManipulationInertiaStartingEventArgs.cs (2)
225if (_inertiaParameters != null && _inertiaParameters.Count > 0) 261for (int i = 0, count = _inertiaParameters.Count; i < count; i++)
Core\CSharp\System\Windows\Input\TouchDevice.cs (9)
480int count = (_activeDevices != null) ? _activeDevices.Count : 0; 516int count = _activeDevices != null ? _activeDevices.Count : 0; 767if (_activeDevices.Count == 1) 885int count = _activeDevices != null ? _activeDevices.Count : 0; 1245int count = _activeDevices.Count; 1258if ((_activeDevices != null) && (_activeDevices.Count > 0)) 1274int count = _activeDevices.Count; 1320int count = _activeDevices.Count; 1340int count = _activeDevices.Count;
Core\CSharp\System\Windows\Media\Animation\Clock.cs (1)
1433if (_childIndex == parentChildren.Count - 1)
Core\CSharp\System\Windows\Media\Animation\ClockGroup.cs (7)
138for (int index = 0; index < _children.Count; index++) 297for (int c = 0; c < _children.Count; c++) 318for (int c = 0; c < _children.Count; c++) 357for (int childIndex = 0; childIndex < _children.Count; childIndex++) 443for (int c = 0; c < _children.Count; c++) 506return (_rootChildren.Count > 0); 557for (int childIndex = 0; childIndex < _children.Count; childIndex++)
Core\CSharp\System\Windows\Media\Animation\Generated\BooleanAnimationUsingKeyFrames.cs (1)
900for (int i = 0, currentKeyFrameIndex = firstPacedBlockKeyFrameIndex; i < segmentLengths.Count; i++, currentKeyFrameIndex++)
Core\CSharp\System\Windows\Media\Animation\Generated\BooleanKeyFrameCollection.cs (9)
105int count = sourceCollection._keyFrames.Count; 126int count = sourceCollection._keyFrames.Count; 147int count = sourceCollection._keyFrames.Count; 168int count = sourceCollection._keyFrames.Count; 187for (int i = 0; i < _keyFrames.Count && canFreeze; i++) 222return _keyFrames.Count; 303return _keyFrames.Count - 1; 313if (_keyFrames.Count > 0) 315for (int i = 0; i < _keyFrames.Count; i++)
Core\CSharp\System\Windows\Media\Animation\Generated\ByteAnimationUsingKeyFrames.cs (1)
992for (int i = 0, currentKeyFrameIndex = firstPacedBlockKeyFrameIndex; i < segmentLengths.Count; i++, currentKeyFrameIndex++)
Core\CSharp\System\Windows\Media\Animation\Generated\ByteKeyFrameCollection.cs (9)
105int count = sourceCollection._keyFrames.Count; 126int count = sourceCollection._keyFrames.Count; 147int count = sourceCollection._keyFrames.Count; 168int count = sourceCollection._keyFrames.Count; 187for (int i = 0; i < _keyFrames.Count && canFreeze; i++) 222return _keyFrames.Count; 303return _keyFrames.Count - 1; 313if (_keyFrames.Count > 0) 315for (int i = 0; i < _keyFrames.Count; i++)
Core\CSharp\System\Windows\Media\Animation\Generated\CharAnimationUsingKeyFrames.cs (1)
900for (int i = 0, currentKeyFrameIndex = firstPacedBlockKeyFrameIndex; i < segmentLengths.Count; i++, currentKeyFrameIndex++)
Core\CSharp\System\Windows\Media\Animation\Generated\CharKeyFrameCollection.cs (9)
105int count = sourceCollection._keyFrames.Count; 126int count = sourceCollection._keyFrames.Count; 147int count = sourceCollection._keyFrames.Count; 168int count = sourceCollection._keyFrames.Count; 187for (int i = 0; i < _keyFrames.Count && canFreeze; i++) 222return _keyFrames.Count; 303return _keyFrames.Count - 1; 313if (_keyFrames.Count > 0) 315for (int i = 0; i < _keyFrames.Count; i++)
Core\CSharp\System\Windows\Media\Animation\Generated\ColorAnimationUsingKeyFrames.cs (1)
992for (int i = 0, currentKeyFrameIndex = firstPacedBlockKeyFrameIndex; i < segmentLengths.Count; i++, currentKeyFrameIndex++)
Core\CSharp\System\Windows\Media\Animation\Generated\ColorKeyFrameCollection.cs (9)
105int count = sourceCollection._keyFrames.Count; 126int count = sourceCollection._keyFrames.Count; 147int count = sourceCollection._keyFrames.Count; 168int count = sourceCollection._keyFrames.Count; 187for (int i = 0; i < _keyFrames.Count && canFreeze; i++) 222return _keyFrames.Count; 303return _keyFrames.Count - 1; 313if (_keyFrames.Count > 0) 315for (int i = 0; i < _keyFrames.Count; i++)
Core\CSharp\System\Windows\Media\Animation\Generated\DecimalAnimationUsingKeyFrames.cs (1)
992for (int i = 0, currentKeyFrameIndex = firstPacedBlockKeyFrameIndex; i < segmentLengths.Count; i++, currentKeyFrameIndex++)
Core\CSharp\System\Windows\Media\Animation\Generated\DecimalKeyFrameCollection.cs (9)
105int count = sourceCollection._keyFrames.Count; 126int count = sourceCollection._keyFrames.Count; 147int count = sourceCollection._keyFrames.Count; 168int count = sourceCollection._keyFrames.Count; 187for (int i = 0; i < _keyFrames.Count && canFreeze; i++) 222return _keyFrames.Count; 303return _keyFrames.Count - 1; 313if (_keyFrames.Count > 0) 315for (int i = 0; i < _keyFrames.Count; i++)
Core\CSharp\System\Windows\Media\Animation\Generated\DoubleAnimationUsingKeyFrames.cs (1)
992for (int i = 0, currentKeyFrameIndex = firstPacedBlockKeyFrameIndex; i < segmentLengths.Count; i++, currentKeyFrameIndex++)
Core\CSharp\System\Windows\Media\Animation\Generated\DoubleKeyFrameCollection.cs (9)
105int count = sourceCollection._keyFrames.Count; 126int count = sourceCollection._keyFrames.Count; 147int count = sourceCollection._keyFrames.Count; 168int count = sourceCollection._keyFrames.Count; 187for (int i = 0; i < _keyFrames.Count && canFreeze; i++) 222return _keyFrames.Count; 303return _keyFrames.Count - 1; 313if (_keyFrames.Count > 0) 315for (int i = 0; i < _keyFrames.Count; i++)
Core\CSharp\System\Windows\Media\Animation\Generated\Int16AnimationUsingKeyFrames.cs (1)
992for (int i = 0, currentKeyFrameIndex = firstPacedBlockKeyFrameIndex; i < segmentLengths.Count; i++, currentKeyFrameIndex++)
Core\CSharp\System\Windows\Media\Animation\Generated\Int16KeyFrameCollection.cs (9)
105int count = sourceCollection._keyFrames.Count; 126int count = sourceCollection._keyFrames.Count; 147int count = sourceCollection._keyFrames.Count; 168int count = sourceCollection._keyFrames.Count; 187for (int i = 0; i < _keyFrames.Count && canFreeze; i++) 222return _keyFrames.Count; 303return _keyFrames.Count - 1; 313if (_keyFrames.Count > 0) 315for (int i = 0; i < _keyFrames.Count; i++)
Core\CSharp\System\Windows\Media\Animation\Generated\Int32AnimationUsingKeyFrames.cs (1)
992for (int i = 0, currentKeyFrameIndex = firstPacedBlockKeyFrameIndex; i < segmentLengths.Count; i++, currentKeyFrameIndex++)
Core\CSharp\System\Windows\Media\Animation\Generated\Int32KeyFrameCollection.cs (9)
105int count = sourceCollection._keyFrames.Count; 126int count = sourceCollection._keyFrames.Count; 147int count = sourceCollection._keyFrames.Count; 168int count = sourceCollection._keyFrames.Count; 187for (int i = 0; i < _keyFrames.Count && canFreeze; i++) 222return _keyFrames.Count; 303return _keyFrames.Count - 1; 313if (_keyFrames.Count > 0) 315for (int i = 0; i < _keyFrames.Count; i++)
Core\CSharp\System\Windows\Media\Animation\Generated\Int64AnimationUsingKeyFrames.cs (1)
992for (int i = 0, currentKeyFrameIndex = firstPacedBlockKeyFrameIndex; i < segmentLengths.Count; i++, currentKeyFrameIndex++)
Core\CSharp\System\Windows\Media\Animation\Generated\Int64KeyFrameCollection.cs (9)
105int count = sourceCollection._keyFrames.Count; 126int count = sourceCollection._keyFrames.Count; 147int count = sourceCollection._keyFrames.Count; 168int count = sourceCollection._keyFrames.Count; 187for (int i = 0; i < _keyFrames.Count && canFreeze; i++) 222return _keyFrames.Count; 303return _keyFrames.Count - 1; 313if (_keyFrames.Count > 0) 315for (int i = 0; i < _keyFrames.Count; i++)
Core\CSharp\System\Windows\Media\Animation\Generated\MatrixAnimationUsingKeyFrames.cs (1)
900for (int i = 0, currentKeyFrameIndex = firstPacedBlockKeyFrameIndex; i < segmentLengths.Count; i++, currentKeyFrameIndex++)
Core\CSharp\System\Windows\Media\Animation\Generated\MatrixKeyFrameCollection.cs (9)
105int count = sourceCollection._keyFrames.Count; 126int count = sourceCollection._keyFrames.Count; 147int count = sourceCollection._keyFrames.Count; 168int count = sourceCollection._keyFrames.Count; 187for (int i = 0; i < _keyFrames.Count && canFreeze; i++) 222return _keyFrames.Count; 303return _keyFrames.Count - 1; 313if (_keyFrames.Count > 0) 315for (int i = 0; i < _keyFrames.Count; i++)
Core\CSharp\System\Windows\Media\Animation\Generated\ObjectAnimationUsingKeyFrames.cs (1)
900for (int i = 0, currentKeyFrameIndex = firstPacedBlockKeyFrameIndex; i < segmentLengths.Count; i++, currentKeyFrameIndex++)
Core\CSharp\System\Windows\Media\Animation\Generated\ObjectKeyFrameCollection.cs (9)
105int count = sourceCollection._keyFrames.Count; 126int count = sourceCollection._keyFrames.Count; 147int count = sourceCollection._keyFrames.Count; 168int count = sourceCollection._keyFrames.Count; 187for (int i = 0; i < _keyFrames.Count && canFreeze; i++) 222return _keyFrames.Count; 303return _keyFrames.Count - 1; 313if (_keyFrames.Count > 0) 315for (int i = 0; i < _keyFrames.Count; i++)
Core\CSharp\System\Windows\Media\Animation\Generated\Point3DAnimationUsingKeyFrames.cs (1)
992for (int i = 0, currentKeyFrameIndex = firstPacedBlockKeyFrameIndex; i < segmentLengths.Count; i++, currentKeyFrameIndex++)
Core\CSharp\System\Windows\Media\Animation\Generated\Point3DKeyFrameCollection.cs (9)
105int count = sourceCollection._keyFrames.Count; 126int count = sourceCollection._keyFrames.Count; 147int count = sourceCollection._keyFrames.Count; 168int count = sourceCollection._keyFrames.Count; 187for (int i = 0; i < _keyFrames.Count && canFreeze; i++) 222return _keyFrames.Count; 303return _keyFrames.Count - 1; 313if (_keyFrames.Count > 0) 315for (int i = 0; i < _keyFrames.Count; i++)
Core\CSharp\System\Windows\Media\Animation\Generated\PointAnimationUsingKeyFrames.cs (1)
992for (int i = 0, currentKeyFrameIndex = firstPacedBlockKeyFrameIndex; i < segmentLengths.Count; i++, currentKeyFrameIndex++)
Core\CSharp\System\Windows\Media\Animation\Generated\PointKeyFrameCollection.cs (9)
105int count = sourceCollection._keyFrames.Count; 126int count = sourceCollection._keyFrames.Count; 147int count = sourceCollection._keyFrames.Count; 168int count = sourceCollection._keyFrames.Count; 187for (int i = 0; i < _keyFrames.Count && canFreeze; i++) 222return _keyFrames.Count; 303return _keyFrames.Count - 1; 313if (_keyFrames.Count > 0) 315for (int i = 0; i < _keyFrames.Count; i++)
Core\CSharp\System\Windows\Media\Animation\Generated\QuaternionAnimationUsingKeyFrames.cs (1)
992for (int i = 0, currentKeyFrameIndex = firstPacedBlockKeyFrameIndex; i < segmentLengths.Count; i++, currentKeyFrameIndex++)
Core\CSharp\System\Windows\Media\Animation\Generated\QuaternionKeyFrameCollection.cs (9)
105int count = sourceCollection._keyFrames.Count; 126int count = sourceCollection._keyFrames.Count; 147int count = sourceCollection._keyFrames.Count; 168int count = sourceCollection._keyFrames.Count; 187for (int i = 0; i < _keyFrames.Count && canFreeze; i++) 222return _keyFrames.Count; 303return _keyFrames.Count - 1; 313if (_keyFrames.Count > 0) 315for (int i = 0; i < _keyFrames.Count; i++)
Core\CSharp\System\Windows\Media\Animation\Generated\RectAnimationUsingKeyFrames.cs (1)
992for (int i = 0, currentKeyFrameIndex = firstPacedBlockKeyFrameIndex; i < segmentLengths.Count; i++, currentKeyFrameIndex++)
Core\CSharp\System\Windows\Media\Animation\Generated\RectKeyFrameCollection.cs (9)
105int count = sourceCollection._keyFrames.Count; 126int count = sourceCollection._keyFrames.Count; 147int count = sourceCollection._keyFrames.Count; 168int count = sourceCollection._keyFrames.Count; 187for (int i = 0; i < _keyFrames.Count && canFreeze; i++) 222return _keyFrames.Count; 303return _keyFrames.Count - 1; 313if (_keyFrames.Count > 0) 315for (int i = 0; i < _keyFrames.Count; i++)
Core\CSharp\System\Windows\Media\Animation\Generated\Rotation3DAnimationUsingKeyFrames.cs (1)
992for (int i = 0, currentKeyFrameIndex = firstPacedBlockKeyFrameIndex; i < segmentLengths.Count; i++, currentKeyFrameIndex++)
Core\CSharp\System\Windows\Media\Animation\Generated\Rotation3DKeyFrameCollection.cs (9)
105int count = sourceCollection._keyFrames.Count; 126int count = sourceCollection._keyFrames.Count; 147int count = sourceCollection._keyFrames.Count; 168int count = sourceCollection._keyFrames.Count; 187for (int i = 0; i < _keyFrames.Count && canFreeze; i++) 222return _keyFrames.Count; 303return _keyFrames.Count - 1; 313if (_keyFrames.Count > 0) 315for (int i = 0; i < _keyFrames.Count; i++)
Core\CSharp\System\Windows\Media\Animation\Generated\SingleAnimationUsingKeyFrames.cs (1)
992for (int i = 0, currentKeyFrameIndex = firstPacedBlockKeyFrameIndex; i < segmentLengths.Count; i++, currentKeyFrameIndex++)
Core\CSharp\System\Windows\Media\Animation\Generated\SingleKeyFrameCollection.cs (9)
105int count = sourceCollection._keyFrames.Count; 126int count = sourceCollection._keyFrames.Count; 147int count = sourceCollection._keyFrames.Count; 168int count = sourceCollection._keyFrames.Count; 187for (int i = 0; i < _keyFrames.Count && canFreeze; i++) 222return _keyFrames.Count; 303return _keyFrames.Count - 1; 313if (_keyFrames.Count > 0) 315for (int i = 0; i < _keyFrames.Count; i++)
Core\CSharp\System\Windows\Media\Animation\Generated\SizeAnimationUsingKeyFrames.cs (1)
992for (int i = 0, currentKeyFrameIndex = firstPacedBlockKeyFrameIndex; i < segmentLengths.Count; i++, currentKeyFrameIndex++)
Core\CSharp\System\Windows\Media\Animation\Generated\SizeKeyFrameCollection.cs (9)
105int count = sourceCollection._keyFrames.Count; 126int count = sourceCollection._keyFrames.Count; 147int count = sourceCollection._keyFrames.Count; 168int count = sourceCollection._keyFrames.Count; 187for (int i = 0; i < _keyFrames.Count && canFreeze; i++) 222return _keyFrames.Count; 303return _keyFrames.Count - 1; 313if (_keyFrames.Count > 0) 315for (int i = 0; i < _keyFrames.Count; i++)
Core\CSharp\System\Windows\Media\Animation\Generated\StringAnimationUsingKeyFrames.cs (1)
900for (int i = 0, currentKeyFrameIndex = firstPacedBlockKeyFrameIndex; i < segmentLengths.Count; i++, currentKeyFrameIndex++)
Core\CSharp\System\Windows\Media\Animation\Generated\StringKeyFrameCollection.cs (9)
105int count = sourceCollection._keyFrames.Count; 126int count = sourceCollection._keyFrames.Count; 147int count = sourceCollection._keyFrames.Count; 168int count = sourceCollection._keyFrames.Count; 187for (int i = 0; i < _keyFrames.Count && canFreeze; i++) 222return _keyFrames.Count; 303return _keyFrames.Count - 1; 313if (_keyFrames.Count > 0) 315for (int i = 0; i < _keyFrames.Count; i++)
Core\CSharp\System\Windows\Media\Animation\Generated\Vector3DAnimationUsingKeyFrames.cs (1)
992for (int i = 0, currentKeyFrameIndex = firstPacedBlockKeyFrameIndex; i < segmentLengths.Count; i++, currentKeyFrameIndex++)
Core\CSharp\System\Windows\Media\Animation\Generated\Vector3DKeyFrameCollection.cs (9)
105int count = sourceCollection._keyFrames.Count; 126int count = sourceCollection._keyFrames.Count; 147int count = sourceCollection._keyFrames.Count; 168int count = sourceCollection._keyFrames.Count; 187for (int i = 0; i < _keyFrames.Count && canFreeze; i++) 222return _keyFrames.Count; 303return _keyFrames.Count - 1; 313if (_keyFrames.Count > 0) 315for (int i = 0; i < _keyFrames.Count; i++)
Core\CSharp\System\Windows\Media\Animation\Generated\VectorAnimationUsingKeyFrames.cs (1)
992for (int i = 0, currentKeyFrameIndex = firstPacedBlockKeyFrameIndex; i < segmentLengths.Count; i++, currentKeyFrameIndex++)
Core\CSharp\System\Windows\Media\Animation\Generated\VectorKeyFrameCollection.cs (9)
105int count = sourceCollection._keyFrames.Count; 126int count = sourceCollection._keyFrames.Count; 147int count = sourceCollection._keyFrames.Count; 168int count = sourceCollection._keyFrames.Count; 187for (int i = 0; i < _keyFrames.Count && canFreeze; i++) 222return _keyFrames.Count; 303return _keyFrames.Count - 1; 313if (_keyFrames.Count > 0) 315for (int i = 0; i < _keyFrames.Count; i++)
Core\CSharp\System\Windows\Media\Animation\ParallelTimeline.cs (1)
106for (int childIndex = 0; childIndex < children.Count; childIndex++)
Core\CSharp\System\Windows\Media\Animation\TimelineClockCollection.cs (1)
42return childList.Count;
Core\CSharp\System\Windows\Media\Animation\WeakRefEnumerator.cs (2)
112_readIndex = _writeIndex = _list.Count; 137while (_readIndex < _list.Count)
Core\CSharp\System\Windows\Media\Effects\ShaderEffect.cs (14)
224for (int i = PS_2_0_FLOAT_REGISTER_LIMIT; i < _floatRegisters.Count; i++) 238for (int i = PS_2_0_SAMPLER_LIMIT; i < _samplerData.Count; i++) 494if (list.Count <= position) 496int numToAdd = position - list.Count + 1; 521if (_samplerData.Count <= position) 523int numToAdd = position - _samplerData.Count + 1; 648for (int i = 0; i < _floatRegisters.Count; i++) 665for (int i = 0; i < _intRegisters.Count; i++) 682for (int i = 0; i < _boolRegisters.Count; i++) 702int count = _samplerData.Count; 725for (int i = 0; i < _samplerData.Count; i++) 767for (int i = 0; i < list.Count; i++) 789int numSamplers = _samplerData.Count; 829int numSamplers = _samplerData.Count;
Core\CSharp\System\Windows\Media\Visual.cs (1)
4752if (UIElement.DpiScaleXValues.Count == 0)
Core\CSharp\System\Windows\Media3D\Matrix3DStack.cs (5)
50_stack.RemoveAt(_stack.Count - 1); 60if (_stack.Count > 0) 78return _stack.Count; 86return (_stack.Count == 0); 94return _stack[_stack.Count - 1];
Core\CSharp\System\Windows\Media3D\RayHitTestParameters.cs (1)
129for(int i = 0, count = results.Count; i < count; i++)
Graphics\include\exports.cs (7)
1229for (int i = 0; i < _others.Count; i++) 1298Debug.Assert(_others.Count > 0); 1299int j = _others.Count-1; 1322if (_others.Count == 1) 1382return _others.Count + 1; 1466for (int i = 0; i < others.Count; i++) 1622return ((List<Entry>)_head._key).Count;
Shared\MS\Internal\Ink\BitStream.cs (2)
458buffer = _targetBuffer[_targetBuffer.Count - 1]; 470_targetBuffer[_targetBuffer.Count - 1] = buffer;
PresentationFramework (779)
src\Framework\MS\Internal\Annotations\Anchoring\LocatorManager.cs (1)
766List<ContentLocatorBase> tempLocators = new List<ContentLocatorBase>(locatorsToReturn.Count * locatorParts.Count);
src\Framework\MS\Internal\Annotations\AnnotationMap.cs (2)
56if (list.Count == 0) 109if (result.Count == 0)
src\Framework\MS\Internal\Annotations\Component\AdornerPresentationContext.cs (2)
449if (adorners.Count > 0) 451for (index = adorners.Count; index > 0; index--)
src\Framework\MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (13)
94if (_segments.Count == 0) 256for (int i = 0; i < _segments.Count; i++) 366while ((ind < _segments.Count) && (!rangeSegment.IsNull)) 460if (ind == _segments.Count) ind--; 472for (int i = 0; i < _segments.Count; i++) 497for (int i = _segments.Count - 1; i >= 0; i--) 520for (int i = 0; i < _segments.Count; i++) 691for (int i = 0; i < _owners.Count; i++) 721return _owners.Count; 1182if (_activeOwners.Count != 0) 1186return _owners.Count > 0 ? _owners[0] : null; 1208if (_activeOwners.Count != 0) 1212return _owners.Count > 0 ? new SolidColorBrush(_owners[0].Background) : null;
src\Framework\MS\Internal\Annotations\Component\MArkedHighlightComponent.cs (12)
656if (componentsRegister.Components.Count == 0) 929bool[] active = new bool[components.Count]; 930for (int i = 0; i < components.Count; i++) 939for (int i = 0; i < components.Count; i++) 994Debug.Assert((components != null) && (components.Count > 0), "invalid component registry"); 996for (int i = 0; i < components.Count; i++) 1039if (_components.Count == 0) 1050for (; i < _components.Count; i++) 1059for (; i < _components.Count; i++) 1075for (; ind < _components.Count; ind++) 1081if (ind < _components.Count) 1086for (; ind < _components.Count; ind++)
src\Framework\MS\Internal\Annotations\TextAnchor.cs (19)
131for (int i = 0; i < _segments.Count; i++) 179if (other._segments.Count != this._segments.Count) 182for (int i = 0; i < _segments.Count; i++) 300while (currentIndex < anchor._segments.Count && hasMore) 358if (anchor._segments.Count > 0) 402while (current < anchor._segments.Count && hasMore) 457if (!hasMore && current < anchor._segments.Count) 459anchor._segments.RemoveRange(current, anchor._segments.Count - current); 462if (anchor._segments.Count == 0) 518return _segments.Count > 0 ? _segments[0].Start : null; 529return _segments.Count > 0 ? _segments[_segments.Count - 1].End : null; 541return (_segments.Count == 1 && (object)_segments[0].Start == (object)_segments[0].End); 556for (int i = 0; i < _segments.Count; i++) 610for (int i = orderedList.Count - 1; i >= 0; i--) 622if (orderedList.Count > 1) 638for (; i < _segments.Count; i++) 649if (i < _segments.Count && newSegment.End.CompareTo(_segments[i].Start) > 0)
src\Framework\MS\Internal\AppModel\RootBrowserWindow.cs (1)
774for (int j = 0; j < _webBrowserList.Count; j++)
src\Framework\MS\Internal\Controls\InkCanvasSelectionAdorner.cs (3)
171int count = hatchBounds.Count; 172if ( count != _elementsBounds.Count ) 253int count = _elementsBounds.Count;
src\Framework\MS\Internal\Data\CollectionViewGroupRoot.cs (3)
343List<GroupTreeNode> list = new List<GroupTreeNode>(parentGroups.Count + 1); 355for (int index = 0; index < list.Count; ++index) 369for (int k=list.Count-1; k>=0; --k)
src\Framework\MS\Internal\Data\LiveShapingItem.cs (1)
218if (list.Count == 1)
src\Framework\MS\Internal\Data\LiveShapingList.cs (2)
724for (; _dpIndex < s_dpList.Count; ++_dpIndex) 740s_dpList.Count),
src\Framework\MS\Internal\Data\StaticPropertyChangedEventManager.cs (2)
497Debug.Assert(_toRemove.Count == 0, "to-remove list should be empty"); 524if (_toRemove.Count > 0)
src\Framework\MS\Internal\Data\ValueChangedEventManager.cs (2)
201Debug.Assert(_toRemove.Count == 0, "to-remove list should be empty"); 233if (_toRemove.Count > 0)
src\Framework\MS\Internal\Documents\ContentHostHelper.cs (1)
115for (int i = 0; i < pageViews.Count; i++)
src\Framework\MS\Internal\Documents\DocumentGrid.cs (1)
3001for (int i = 0; i < args.Changes.Count; i++)
src\Framework\MS\Internal\Documents\FlowDocumentPaginator.cs (4)
454for(int index = 0; index < _asyncRequests.Count; index++) 631if (_backgroundPagination && _backgroundPaginationOperation == null && (!_brt.IsClean || _asyncRequests.Count > 0)) 642for(int index = 0; index < _asyncRequests.Count; index++) 807for(int index = 0; index < _asyncRequests.Count; index++)
src\Framework\MS\Internal\Documents\MultiPageTextView.cs (11)
158for (int i = 0, count = _pageTextViews.Count; i < count; ++i) 655for (int i = 0; i < _pageTextViews.Count; i++) 676if (_pageTextViews != null && _pageTextViews.Count > 0) 696for (int i = 0; i < _pageTextViews.Count; i++) 726for (index = 0; index < _pageTextViews.Count; index++) 1081for (i = 0; i < _pageTextViews.Count; i++) 1094double[] textViewProximities = new double[_pageTextViews.Count]; 1095for (i = 0; i < _pageTextViews.Count; i++) 1147for (i = 0; i < _pageTextViews.Count; i++) 1172for (i = 0; i < _pageTextViews.Count; i++) 1202for (int i = 0; i < _pageTextViews.Count; i++)
src\Framework\MS\Internal\Documents\PageCache.cs (24)
175return _cache.Count; 268if (pageNumber >= 0 && pageNumber < _cache.Count) 303if (pageNumber >= 0 && pageNumber < _cache.Count) 387if (args.Start >= _cache.Count) 400if (args.Start + args.Count < _cache.Count) 412change = DirtyRange(args.Start, _cache.Count - args.Start); 418change = AddRange(_cache.Count, args.Count - (_cache.Count - args.Start) + 1); 431if (pageCount < _cache.Count) 433change = new PageCacheChange(pageCount, _cache.Count - pageCount, PageCacheChangeType.Remove); 437_cache.RemoveRange(pageCount, _cache.Count - pageCount); 536if (args.Start + args.Count >= _cache.Count || 539adjustedCount = _cache.Count - args.Start; 637if (args.PageNumber > _cache.Count - 1) 730for (int i = 0; i < _cache.Count; i++) 759if (PageCacheChanged != null && changes != null && changes.Count > 0) 789if( start >= _cache.Count ) 791count += (start - _cache.Count); 792start = _cache.Count; 816if (index >= _cache.Count || index < 0) 845if( start >= _cache.Count ) 850if (start + count > _cache.Count || count < 1 ) 877if (_cache.Count > 0) 882PageCacheChange change = new PageCacheChange(0, _cache.Count, PageCacheChangeType.Remove);
src\Framework\MS\Internal\Documents\RowCache.cs (32)
102return _rowCache.Count; 254if (index < 0 || index > _rowCache.Count) 295for (int i = 0; i < _rowCache.Count; i++) 324if (_rowCache.Count == 0) 338for(int i=0;i<_rowCache.Count;i++) 366i == _rowCache.Count - 1) 388return _rowCache.Count - 1; 394return _rowCache.Count - 1; 423if (_rowCache.Count == 0) 440for (int i = startRowIndex + 1; i < _rowCache.Count; i++) 476for (int i = 0; i < _rowCache.Count; i++) 503changes.Add(new RowCacheChange(0, _rowCache.Count)); 601changes.Add(new RowCacheChange(0, _rowCache.Count)); 626if (_rowCache.Count == 0) 634RowInfo lastRow = _rowCache[_rowCache.Count-1]; 720for (int i = tempRows.Count-1; i >= 0; i--) 726pivotRowIndex = _rowCache.Count; 934RowInfo lastRow = _rowCache[_rowCache.Count - 1]; 965startRow = _rowCache.Count - 1; 971startRow = _rowCache.Count; 1010if (_rowCache.Count == 0) 1020RowInfo lastRow = _rowCache[_rowCache.Count - 1]; 1057while (currentPage < startPage + count && rowIndex < _rowCache.Count) 1105if (index > _rowCache.Count) 1123for(int i = index + 1; i < _rowCache.Count; i++) 1150for (int i = 0; i < _rowCache.Count; i++) 1192int removeCount = _rowCache.Count - rowIndex; 1195if(rowIndex < _rowCache.Count ) 1243List<RowCacheChange> changes = new List<RowCacheChange>(args.Changes.Count); 1244for (int i = 0; i < args.Changes.Count; i++) 1307if (_rowCache.Count <= 1) 1311if (_rowCache.Count == 0 || _rowCache[0].PageCount < _layoutColumns )
src\Framework\MS\Internal\Documents\TextBoxView.cs (51)
444if (_lineMetrics.Count == 0 || constraintschanged) 459_lineMetrics.Count == 1 && _lineMetrics[0].EndOffset == 0) 485Invariant.Assert(_lineMetrics.Count >= 1); 516if (_lineMetrics == null || _lineMetrics.Count == 0) 587return (_visualChildren == null) ? 0 : _visualChildren.Count; 701int startOffset = Math.Min(_lineMetrics[_lineMetrics.Count-1].EndOffset, startPosition.Offset); 702int endOffset = Math.Min(_lineMetrics[_lineMetrics.Count - 1].EndOffset, endPosition.Offset); 779int nextLineIndex = Math.Max(0, Math.Min(_lineMetrics.Count - 1, lineIndex + count)); 898if (lineIndex == _lineMetrics.Count - 1) 1111int lastValidOffset = _lineMetrics[_lineMetrics.Count - 1].EndOffset; 1123int newLastValidOffset = _lineMetrics[_lineMetrics.Count - 1].EndOffset; 1184int max = _lineMetrics.Count; 1186Invariant.Assert(_lineMetrics.Count >= 1); 1205if (offset == record.EndOffset && index < _lineMetrics.Count - 1) 1310ITextPointer end = _host.TextContainer.CreatePointerAtOffset(_lineMetrics[_lineMetrics.Count-1].EndOffset, LogicalDirection.Forward); 1537if(_lineMetrics.Count == 0) 1646Invariant.Assert(_lineMetrics.Count >= 1); 1654if (point.Y >= _lineHeight * _lineMetrics.Count) 1656return snapToText ? _lineMetrics.Count-1 : -1; 1663int max = _lineMetrics.Count; 1956int j = _visualChildren.Count - 1; // last non-discarded element index 1958for (int i = _visualChildren.Count - 1; i >= 0; i--) 1973if (j < _visualChildren.Count - 1) 1975_visualChildren.RemoveRange(j + 1, _visualChildren.Count - j - 1); 1988lineVisual._parentIndex = _visualChildren.Count; 1996for (int i = 0; i < _visualChildren.Count; i++) 2204firstLineIndex = Math.Max(0, Math.Min(firstLineIndex, _lineMetrics.Count - 1)); 2205lastLineIndex = Math.Max(0, Math.Min(lastLineIndex, _lineMetrics.Count - 1)); 2211lastLineIndex = _lineMetrics.Count - 1; 2231if (_lineMetrics.Count == 0) 2239lineOffset = _lineMetrics[_lineMetrics.Count - 1].EndOffset; 2329if (range.StartIndex > _lineMetrics[_lineMetrics.Count - 1].EndOffset) 2349if (range.StartIndex > _lineMetrics[_lineMetrics.Count - 1].EndOffset) 2388for (int i = lineIndex + 1; i < _lineMetrics.Count; i++) 2447if (endOffset > _lineMetrics[_lineMetrics.Count - 1].EndOffset) 2450endOffset = _lineMetrics[_lineMetrics.Count - 1].EndOffset; 2462for (int i = lastLineIndex + 1; i < _lineMetrics.Count; i++) 2555(lineIndex == _lineMetrics.Count || 2559if (lineIndex < _lineMetrics.Count && 2578if (lineIndex == _lineMetrics.Count || 2631if (endOfParagraph && lineIndex < _lineMetrics.Count) 2633int count = _lineMetrics.Count - lineIndex; 2645for (int i = 0; i < _lineMetrics.Count; i++) 2649desiredSize.Height = _lineMetrics.Count * _lineHeight; 2705int oldLastLineIndex = oldLineVisualsIndex + oldLineVisuals.Count - 1; 2728for (int i = lineIndex - oldLineVisualsIndex + lineCount; i < oldLineVisuals.Count; i++) 2772lineIndex < _viewportLineVisualsIndex + _viewportLineVisuals.Count) 2786lineIndex < _viewportLineVisualsIndex + _viewportLineVisuals.Count && 2808if (lineIndex < _viewportLineVisualsIndex + _viewportLineVisuals.Count) 2811count = Math.Min(count, _viewportLineVisuals.Count - start); 2904_lineMetrics[_lineMetrics.Count - 1].EndOffset >= position.Offset;
src\Framework\MS\Internal\Documents\TextContainerHelper.cs (2)
480int depth = Math.Min(ancestorsStart.Count, ancestorsEnd.Count);
src\Framework\MS\Internal\Documents\UndoManager.cs (6)
472if (!(_topUndoIndex < UndoStack.Count && PeekUndoStack() == null) // Non-null topmost stack item 473&& (UndoLimit == -1 || UndoStack.Count < UndoLimit)) 672if (_topUndoIndex < 0 || _topUndoIndex == UndoStack.Count) 758_topUndoIndex = undoStack.Count - 1; 908if (UndoStack.Count == 0 || _topUndoIndex < 0) 1146if (UndoStack.Count > 0)
src\Framework\MS\Internal\Globalization\BamlResourceSerializer.cs (1)
106for (int i = children.Count - 1; i >= 0; i--)
src\Framework\MS\Internal\Globalization\BamlTreeMap.cs (1)
623i < node.Children.Count && (comment.LocalizationComments.Length == 0 || comment.LocalizationAttributes.Length == 0);
src\Framework\MS\Internal\Globalization\BamlTreeNode.cs (4)
61get { return _nodeList.Count;} 109parent.Children = new List<BamlTreeNode>(children.Count); 121for (int i = 0; i < children.Count; i++) 507for (int i = 0; i < _children.Count; i++)
src\Framework\MS\Internal\Globalization\BamlTreeUpdater.cs (1)
322for (int i = 0; i < oldChildren.Count - 1; i++)
src\Framework\MS\Internal\Helper.cs (5)
784for (int i = 0; i < itemValues.Count; i++) 812for (int j = 0; j < itemValues.Count; j++) 837for (int i = 0; i < itemValues.Count; i++) 918for (int i = 0; i < itemValues.Count; i++) 1062for (int i=0; i<itemValuesList.Count; i++)
src\Framework\MS\Internal\Ink\ClipboardProcessor.cs (4)
159if ( strokes.Count != 0 || elements.Count != 0 ) 221if (elements != null && elements.Count != 0) 226if (elements.Count == 1 && ClipboardProcessor.InkCanvasDType.IsInstanceOfType(elements[0])) 363int elementCount = elements.Count;
src\Framework\MS\Internal\Ink\HighContrastHelper.cs (2)
94int count = __highContrastCallbackList.Count; 151int count = __highContrastCallbackList.Count;
src\Framework\MS\Internal\Ink\InkCanvasSelection.cs (2)
354if ( _selectedElements == null || _selectedElements.Count == 0 ) 363if ( _selectedElements.Count == 0 )
src\Framework\MS\Internal\Ink\LassoHelper.cs (4)
80int count = points.Count; 214int last = _lasso.Count; 226Point prevLassoPoint = _lasso[_lasso.Count - 1]; 228for (int i = 0; i < _lasso.Count; i++)
src\Framework\MS\Internal\Ink\XamlClipboardData.cs (1)
81return Elements != null && Elements.Count != 0;
src\Framework\MS\Internal\LayoutDump.cs (3)
365if (uiElements.Count > 0) 369writer.WriteAttributeString("Count", uiElements.Count.ToString(CultureInfo.InvariantCulture)); 371for (int index = 0; index < uiElements.Count; index++)
src\Framework\MS\Internal\PtsHost\BreakRecordTable.cs (25)
65Invariant.Assert(pageNumber >= 0 && pageNumber <= _breakRecords.Count, "Invalid PageNumber."); 91if (pageNumber < _breakRecords.Count) 125Invariant.Assert(pageNumber >= 0 && pageNumber <= _breakRecords.Count, "Invalid PageNumber."); 131while (pageNumber < _breakRecords.Count) 158if (_breakRecords.Count > 0) 161InvalidateBreakRecords(0, _breakRecords.Count); 182if (_breakRecords.Count > 0) 190pageCount = _breakRecords.Count - pageStart; 212if (_breakRecords.Count > 0) 215DisposePages(0, _breakRecords.Count); 219_owner.OnPagesChanged(0, _breakRecords.Count); 232if (_breakRecords.Count > 0) 260Invariant.Assert(pageNumber >= 0 && pageNumber <= _breakRecords.Count, "The previous BreakRecord does not exist."); 277if (pageNumber == _breakRecords.Count) 324if (pageNumber > _breakRecords.Count) 345get { return _breakRecords.Count; } 355if (_breakRecords.Count == 0) 357Invariant.Assert(_breakRecords[_breakRecords.Count - 1] != null, "Invalid BreakRecordTable entry."); 358return (_breakRecords[_breakRecords.Count - 1].BreakRecord == null); 382Invariant.Assert(start >= 0 && start < _breakRecords.Count, "Invalid starting index for BreakRecordTable invalidation."); 383Invariant.Assert(start + count <= _breakRecords.Count, "Partial invalidation of BreakRecordTable is not allowed."); 408Invariant.Assert(start >= 0 && start < _breakRecords.Count, "Invalid starting index for BreakRecordTable invalidation."); 409Invariant.Assert(start + count == _breakRecords.Count, "Partial invalidation of BreakRecordTable is not allowed."); 445while (pageStart < _breakRecords.Count) 483pageCount = _breakRecords.Count - pageStart;
src\Framework\MS\Internal\PtsHost\FigureParaClient.cs (3)
260for(int index = 0; index < _pageContextOfThisPage.FloatingElementList.Count && ie == null; index++) 370if (trackRectangles.Count != 0) 864for (int i = 0; i < floatingElementList.Count; i++)
src\Framework\MS\Internal\PtsHost\FloaterParaClient.cs (3)
262for(int index = 0; index < _pageContextOfThisPage.FloatingElementList.Count && ie == null; index++) 372if (trackRectangles.Count != 0) 870for (int i = 0; i < floatingElementList.Count; i++)
src\Framework\MS\Internal\PtsHost\FlowDocumentPage.cs (4)
343if(this.PageVisual != null && rectangles.Count > 0) 345List<Rect> transformedRectangles = new List<Rect>(rectangles.Count); 349for(int index = 0; index < rectangles.Count; index++) 394for (int i = 0; i < floatingElementList.Count; i++)
src\Framework\MS\Internal\PtsHost\Line.cs (1)
335if (inlineObjects.Count == 0)
src\Framework\MS\Internal\PtsHost\PtsCache.cs (11)
214for (index = 0; index < _contextPool.Count; index++) 224if (index == _contextPool.Count) 289for (index = 0; index < _contextPool.Count; index++) 296Invariant.Assert(index < _contextPool.Count, "Cannot find matching PtsHost in the Context pool."); 316for (index = 0; index < _contextPool.Count; index++) 323Invariant.Assert(index < _contextPool.Count, "Cannot find matching PtsHost in the context pool."); 365while (index < _contextPool.Count) 440for (index = 0; index < _contextPool.Count; index++) 449Invariant.Assert(index < _contextPool.Count, "PtsContext not found in the context pool."); 460if (cleanContextPool && _contextPool.Count > 4) 464while (index < _contextPool.Count)
src\Framework\MS\Internal\PtsHost\PtsHelper.cs (8)
83if(floatingElementList == null || floatingElementList.Count == 0) 89for(int index = 0; index < floatingElementList.Count; index++) 107if(visualChildren.Count > floatingElementList.Count) 109visualChildren.RemoveRange(floatingElementList.Count, visualChildren.Count - floatingElementList.Count); 544if (rectangles.Count != 0) 560List<Rect> offsetRectangles = new List<Rect>(rectangleList.Count); 562for(int index = 0; index < rectangleList.Count; index++)
src\Framework\MS\Internal\PtsHost\PtsHost.cs (4)
2063for(int objectIndex = 0; objectIndex < attachedObjects.Count; objectIndex++) 2082cObjects = attachedObjects.Count; 2186for(int objectIndex = 0; objectIndex < attachedObjects.Count; objectIndex++) 2205cObjects = attachedObjects.Count;
src\Framework\MS\Internal\PtsHost\PtsPage.cs (4)
1312for(int index = 0; index < _pageContextOfThisPage.FloatingElementList.Count && ie == null; index++) 1422if (rectangles.Count != 0) 1556if (trackRectangles.Count != 0) 1716if(_floatingElementList.Count == 0)
src\Framework\MS\Internal\PtsHost\SubpageParaClient.cs (3)
188for(int index = 0; index < _pageContextOfThisPage.FloatingElementList.Count && ie == null; index++) 297if (trackRectangles.Count != 0) 776for (int i = 0; i < floatingElementList.Count; i++)
src\Framework\MS\Internal\PtsHost\TableParaClient.cs (2)
518if (rectangles.Count != 0) 524if (rectangles.Count != 0)
src\Framework\MS\Internal\PtsHost\TextParaClient.cs (20)
326if (rectangles.Count != 0) 335if (rectangles.Count == 0 && textDetails.u.full.cLines > 0) 349if(rectangles.Count > 0 && ThisFlowDirection != PageFlowDirection) 353for(int index = 0; index < rectangles.Count; index++) 478return (floaters != null && floaters.Count > 0) ? new ReadOnlyCollection<ParagraphResult>(floaters) : null; 522return (figures != null && figures.Count > 0) ? new ReadOnlyCollection<ParagraphResult>(figures) : null; 1449for (int i = 0; i < inlineObjects.Count; i++) 1483for (int i = 0; i < inlineObjects.Count; i++) 1745if (lines.Count != 0) 1748TextParaLineResult lastLineResult = (TextParaLineResult)lines[lines.Count - 1]; 1756return (lines.Count > 0) ? new ReadOnlyCollection<LineResult>(lines) : null; 1814if (lines.Count != 0) 1817TextParaLineResult lastLineResult = (TextParaLineResult)lines[lines.Count - 1]; 1825return (lines.Count > 0) ? new ReadOnlyCollection<LineResult>(lines) : null; 2339for (int i = 0, count = rectangles.Count; i < count; ++i) 2449for (int i = 0, count = rectangles.Count; i < count; ++i) 4180if (lineRectangles.Count != 0) 4238Invariant.Assert(rectangles.Count > 0); 4370if (lineRectangles.Count != 0) 4451Invariant.Assert(elementRectangles.Count > 0);
src\Framework\MS\Internal\PtsHost\TextParagraph.cs (25)
956if(textElements.Count == 0) 961return textElements.Count; 973for(int index = 0; index < textElements.Count; index++) 1026if(attachedObjects.Count != 0) 1095objects = new List<InlineObject>(_inlineObjects.Count); 1096for (int i = 0; i < _inlineObjects.Count; i++) 1111if(objects == null || objects.Count == 0) 1180for (int index=0; index < _attachedObjects.Count; index++) 1216if(_attachedObjects != null && _attachedObjects.Count > 0) 1247for (int index=0; index < _attachedObjects.Count; index++) 1271for (int index=0; index < _attachedObjects.Count; index++) 1392if(HasFiguresOrFloaters() || (_inlineObjects != null && _inlineObjects.Count > 0)) 1405return _attachedObjects != null && _attachedObjects.Count > 0; 1417for(int index = 0; _attachedObjects != null && index < _attachedObjects.Count; index++) 1561ErrorHandler.Assert(objectsNew == null || (objectsNew[0].Dcp >= dcpStart && objectsNew[objectsNew.Count-1].Dcp <= dcpLim), ErrorHandler.SubmitInvalidList); 1571objectsCached = new List<T>(objectsNew.Count); 1575int end = objectsCached.Count; 1610while (idx < objectsNew.Count) 1635if (idx >= objectsNew.Count) 1643if (idxNew < objectsNew.Count) 1646objectsCached.InsertRange(end, objectsNew.GetRange(idxNew, objectsNew.Count - idxNew)); 1681while (first < objectsCached.Count && objectsCached[first].Dcp < dcpStart) 1686while (last < objectsCached.Count && objectsCached[last].Dcp < dcpStart + cchDeleted) 1702while (last < objectsCached.Count) 1708if (objectsCached.Count == 0)
src\Framework\System\Windows\Annotations\AnnotationService.cs (8)
850if (annotations.Count > _maxAnnotationsBatch) 853List<IAttachedAnnotation> leftover = new List<IAttachedAnnotation>(annotations.Count); 854leftover = annotations.GetRange(_maxAnnotationsBatch, annotations.Count - _maxAnnotationsBatch); 859annotations.RemoveRange(_maxAnnotationsBatch, annotations.Count - _maxAnnotationsBatch); 1021for (int i = existingAnnotations.Count - 1; i >= 0; i--) 1039if ((existingAnnotations != null) && (existingAnnotations.Count > 0)) 1341if (_annotationMap.GetAttachedAnnotations(annotation.Id).Count > 0) 1572if (list.Count == 0)
src\Framework\System\Windows\Automation\Peers\CalendarAutomationPeer.cs (2)
495if (providers.Count > 0) 651if (providers.Count > 0)
src\Framework\System\Windows\Automation\Peers\DataGridAutomationPeer.cs (2)
259if (providers.Count > 0) 289if (providers.Count > 0)
src\Framework\System\Windows\Automation\Peers\DataGridItemAutomationPeer.cs (1)
398if (selectedProviders.Count > 0)
src\Framework\System\Windows\Automation\Peers\FlowDocumentPageViewerAutomationPeer.cs (4)
45if (Owner is IFlowDocumentViewer && children != null && children.Count > 0) 47if (children[children.Count-1] is DocumentAutomationPeer) 49children.RemoveAt(children.Count - 1); 50if (children.Count == 0)
src\Framework\System\Windows\Automation\Peers\GridViewAutomationPeer.cs (3)
141List<IRawElementProviderSimple> array = new List<IRawElementProviderSimple>(_owner.HeaderRowPresenter.ActualColumnHeaders.Count); 183return _owner.HeaderRowPresenter.ActualColumnHeaders.Count; 253if (columns.Count > column)
src\Framework\System\Windows\Automation\Peers\GridViewCellAutomationPeer.cs (2)
84return children != null && children.Count >= 1; 114if (gridview.HeaderRowPresenter != null && gridview.HeaderRowPresenter.ActualColumnHeaders.Count > Column)
src\Framework\System\Windows\Automation\Peers\GridViewHeaderRowPresenterAutomationPeer.cs (1)
55newList = new List<AutomationPeer>(list.Count);
src\Framework\System\Windows\Automation\Peers\GridViewItemAutomationPeer.cs (1)
58_dataChildren = new Hashtable(rowPresenter.ActualCells.Count);
src\Framework\System\Windows\Automation\Peers\GroupItemAutomationPeer.cs (2)
169if (itemsControlAP.RecentlyRealizedPeers.Count > 0 && this.AncestorsInvalid) 293for (int i=0; i<recentlyRealizedPeers.Count; i++)
src\Framework\System\Windows\Automation\Peers\ItemsControlAutomationPeer.cs (4)
103if (_recentlyRealizedPeers != null && _recentlyRealizedPeers.Count > 0 && this.AncestorsInvalid) 617for (int i = 0; i < _list.Count; i++) 678for (i = 0; i < _list.Count; i++) 684if(i < _list.Count)
src\Framework\System\Windows\BroadcastEventHelper.cs (1)
268for (int i=0; i< eventRoute.Count; i++)
src\Framework\System\Windows\Controls\AlternationConverter.cs (3)
41if (_values.Count > 0 && o is int) 43int index = ((int)o) % _values.Count; 45index += _values.Count;
src\Framework\System\Windows\Controls\CustomDictionarySources.cs (1)
200return _uriList.Count;
src\Framework\System\Windows\Controls\DataGrid.cs (11)
436if (displayIndex >= 0 && displayIndex < DisplayIndexMap.Count) 2197for (int i = 0, count = columnIndexRanges.Count; i < count; i += 2) 2253for (int i = 0, count = columnIndexRanges.Count; i < count; i += 2) 3721for (int i = 0, count = columnIndexRanges.Count; i < count; i += 2) 4546int count = e.RemovedInfos.Count; 4554count = e.AddedInfos.Count; 7298for (int i = 0, count = GroupingSortDescriptionIndices.Count; i < count; i++) 7309for (int i = 0, count = GroupingSortDescriptionIndices.Count; i < count; i++) 7351for (int i = 0, count = GroupingSortDescriptionIndices.Count; i < count; i++) 7784if (_pendingInfos != null && _pendingInfos.Count > 0 && (columnCount = _columns.Count) > 0) 7788for (int i=_pendingInfos.Count - 1; i>=0; --i)
src\Framework\System\Windows\Controls\DataGridCellsPanel.cs (27)
180if (blockList.Count > 0) 182for (int i = 0, count = blockList.Count; i < count; i++) 202measureWidth += GetColumnEstimatedMeasureWidthSum(blockList[blockList.Count - 1].EndIndex + 1, parentDataGrid.Columns.Count - 1, averageColumnWidth); 475if (indexList.Count == 1) 479else if (indexList.Count > 0) 482for (int i = 1, count = indexList.Count; i < count; i++) 486if (resultList.Count == 0) 492RealizedColumnsBlock lastRealizedColumnsBlock = resultList[resultList.Count - 1]; 502if (resultList.Count == 0) 508RealizedColumnsBlock lastRealizedColumnsBlock = resultList[resultList.Count - 1]; 770if (realizedChildIndex < _realizedChildren.Count) 804if (blockIndex == blockList.Count - 1) 1010for (int count = realizedColumnDisplayIndices.Count; displayIndexListIterator < count; displayIndexListIterator++) 1049int blockCount = blockList.Count; 1177UIElement realizedChild = _realizedChildren.Count > 0 ? _realizedChildren[0] : null; 1198if (realizedIndex < _realizedChildren.Count) 1346blockList != null && blockList.Count > 0, 1349RealizedColumnsBlock lastBlock = blockList[blockList.Count - 1]; 1350RealizedColumnsBlock lastDisplayIndexBlock = displayIndexBlockList[displayIndexBlockList.Count - 1]; 1381if (displayIndexBlockList != null && displayIndexBlockList.Count > 0) 1409for (int j = 0, additionalChildrenCount = additionalChildIndices.Count; 1436for (int i = 0, count = additionalChildIndices.Count; i < count; i++) 1555for (int i = 0, count = blockList.Count; i < count; i++) 1575RealizedColumnsBlock lastBlock = blockList[blockList.Count - 1]; 1585if (blockList.Count == 0) 1612if (blockIndex >= blockList.Count) 1658for (int j=0; j<blockList.Count; ++j)
src\Framework\System\Windows\Controls\DataGridColumnCollection.cs (15)
233Debug.Assert(displayIndex >= 0 && displayIndex < DisplayIndexMap.Count, "displayIndex should have already been validated"); 437for (int i = 0; i < DisplayIndexMap.Count; i++) 476Debug.Assert(DisplayIndexMap.Count == 0, "DisplayIndexMap should be empty until first measure call."); 568Debug.Assert(DisplayIndexMap.Count > Count, "Columns were just removed: the display index map shouldn't have yet been updated"); 576for (int i = 0; i < DisplayIndexMap.Count; i++) 676for (int i = 0; i < DisplayIndexMap.Count; i++) 697for (int i = 0; i < DisplayIndexMap.Count; i++) 732Debug.Assert(Count == DisplayIndexMap.Count, "Display Index map is of the wrong size"); 733for (int i = 0; i < DisplayIndexMap.Count; i++) 937while (unResolvedColumns.Count > 0) 943for (int i = 0, count = unResolvedColumns.Count; i < count; i++) 966for (int i = 0, count = unResolvedColumns.Count; i < count; i++) 994for (int i = 0, count = partialResolvedColumns.Count; i < count; i++) 1007for (int i = 0, count = partialResolvedColumns.Count; i < count; i++) 1017for (int i = 0, count = unResolvedColumns.Count; i < count; i++)
src\Framework\System\Windows\Controls\DataGridRowClipboardEventArgs.cs (1)
72int count = ClipboardRowContent.Count;
src\Framework\System\Windows\Controls\DefinitionBase.cs (5)
779if (_registry.Count == 0) 795for (int i = 0, count = _registry.Count; i < count; ++i) 844for (int i = 0, count = _registry.Count; i < count; ++i) 880for (int i = 0, count = _registry.Count; i < count; ++i) 888for (int i = 0, count = _registry.Count; i < count; ++i)
src\Framework\System\Windows\Controls\GridViewColumnCollection.cs (5)
329for (int sourceIndex = index + 1; sourceIndex < _actualIndices.Count; sourceIndex++) 342_actualIndices.RemoveAt(_actualIndices.Count - 1); 348for (int i = iStart; i < _columns.Count; i++) 356int count = _columns.Count; 427if (index < 0 || index >= _actualIndices.Count)
src\Framework\System\Windows\Controls\GridViewHeaderRowPresenter.cs (4)
822if (DesiredWidthList == null || column.ActualIndex >= DesiredWidthList.Count) 1341for (int i = 0; i < HeadersPositionList.Count; i++) 1358if (i != HeadersPositionList.Count - 1) 1375Debug.Assert(index >= 0 && index < HeadersPositionList.Count, "wrong index");
src\Framework\System\Windows\Controls\GridViewRowPresenter.cs (1)
547if (DesiredWidthList == null || column.ActualIndex >= DesiredWidthList.Count)
src\Framework\System\Windows\Controls\InkCanvas.cs (1)
2204else if ( newStrokes.Count == 0 && newElements.Count == 0 )
src\Framework\System\Windows\Controls\ItemContainerGenerator.cs (1)
1062if (errors.Count > 0)
src\Framework\System\Windows\Controls\Primitives\GridViewRowPresenterBase.cs (2)
165if (DesiredWidthList.Count > e.ActualIndex) 198int c = count - DesiredWidthList.Count;
src\Framework\System\Windows\Controls\Primitives\Popup.cs (1)
227if (registeredPopups.Count == 0)
src\Framework\System\Windows\Controls\Primitives\Selector.cs (7)
2035knownCount = knownIndices.Count; 2362if (unselected.Count > 0 || selected.Count > 0) 2850return _list.Count; 2873int j=0, n=_list.Count; 2917_set = new Dictionary<ItemInfo, ItemInfo>(_list.Count); 2918for (int i=0; i<_list.Count; ++i)
src\Framework\System\Windows\Controls\Primitives\ToolBarOverflowPanel.cs (1)
81int generatedItemsCount = (generatedItemsCollection != null) ? generatedItemsCollection.Count : 0;
src\Framework\System\Windows\Controls\Primitives\ToolBarPanel.cs (1)
68for (int i = 0; i < _generatedItemsCollection.Count; i++)
src\Framework\System\Windows\Controls\SelectionChangedEventArgs.cs (4)
55_removedItems = new object[unselectedInfos.Count]; 56for (int i=0; i<unselectedInfos.Count; ++i) 61_addedItems = new object[selectedInfos.Count]; 62for (int i=0; i<selectedInfos.Count; ++i)
src\Framework\System\Windows\Controls\TextAdaptor.cs (3)
530if (visibleTextSegments.Count > 0) 532ranges = new ITextRangeProvider[visibleTextSegments.Count]; 533for (int i = 0; i < visibleTextSegments.Count; i++)
src\Framework\System\Windows\Controls\TextBlock.cs (4)
1324int subsequentLinesInitialSize = (_subsequentLines == null) ? 1 : _subsequentLines.Count; 1927Debug.Assert(lineBounds.Count > 0); 3517return (_subsequentLines == null) ? 1 : _subsequentLines.Count + 1; 3749int subsequentLineCount = _subsequentLines.Count;
src\Framework\System\Windows\Controls\TextRangeAdaptor.cs (3)
2119if (peers.Count > 0) 2121elements = new IRawElementProviderSimple[peers.Count]; 2122for (int i = 0; i < peers.Count; i++)
src\Framework\System\Windows\Controls\TextSearch.cs (5)
229if (_charsEntered.Count > 0 230&& (String.Compare(_charsEntered[_charsEntered.Count - 1], nextChar, true, GetCulture(_attachedTo))==0)) 293if (_charsEntered.Count > 0) 295string lastChar = _charsEntered[_charsEntered.Count - 1]; 298_charsEntered.RemoveAt(_charsEntered.Count - 1);
src\Framework\System\Windows\Controls\ToolBarTray.cs (20)
370for (bandIndex = 0; bandIndex < _bands.Count; bandIndex++) 378for (toolBarIndex = 0; toolBarIndex < band.Count; toolBarIndex++) 390for (toolBarIndex = 0; toolBarIndex < band.Count; toolBarIndex++) 438for (bandIndex = 0; bandIndex < _bands.Count; bandIndex++) 449for (toolBarIndex = 0; toolBarIndex < band.Count; toolBarIndex++) 587if (toolBarIndex + 1 == band.Count) // If toolBar was the last item in the band 622if (toolBarIndex < band.Count - 1) // Swap toolbars 634if (toolBarIndex + 2 == band.Count) // If toolBar becomes the last item in the band 658if (hittestBand >= 0 && hittestBand < _bands.Count) 665for (int i = 0; i < oldBand.Count; i++) 801for (i = 0; i < newBand.Count; i++) 838for (int i = 0; i < _bands.Count; i++) 845return _bands.Count; 866for (int bandIndex = 0; bandIndex < _bands.Count; bandIndex++) 869for (int toolBarIndex = 0; toolBarIndex < band.Count; toolBarIndex++) 888for (int bandIndex = 0; bandIndex < _bands.Count; bandIndex++) 891for (int toolBarIndex = 0; toolBarIndex < band.Count; toolBarIndex++) 897totalNumber += band.Count; 907for (int i = 0; i < _bands.Count; i++) 945for (int i = 0; i < band.Count; i++)
src\Framework\System\Windows\Controls\VirtualizedCellInfoCollection.cs (34)
161int numRegions = _regions.Count; 188int numRegions = _regions.Count; 208int numRegions = _regions.Count; 247int numRegions = _regions.Count; 316int numRegions = _regions.Count; 409int numRegions = _regions.Count; 779int numRegions = _regions.Count; 801int numRegions = _regions.Count; 844int numRegions = _regions.Count; 848for (int c = 0; c < addList.Count; c++) 864if (addList.Count > 0) 872for (int c = 0; c < addList.Count; c++) 885int numToAdd = addList.Count; 904if ((removeList != null) && (removeList.Count > 0)) 916for (int i = 0; i < _regions.Count; i++) 939i += remainder.Count; // Skip the remainder 998int numKeptRegions = keepRegions.Count; 1030int numKeptRegions = keepRegions.Count; 1086int numKeptRegions = slideRegions.Count; 1102int numMovedRegions = movedRegions.Count; 1114int numKeptRegions = slideRegions.Count; 1171int numKeptRegions = keepRegions.Count; 1218int numKeptRegions = keepRegions.Count; 1277int numKeptRegions = slideRegions.Count; 1292int numMovedRegions = movedRegions.Count; 1304int numKeptRegions = slideRegions.Count; 1359int numRegions = collection._regions.Count; 1378int numRegions = c1._regions.Count; 1386numRegions = orig2._regions.Count; 1406if (_regions.Count == 1) 1428if (removeList.Count > 0) 1514int numRegions = _regions.Count; 1540int numRegions = _regions.Count; 1590int numRegions = regions.Count;
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (25)
4452for (int i=0, n=offsetList.Count; i<n; ++i) 4463object[] args = new object[offsetList.Count + 4]; 4468for (int i=0; i<offsetList.Count; ++i) 4481viewport.X = offsetList[offsetList.Count-1]; 4485viewport.Y = offsetList[offsetList.Count-1]; 4494if (index < 0 || offsetList.Count <= 1) 5581int count = childOffsetList.Count; 5604object[] args = new object[offsetList.Count]; 5605for (int i=0; i<offsetList.Count; ++i) 9092Debug.Assert(_realizedChildren.Count == children.Count, "Realized and visual children must match"); 9114if (realizedChildIndex < _realizedChildren.Count) 9143UIElement realizedChild = _realizedChildren.Count > 0 ? _realizedChildren[0] : null; 9154if (realizedIndex < _realizedChildren.Count) 10816for (int i=0; i<previouslyMeasuredOffsets.Count; i++) 11959for (int i=0, n=s_TargetToTraceListMap.Count; i<n; ++i) 11972for (int i=0, n=s_TargetToTraceListMap.Count; i<n; ++i) 12352for (int i=0, n=s_TargetToTraceListMap.Count; i<n; ++i) 12413for (int i=0, n=s_TargetToTraceListMap.Count; i<n; ++i) 12425for (int i=0; i<s_TargetToTraceListMap.Count; ++i) 12465for (; _flushIndex < _traceList.Count; ++_flushIndex) 12478_flushIndex = _traceList.Count; 12679int n = children.Count; 12758writer.Write(_realizedChildren.Count); 12759for (int i=0; i<_realizedChildren.Count; ++i) 12770writer.Write(_effectiveOffsets.Count);
src\Framework\System\Windows\Data\BindingExpression.cs (1)
2387if (result != null && result.Count == 0)
src\Framework\System\Windows\Data\BindingExpressionBase.cs (7)
2303if (toAdd != null && toAdd.Count > 0) 2322if (toRemove != null && toRemove.Count > 0) 2331if (notifyDataErrors.Count == 0) 2340if (previousErrors == null || previousErrors.Count == 0) 2345else if (errors == null || errors.Count == 0) 2355for (int i=errors.Count-1; i>=0; --i) 2360for (j=toRemove.Count-1; j>=0; --j)
src\Framework\System\Windows\Data\BindingGroup.cs (3)
1118if (toAdd != null && toAdd.Count > 0) 1133if (toRemove != null && toRemove.Count > 0) 1141if (itemErrors.Count == 0)
src\Framework\System\Windows\Data\ListCollectionView.cs (1)
3131double dirtyDensity = ((double)list.SortDirtyItems.Count) / (list.Count + 1);
src\Framework\System\windows\Documents\CaretElement.cs (1)
470for (int i = 0; i < textSegments.Count; i++)
src\Framework\System\Windows\Documents\DocumentSequenceTextContainer.cs (3)
758if (lastBlock != null && cdbScan != lastBlock && !(lastBlock.ChildContainer is NullTextContainer) && rangeArray.Count != 0) 776if (!(cdbScan.ChildContainer is NullTextContainer) && rangeArray.Count != 0) 803if (rangeArray.Count > 0 && (!(cdbScan == null || cdbScan.ChildContainer is NullTextContainer)))
src\Framework\System\Windows\Documents\FixedDSBuilder.cs (2)
80_visitedArray = new BitArray(fixedNodes.Count); 214for (int i = startIndex+1; i < _fixedNodes.Count; i++)
src\Framework\System\Windows\Documents\FixedFlowMap.cs (4)
144Debug.Assert(fp >= 0 && fp < _flowOrder.Count); 182for (int i = index; i < _flowOrder.Count; i++) 324return _flowOrder.Count; 377for (int i = newFlow.Fp + 1, n = _flowOrder.Count; i < n; i++)
src\Framework\System\Windows\Documents\FixedSOMContainer.cs (5)
124if (This.FixedNodes.Count == 0 || compared.FixedNodes.Count == 0) 131FixedNode thisObjLastNode = This.FixedNodes[This.FixedNodes.Count - 1]; 134FixedNode otherObjLastNode = compared.FixedNodes[compared.FixedNodes.Count - 1]; 160int i=_semanticBoxes.Count-1;
src\Framework\System\Windows\Documents\FixedSOMFixedBlock.cs (6)
48if (this.SemanticBoxes.Count > 1) 50FixedSOMTextRun run = this.SemanticBoxes[this.SemanticBoxes.Count - 2] as FixedSOMTextRun; 76return (_semanticBoxes.Count == 1 && (_semanticBoxes[0] is FixedSOMImage)); 92if (_semanticBoxes.Count == 0) 136for (int i=_semanticBoxes.Count - 1; i>=0 && run==null; i--) 248if (_semanticBoxes.Count == 1)
src\Framework\System\Windows\Documents\FixedSOMLineCollection.cs (3)
91for (int i=0; i < ranges.Count; i++) 122int endIndex = lines.Count; 154while (i<lines.Count && lines[i].Line <= parallelHighEnd)
src\Framework\System\Windows\Documents\FixedSOMLineRanges.cs (3)
28for (int i = 0; i < Start.Count; ) 63int endIndex = Start.Count - 1; 120get { return Start.Count; }
src\Framework\System\Windows\Documents\FixedSOMPageConstructor.cs (24)
587Debug.Assert (fixedBlock.SemanticBoxes.Count > 0); 588if (fixedBlock.SemanticBoxes.Count == 0) 603FixedSOMTextRun lastLine = fixedBlock.SemanticBoxes[fixedBlock.SemanticBoxes.Count - 1] as FixedSOMTextRun; 623compareLine = fixedBlock.SemanticBoxes[fixedBlock.SemanticBoxes.Count-1] as FixedSOMTextRun; 694FixedSOMElement element = fixedBlock.SemanticBoxes[fixedBlock.SemanticBoxes.Count - 1] as FixedSOMElement; 767if (horizontal.Count < 2 || vertical.Count < 2) 774for (int h = 0; h < horizontal.Count; h++) 792while (v < vertical.Count && vertical[v].Line < hStart) 796for (; v < vertical.Count && vertical[v].Line < hEnd; v++) 833for (h2 = h + 1; h2 < horizontal.Count && horizontal[h2].Line < vBottom + minLineSeparation; h2++) 871if (_fixedSOMPage.SemanticBoxes.Count < 2) 880prevBoxCount = _fixedSOMPage.SemanticBoxes.Count; 883for (int i = 0; i < boxes.Count; i++) 889for (int j = i + 1; j < boxes.Count; j++) 908for (int j = i + 1; j < boxes.Count; j++) 922} while (_fixedSOMPage.SemanticBoxes.Count > 1 && _fixedSOMPage.SemanticBoxes.Count != prevBoxCount); 1058for (int i=0; i<tables.Count-1; i++) 1060for (int j=i+1; j<tables.Count; j++) 1088for (int i = 0; i < _fixedSOMPage.SemanticBoxes.Count;) 1113for (int i=0; i<cell.SemanticBoxes.Count;) 1140if (container.SemanticBoxes.Count > 0) 1153for (int i=1; i<container.SemanticBoxes.Count; i++)
src\Framework\System\Windows\Documents\FixedSOMTable.cs (8)
72int colCount = row.SemanticBoxes.Count; 172if (this.SemanticBoxes.Count == 1) 176return (row.SemanticBoxes.Count == 1); 188for (int i=0; i<this.SemanticBoxes.Count;) 208int nRows = this.SemanticBoxes.Count; 222deleteCol = deleteCol && idx < row.SemanticBoxes.Count; 231if (idx + 1 < row.SemanticBoxes.Count) 279if (idx + 1 < row.SemanticBoxes.Count && row.SemanticBoxes[idx + 1].BoundingRect.Left == nextCol)
src\Framework\System\Windows\Documents\FixedTextBuilder.cs (15)
181FixedPageStructure pageStructure = new FixedPageStructure(_pageStructures.Count); 981fixedNodes.Count); 1314if (relUri == null && _hyperlinks.Count > 0) 1355for (int i=0; i<_hyperlinks.Count; i++) 1379for (int i = 0; i < _hyperlinks.Count; i++) 1515FixedSOMTextRun lastRun = _textRuns[_textRuns.Count - 1]; 1540if (_fixedNodes.Count == 0 || _fixedNodes[_fixedNodes.Count - 1] != element.FixedNode) 1590_pageStructure.SetFlowBoundary(_flowNodes[0], _flowNodes[_flowNodes.Count-1]); 1671if (_textRuns.Count > 0) 1675for (int i=0; i<_textRuns.Count; i++) 1689run.LineIndex = _lineResults.Count; 1690if (_nodesInLine.Count == 0 || _nodesInLine[_nodesInLine.Count - 1] != run.FixedNode) 1791if (_nodesInLine.Count > 0)
src\Framework\System\Windows\Documents\Glyphs.cs (1)
358Debug.Assert(parsedGlyphs.Count == glyphCount);
src\Framework\System\Windows\Documents\Highlights.cs (1)
376if (ranges.Count > 0)
src\Framework\System\windows\Documents\TextEditorDragDrop.cs (1)
640for (int i = 0; i < selection.TextSegments.Count; i++)
src\Framework\System\Windows\Documents\TextRange.cs (2)
375Invariant.Assert(_textSegments.Count > 0, "_textSegments.Count must be > 0"); 1627for (int i = 0; i < _textSegments.Count; i++)
src\Framework\System\Windows\Documents\TextRangeBase.cs (11)
90for (int i = 0; i < thisRange._TextSegments.Count; i++) 409for (int i = 0; i < thisRange._TextSegments.Count; i++) 478for (int i = 0; i < thisRange._TextSegments.Count; i++) 1205Invariant.Assert(thisRange._TextSegments != null && thisRange._TextSegments.Count > 0, "expecting nonempty _TextSegments array for Start position"); 1213Invariant.Assert(thisRange._TextSegments != null && thisRange._TextSegments.Count > 0, "expecting nonempty _TextSegments array for End position"); 1214return thisRange._TextSegments[thisRange._TextSegments.Count - 1].End; 1224(thisRange._TextSegments.Count == 1 && 1230return (thisRange._TextSegments.Count == 1 && 1280for (int i = 0; i < thisRange._TextSegments.Count; i++) 1951ITextPointer end = thisRange._TextSegments[thisRange._TextSegments.Count - 1].End; 2071ITextPointer finalEnd = thisRange._TextSegments[thisRange._TextSegments.Count - 1].End;
src\Framework\System\Windows\Documents\TextRangeEditTables.cs (3)
410for (int i = 0; i < textSegments.Count; i++ ) 427end = textSegments[textSegments.Count - 1].End; 986for (int i = 0; i < textSegments.Count; i++)
src\Framework\System\Windows\Documents\TextRangeSerialization.cs (2)
287if (ignoreList.Count > 0) 358for (int i = 0; i < textSegments.Count; i++)
src\Framework\System\windows\Documents\TextSelection.cs (3)
434movingPosition = thisSelection.TextSegments[thisSelection.TextSegments.Count - 1].Start; 1908else if (thisSelection.TextSegments.Count < 2) 1928else if (movingPosition.CompareTo(thisSelection.TextSegments[thisSelection.TextSegments.Count-1].Start) == 0)
src\Framework\System\windows\Documents\TextSelectionHighlightLayer.cs (4)
92segmentCount = textSegments.Count; 121segmentCount = textSegments.Count; 316Invariant.Assert(textRange._TextSegments.Count > 0); 317return textRange._TextSegments[0].Start.CompareTo(textRange._TextSegments[textRange._TextSegments.Count - 1].End) == 0;
src\Framework\System\Windows\Documents\TextStore.cs (4)
1241CompositionEventRecord previousRecord = (this.CompositionEventList.Count == 0) ? null : this.CompositionEventList[this.CompositionEventList.Count - 1]; 3443if (this.CompositionEventList.Count == 0 || 3543for (int i = 0; i < this.CompositionEventList.Count; i++)
src\Framework\System\Windows\Documents\WpfPayload.cs (3)
462for (int imageIndex = 0; imageIndex < _images.Count; imageIndex++) 540for (int i = 0; i < _images.Count; i++) 556imagePartUriString = GetImageName(_images.Count, imageContentType);
src\Framework\System\Windows\FrameworkContextData.cs (3)
59int last = _currentWalkers.Count - 1; 73if (_currentWalkers.Count > 0) 75int last = _currentWalkers.Count - 1;
src\Framework\System\Windows\Ink\Events.cs (1)
352if (results.Count == 0)
src\Framework\System\Windows\Input\KeyboardNavigation.cs (5)
3603public int Count { get { return _list.Count; } } 3611if (_list.Count == _list.Capacity) 3623for (int i=0; i<_list.Count; ++i) 3650for (int i=0; i<_list.Count; ++i) 3678int n = _list.Count;
src\Framework\System\Windows\Markup\Baml2006\Baml2006KeyRecord.cs (3)
61get { return (_resources != null && _resources.Count > 0); } 68Debug.Assert(StaticResources[StaticResources.Count - 1] is StaticResource); 69return StaticResources[StaticResources.Count - 1] as StaticResource;
src\Framework\System\Windows\Markup\Baml2006\Baml2006ReaderContext.cs (2)
54if (KeyList != null && KeyList.Count > 0) 56return KeyList[KeyList.Count - 1];
src\Framework\System\Windows\Markup\Baml2006\Baml2006SchemaContext.cs (12)
324if (stringId >= 0 && stringId < _bamlString.Count) 356if (assemblyId == _bamlAssembly.Count) 361else if (assemblyId > _bamlAssembly.Count) 383if (typeId == _bamlType.Count) 389else if (typeId > _bamlType.Count) 411if (propertyId == _bamlProperty.Count) 416else if (propertyId > _bamlProperty.Count) 433if (stringId == _bamlString.Count) 437else if (stringId > _bamlString.Count) 585if (assemblyId >= 0 && assemblyId < _bamlAssembly.Count) 609if (typeId >= 0 && typeId < _bamlType.Count) 638if (propertyId >= 0 && propertyId < _bamlProperty.Count)
src\Framework\System\Windows\Markup\BamlReader.cs (4)
503if (_currentStaticResourceRecordIndex == _currentStaticResourceRecords.Count) 1387BamlKeyInfo keyInfo = _deferKeys[_deferKeys.Count-1]; 2318if (_deferKeys.Count > 0) 2757for (int i=0; i<xmlnsList.Count; i++)
src\Framework\System\Windows\Markup\BamlRecordReader.cs (5)
1928object[] staticResourceValues = ParserContext.StaticResourcesStack[ParserContext.StaticResourcesStack.Count-1]; 2007object[] staticResourceValues = ParserContext.StaticResourcesStack[ParserContext.StaticResourcesStack.Count-1]; 4352if (_stackDataFactoryCache.Count == 0) 4359d = _stackDataFactoryCache[_stackDataFactoryCache.Count-1]; 4360_stackDataFactoryCache.RemoveAt(_stackDataFactoryCache.Count-1);
src\Framework\System\Windows\Markup\BamlRecordWriter.cs (6)
1190bamlPropertyWithStaticResourceId.StaticResourceId = (short)(keyDeferRecord.StaticResourceRecordList.Count-1); 1600if (staticResourceRecordList.Count > 0) 1603for (int j=0; j<staticResourceRecordList.Count; j++) 1607for (int k=0; k<srRecords.Count; k++) 1695valueDeferRecord = _staticResourceRecordList[_staticResourceRecordList.Count-1]; 1710bamlStaticResourceId.StaticResourceId = (short)(keyDeferRecord.StaticResourceRecordList.Count-1);
src\Framework\System\Windows\Markup\ParserContext.cs (1)
641get { return (_staticResourcesStack != null && _staticResourcesStack.Count > 0); }
src\Framework\System\Windows\Markup\Primitives\MarkupWriter.cs (3)
325result = _entries.Count; 365for (int i=0; i<_entries.Count; ++i) 371for (int i=0; i<_entries.Count; ++i)
src\Framework\System\Windows\Markup\XamlTypeMapper.cs (1)
3491for (int j = 0; j < namespaceAssemblyPair.Count; j++)
src\Framework\System\Windows\Media\Animation\Generated\ThicknessAnimationUsingKeyFrames.cs (1)
992for (int i = 0, currentKeyFrameIndex = firstPacedBlockKeyFrameIndex; i < segmentLengths.Count; i++, currentKeyFrameIndex++)
src\Framework\System\Windows\Media\Animation\Generated\ThicknessKeyFrameCollection.cs (9)
105int count = sourceCollection._keyFrames.Count; 126int count = sourceCollection._keyFrames.Count; 147int count = sourceCollection._keyFrames.Count; 168int count = sourceCollection._keyFrames.Count; 187for (int i = 0; i < _keyFrames.Count && canFreeze; i++) 222return _keyFrames.Count; 303return _keyFrames.Count - 1; 313if (_keyFrames.Count > 0) 315for (int i = 0; i < _keyFrames.Count; i++)
src\Framework\System\Windows\Navigation\Journal.cs (2)
123return _journalEntryList.Count; 355_journalEntryList.RemoveRange(_currentEntryIndex, _journalEntryList.Count - _currentEntryIndex);
src\Framework\System\Windows\ResourcesChangeInfo.cs (3)
199get { return _key != null || (_newDictionaries != null && _newDictionaries.Count > 0); } 236for (int i=0; i<_oldDictionaries.Count; i++) 247for (int i=0; i<_newDictionaries.Count; i++)
src\Framework\System\Windows\Shell\JumpList.cs (20)
419&& JumpItems.Count == 0 609successList = new List<JumpItem>(JumpItems.Count); 612rejectedList = new List<_RejectedJumpItemPair>(JumpItems.Count); 661if (list.Count > 0 && list[0].JumpItem.CustomCategory == jumpItem.CustomCategory) 704if (categoryList.Count > 0) 757if (rejectedList.Count > 0 && rejectedHandler != null) 759var items = new List<JumpItem>(rejectedList.Count); 760var reasons = new List<JumpItemRejectionReason>(rejectedList.Count); 771if (removedList.Count > 0 && removedHandler != null) 773var items = new List<JumpItem>(removedList.Count); 783if (items.Count > 0) 799if (removedList.Count == 0) 930Debug.Assert(jumpItems.Count != 0); 954for (int i = jumpItems.Count; --i >= 0;) 983if (linksOnlyList.Count > 0) 986Debug.Assert(jumpItems.Count != linksOnlyList.Count); 1252if (_jumpItems.Count > 0) 1254var reasons = new List<JumpItemRejectionReason>(_jumpItems.Count); 1255for (int i = 0; i < _jumpItems.Count; ++i)
src\Framework\System\Windows\StaticResourceExtension.cs (1)
257for(int i=0; i<ambientList.Count; i++)
src\Framework\System\Windows\StyleHelper.cs (14)
2157Debug.Assert(templatedChildren.Count > 0, 2229int[] childIndices = new int[templateChain.Count]; 2236for (int i=0; i< templateChain.Count; i++) 2267for (int i=0; i< templateChain.Count; i++) 2531for (int i = 0; i < actionsList.Count; i++) 3472if ((oldStyleTables != null && oldStyleTables.Count > 0) || 3473(newStyleTables != null && newStyleTables.Count > 0)) 3534if (dictionaries != null && dictionaries.Count > 0 && !fo.ShouldLookupImplicitStyles) 3536for (int i=0; i<dictionaries.Count; i++) 4358for( int i = 0; i < triggerList.Count; i++ ) 4402if ((styledChildren != null) && (childIndex <= styledChildren.Count)) 4809for (int i = 0; i < actionList.Count; i++) 5289for( int i = 0; i < triggerList.Count; i++ ) 5441if (styledChildren == null || childIndex > styledChildren.Count)
src\Framework\System\Windows\SystemResources.cs (1)
1301int count = keys.Count;
src\Framework\System\Windows\TemplateContent.cs (2)
273for (int i = 0; i < sharedProperties.Count; i++) 365for (int i = sharedProperties.Count - 1; i >= 0; i--)
src\Framework\System\Windows\TemplateNameScope.cs (1)
165Debug.Assert(_affectedChildren.Count == childIndex);
src\Framework\System\Windows\ThemeDictionaryExtension.cs (3)
136for (int i = 0; i < _themeDictionaryInfos.Count; i++) 208for (int i = 0; i < _themeDictionaryInfos.Count; i++) 242for (int i = 0; i < _themeDictionaryInfos.Count; i++)
src\Framework\System\Windows\TriggerActionCollection.cs (3)
54return _rawList.Count; 76for (int i = _rawList.Count - 1; i >= 0; i--) 268for( int i = 0; i < _rawList.Count; i++ )
PresentationFramework.Aero (1)
parent\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
332Debug.Assert(_freezableCache.Count == size, "The cache size does not match the requested amount.");
PresentationFramework.Classic (1)
parent\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
332Debug.Assert(_freezableCache.Count == size, "The cache size does not match the requested amount.");
PresentationFramework.Luna (1)
parent\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
332Debug.Assert(_freezableCache.Count == size, "The cache size does not match the requested amount.");
PresentationFramework.Royale (1)
parent\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
332Debug.Assert(_freezableCache.Count == size, "The cache size does not match the requested amount.");
SMDiagnostics (6)
System\ServiceModel\Diagnostics\TraceXPathNavigator.cs (6)
157if ((this.elementIndex + 1) < this.childNodes.Count) 168return null != this.attributes && this.attributes.Count > 0; 174if ((this.attributeIndex + 1) < this.attributes.Count) 452retval = this.CurrentElement.text != null || this.CurrentElement.childNodes.Count > 0; 535if (null != this.CurrentElement.childNodes && this.CurrentElement.childNodes.Count > 0) 541else if ((null == this.CurrentElement.childNodes || this.CurrentElement.childNodes.Count == 0) && this.CurrentElement.text != null)
SMSvcHost (9)
System\ServiceModel\Activation\AppPool.cs (1)
56Fx.Assert(apps.Count == 0, "");
System\ServiceModel\Activation\ListenerAdapter.cs (2)
142if (removeApps.Count != 0) 150if (delayRemoveApps.Count != 0)
System\ServiceModel\Activation\ListenerConfig.cs (2)
127if (NetTcp.AllowAccounts.Count == 0) 137if (NetPipe.AllowAccounts.Count == 0)
System\ServiceModel\Activation\ListenerConnectionDemuxer.cs (1)
61for (int i = 0; i < connectionReaders.Count; i++)
System\ServiceModel\Activation\MessageQueue.cs (3)
520while (paths.Count > 0) 562Debug.Print("MessageQueue.Unregister() left with workers: " + workers.Count); 563if (workers.Count == 0)
System (112)
compmod\system\collections\generic\sortedset.cs (9)
167for (int i = 1; i < els.Count; i++) { 173root = ConstructRootFromSortedArray(els.ToArray(), 0, els.Count - 1, null); 174count = els.Count; 273while (processQueue.Count != 0) { 1653for (int i = matches.Count - 1; i >= 0; i--) { 1825while (toRemove.Count != 0) { 1826underlying.Remove(toRemove[toRemove.Count - 1]); 1827toRemove.RemoveAt(toRemove.Count - 1); 1902while (processQueue.Count != 0) {
compmod\system\collections\objectmodel\observablecollection.cs (1)
61: base((list != null) ? new List<T>(list.Count) : list)
compmod\system\diagnostics\Switch.cs (5)
70List<WeakReference> buffer = new List<WeakReference>(switches.Count); 71for (int i = 0; i < switches.Count; i++) { 77if (buffer.Count < switches.Count) { 268for (int i=0; i<switches.Count; i++) {
compmod\system\diagnostics\TraceSource.cs (5)
54List<WeakReference> buffer = new List<WeakReference>(tracesources.Count); 55for (int i = 0; i < tracesources.Count; i++) { 61if (buffer.Count < tracesources.Count) { 161for (int i=0; i<tracesources.Count; i++) {
net\System\Net\_Connection.cs (21)
113return m_Context.Count != 0; 178GlobalLog.Print("ConnectionReturnResult#" + ValidationHelper.HashString(returnResult) + "::SetResponses() count=" + returnResult.m_Context.Count.ToString()); 179for (int i = 0; i < returnResult.m_Context.Count; i++) 196if (returnResult.m_Context.Count > 0) 545return (m_ReadDone?0:1) + 2 * (m_WaitList.Count + m_WriteList.Count) + m_ReservedCount; 592GlobalLog.Print("Connection#" + ValidationHelper.HashString(this) + "::SubmitRequest() Free:" + m_Free.ToString() + " m_WaitList.Count:" + m_WaitList.Count.ToString()); 839" WaitList:" + m_WaitList.Count + 1015if (m_WaitList.Count == 0) { 1036GlobalLog.Print("Connection#" + ValidationHelper.HashString(this) + "::CheckNextRequest() Removing request#" + ValidationHelper.HashString(nextRequest) + " from m_WaitList. New Count:" + (m_WaitList.Count - 1).ToString()); 1268GlobalLog.Print("Connection#" + ValidationHelper.HashString(this) + "::WriteStartNextRequest() Non-Error m_WriteList.Count:" + m_WriteList.Count + " m_WaitList.Count:" + m_WaitList.Count); 1311GlobalLog.Enter("Connection#" + ValidationHelper.HashString(this) + "::WriteStartNextRequest" + " WriteDone:" + m_WriteDone + " ReadDone:" + m_ReadDone + " WaitList:" + m_WaitList.Count + " WriteList:" + m_WriteList.Count); 1369GlobalLog.Enter("Connection#" + ValidationHelper.HashString(this) + "::ReadStartNextRequest" + " WriteDone:" + m_WriteDone + " ReadDone:" + m_ReadDone + " WaitList:" + m_WaitList.Count + " WriteList:" + m_WriteList.Count); 2770GlobalLog.Print("Connection#" + ValidationHelper.HashString(this) + "::ParseResponseData()" + " WriteDone:" + m_WriteDone + " ReadDone:" + m_ReadDone + " WaitList:" + m_WaitList.Count + " WriteList:" + m_WriteList.Count); 2823if (m_WaitList.Count > 0) 2934if (m_WriteList.Count != 0 || m_WaitList.Count != 0) 2939GlobalLog.Print("Connection#" + ValidationHelper.HashString(this) + "::PrepareCloseConnectionSocket() m_WaitList.Count:" + m_WaitList.Count); 2972if (m_WaitList.Count != 0) 2974requestArray = new HttpWebRequest[m_WaitList.Count]; 2975for (int i = 0; i < m_WaitList.Count; i++) 3183" m_WaitList.Count:" + m_WaitList.Count + 3896for (int i = 0; i < m_WaitList.Count; i++)
net\System\Net\_NTAuthentication.cs (1)
682if (list.Count > 0)
net\System\Net\_ProxyChain.cs (4)
108GlobalLog.Assert(m_Chain.m_Cache.Count > m_CurrentIndex, "ProxyEnumerator::Current|Not all proxies made it to the cache."); 129if (m_Chain.m_Cache.Count > m_CurrentIndex) 142if (m_Chain.m_Cache.Count > m_CurrentIndex) 175GlobalLog.Assert(m_Chain.m_Cache.Count > m_CurrentIndex, "ProxyEnumerator::MoveNext|Not all proxies made it to the cache.");
net\System\Net\_TimerThread.cs (1)
252for (int i = 0; i < garbage.Count; i++) {
net\System\Net\cookiecontainer.cs (1)
759for (int i = 0; i < domainAttribute.Count; i++) {
net\System\Net\HttpListenerRequestUriBuilder.cs (2)
205Debug.Assert(rawOctets.Count == 0, 344if (rawOctets.Count == 0)
net\System\Net\Sockets\_DynamicWinsockMethods.cs (1)
25for (int i = 0; i < s_MethodTable.Count; i++)
parent\parent\parent\InternalApis\NDP_Common\inc\PinnableBufferCache.cs (13)
175PinnableBufferCacheEventSource.Log.FreeBufferStillTooYoung(m_CacheName, m_NotGen2.Count); 209PinnableBufferCacheEventSource.Log.AllocateBufferFreeListEmpty(m_CacheName, m_NotGen2.Count); 212if (m_NotGen2.Count == 0) 217int idx = m_NotGen2.Count - 1; 226PinnableBufferCacheEventSource.Log.AllocateBufferFromNotGen2(m_CacheName, m_NotGen2.Count); 234if (m_NotGen2.Count == m_restockSize / 2) 255PinnableBufferCacheEventSource.Log.AllocateBufferAged(m_CacheName, m_NotGen2.Count); 256for (int i = 0; i < m_NotGen2.Count; i++) 270PinnableBufferCacheEventSource.Log.AgePendingBuffersResults(m_CacheName, promotedCount, notInGen2.Count); 372if (m_NotGen2.Count > 0) 379PinnableBufferCacheEventSource.Log.TrimFlush(m_CacheName, m_buffersUnderManagement, freeCount, m_NotGen2.Count); 385PinnableBufferCacheEventSource.Log.TrimFree(m_CacheName, m_buffersUnderManagement, freeCount, m_NotGen2.Count); 386m_buffersUnderManagement -= m_NotGen2.Count;
regex\system\text\regularexpressions\RegexCharClass.cs (10)
594if (_canonical && _rangelist.Count > 0 && 595first <= _rangelist[_rangelist.Count - 1]._last) { 639for (i = 0, origSize = _rangelist.Count; i < origSize; i++) { 1040return _rangelist.Count; 1055int rangeLen = _rangelist.Count * 2 ; 1068for (int i = 0; i < _rangelist.Count; i++) { 1108_rangelist.Sort(0, _rangelist.Count, new SingleRangeComparer()); 1114if (_rangelist.Count > 1) { 1119if (i == _rangelist.Count || last == Lastchar) { 1141_rangelist.RemoveRange(j, _rangelist.Count - j);
regex\system\text\regularexpressions\RegexCode.cs (2)
126_strings = new String[stringlist.Count]; 134stringlist.CopyTo(0, _strings, 0, stringlist.Count);
regex\system\text\regularexpressions\RegexFCD.cs (1)
305else if (curChild < curNode._children.Count && !_skipAllChildren) {
regex\system\text\regularexpressions\RegexNode.cs (6)
166_children.Reverse(0, _children.Count); 365for (i = 0, j = 0; i < _children.Count; i++, j++) { 373for (int k = 0; k < at._children.Count; k++) 466for (i = 0, j = 0; i < _children.Count; i++, j++) { 477for (int k = 0; k < at._children.Count; k++) 569return _children == null ? 0 : _children.Count;
regex\system\text\regularexpressions\RegexParser.cs (8)
220if (_optionsStack.Count > 0) 221_optionsStack.RemoveRange(0, _optionsStack.Count - 1); 1662for (int i = 0; i < _capnamelist.Count; i++) { 1714next = (k == oldcapnamelist.Count) ? -1 : (int)_capnames[oldcapnamelist[k]]; 2062_options = _optionsStack[_optionsStack.Count - 1]; 2063_optionsStack.RemoveAt(_optionsStack.Count - 1); 2070return(_optionsStack.Count == 0); 2077_optionsStack.RemoveAt(_optionsStack.Count - 1);
regex\system\text\regularexpressions\RegexReplacement.cs (7)
53rules.Add(strings.Count); 70rules.Add(strings.Count); 95for (int i = 0; i < _rules.Count; i++) { 125for (int i = _rules.Count - 1; i >= 0; i--) { 243for (int i = al.Count - 1; i >= 0; i--) { 327for (int i = al.Count - 1; i >= 0; i--) { 418al.Reverse(0, al.Count);
regex\system\text\regularexpressions\RegexWriter.cs (6)
176i = _stringtable.Count; 260else if (curChild < curNode._children.Count) { 326if (CurIndex < node._children.Count - 1) { 334if (CurIndex < node._children.Count - 1) { 369if (node._children.Count > 1) 405if (node._children.Count > 2)
security\system\security\cryptography\x509\x509utils.cs (2)
502int ptrSize = oidStrs.Count * Marshal.SizeOf(typeof(IntPtr)); 510for (int index = 0; index < oidStrs.Count; index++) {
sys\system\collections\concurrent\BlockingCollection.cs (6)
1036handles.RemoveAt(handles.Count - 1); //remove the linked token 1047Debug.Assert((index == WaitHandle.WaitTimeout) || (index >= 0 && index < handles.Count)); 1430if (handles.Count == 0 && isTakeOperation) //case#5 1433else if (handles.Count == 0) //case#4 1449Debug.Assert((index == WaitHandle.WaitTimeout) || (index >= 0 && index < handles.Count)); 1454if (collections.Length != handles.Count - 1) // -1 because of the combined token handle
System.Activities (84)
System\Activities\ActivityLocationReferenceEnvironment.cs (1)
86for (int i = 0; i < activityEnvironment.unnamedDeclarations.Count; i++)
System\Activities\Debugger\CharacterSpottingTextReader.cs (2)
144else if (locationList.Count > 0) 146return locationList[locationList.Count - 1];
System\Activities\Debugger\ListExtensions.cs (1)
13return new BinarySearchResult(input.BinarySearch(item), input.Count);
System\Activities\Debugger\StateManager.cs (7)
142for (int i = 1; i < this.threads.Count; ++i) 155threadId = this.threads.Count; 194Fx.Assert(threadIndex < this.threads.Count, "Index out of range for thread"); 202Fx.Assert(threadIndex < this.threads.Count, "Index out of range for thread"); 527if (this.indexLastBaked < this.states.Count) // there are newly created states. 539for (int i = indexLastBaked; i < this.states.Count; i++) 567this.indexLastBaked = this.states.Count;
System\Activities\DynamicUpdate\EnvironmentUpdateMap.cs (1)
266return result.Count > 0 ? result : null;
System\Activities\ExclusiveHandle.cs (5)
269int count = handles.Count; 286int count = executorHandles.Count; 317get { return this.bookmarks.Count; } 337for (int i = 0; i < this.bookmarks.Count; i++) 351for (int i = 0; i < this.bookmarks.Count; i++)
System\Activities\Hosting\WorkflowInstance.cs (1)
454for (int i = 0; i < this.extensions.WorkflowInstanceExtensions.Count; i++)
System\Activities\Hosting\WorkflowInstanceExtensionCollection.cs (10)
40extensionProviderCount = extensionManager.ExtensionProviders.Count; 99for (int i = 0; i < typesToRemove.Count; i++) 140for (int i = 0; i < extensionProviders.Count; i++) 205return this.workflowInstanceExtensions != null && this.workflowInstanceExtensions.Count > 0; 236for (int i = 0; i < this.instanceExtensions.Count; i++) 262for (int i = 0; i < extensionsList.Count; i++) 291for (int i = 0; i < this.allSingletonExtensions.Count; i++) 303for (int i = 0; i < this.instanceExtensions.Count; i++) 315for (int i = 0; i < this.additionalInstanceExtensions.Count; i++) 394for (int i = 0; i < this.instanceExtensions.Count; i++)
System\Activities\Hosting\WorkflowInstanceExtensionManager.cs (4)
153for (int i = 0; i < this.SingletonExtensions.Count; i++) 157for (int i = 0; i < this.ExtensionProviders.Count; i++) 251for (int i = 0; i < this.AdditionalSingletonExtensions.Count; i++) 264if (this.AdditionalSingletonExtensions != null && this.AdditionalSingletonExtensions.Count > 0)
System\Activities\HybridCollection.cs (3)
42Fx.Assert(index >= 0 && index < this.multipleItems.Count, "Out of range with multiple items."); 63return this.multipleItems.Count; 139if (this.multipleItems != null && this.multipleItems.Count == 1)
System\Activities\Runtime\ActivityExecutor.cs (10)
343if ((this.executingSecondaryRootInstances != null && this.executingSecondaryRootInstances.Count > 0) || 719if (this.executingSecondaryRootInstances != null && this.executingSecondaryRootInstances.Count > 0) 772if (this.executingSecondaryRootInstances != null && this.executingSecondaryRootInstances.Count > 0) 1424for (int i = this.executingSecondaryRootInstances.Count - 1; i >= 0; i--) 1432Fx.Assert(this.executingSecondaryRootInstances.Count == i, "We are always working from the back and we should have removed the item we just aborted."); 1804Fx.Assert(this.executingSecondaryRootInstances.Count > 0, "We don't serialize out an empty list."); 1806for (int i = 0; i < this.executingSecondaryRootInstances.Count; i++) 2302&& (this.executingSecondaryRootInstances == null || this.executingSecondaryRootInstances.Count == 0)) 2434if (this.executingSecondaryRootInstances == null || this.executingSecondaryRootInstances.Count == 0) 2609if (bookmarks == null || bookmarks.Count == 0)
System\Activities\Runtime\BookmarkManager.cs (1)
123for (int i = 0; i < handles.Count; i++)
System\Activities\Runtime\BookmarkScopeManager.cs (6)
47if (this.keysToAssociate != null && this.keysToAssociate.Count > 0) 52if (this.keysToDisassociate != null && this.keysToDisassociate.Count > 0) 98if (this.uninitializedScopes == null || this.uninitializedScopes.Count == 0) 190for (int i = 0; i < this.uninitializedScopes.Count; i++) 341if (this.keysToAssociate == null || this.keysToAssociate.Count == 0) 353if (this.keysToDisassociate == null || this.keysToDisassociate.Count == 0)
System\Activities\Runtime\ExecutionPropertyManager.cs (5)
311List<ExecutionProperty> updatedProperties = new List<ExecutionProperty>(this.threadProperties.Count); 316for (int i = 0; i < this.threadProperties.Count; i++) 343for (int i = this.threadProperties.Count - 1; i >= 0; i--) 431for (int i = 0; i < this.threadProperties.Count; i++) 447for (int i = this.threadProperties.Count - 1; i >= 0; i--)
System\Activities\Runtime\LocationEnvironment.cs (1)
229int count = this.handles.Count;
System\Activities\Runtime\MappableObjectManager.cs (6)
30result += this.mappableLocations.Count; 47if (this.mappableLocations != null && this.mappableLocations.Count > 0) 49result = new Dictionary<string, LocationInfo>(this.mappableLocations.Count); 50for (int locationIndex = 0; locationIndex < this.mappableLocations.Count; locationIndex++) 76int mappedLocationsCount = this.mappableLocations.Count; 85Fx.Assert(this.mappableLocations.Count == mappedLocationsCount - 1, "can only unregister locations that have been registered");
System\Activities\Statements\ExecutionTracker.cs (1)
25return this.executionOrderedList.Count;
System\Activities\Statements\Flowchart.cs (1)
270for (int i = 0; i < connected.Count; i++)
System\Activities\Statements\InternalState.cs (1)
543updateContext.SetValue<int>(this.currentRunningTriggers, updateContext.GetValue(this.currentRunningTriggers) + newTriggers.Count);
System\Activities\Statements\StateMachine.cs (1)
397unconditionalTransitions.Value.Count > 1)
System\Activities\Statements\TimerTable.cs (2)
290return this.list.Count; 329for (int i = 0; i < this.list.Count; i++)
System\Activities\Tracking\RuntimeTrackingProfile.cs (4)
368for (int i = 0; i < this.activityScheduledSubscriptions.Count; i++) 409for (int i = 0; i < this.faultPropagationSubscriptions.Count; i++) 450for (int i = 0; i < this.cancelRequestedSubscriptions.Count; i++) 491for (int i = 0; i < this.customTrackingQuerySubscriptions.Count; i++)
System\Activities\Tracking\TrackingProvider.cs (4)
156for (int i = 0; i < this.trackingParticipants.Count; i++) 170bool shouldClone = this.trackingParticipants.Count > 1; 325while (this.currentParticipant < this.provider.trackingParticipants.Count) 383bool shouldClone = this.provider.trackingParticipants.Count > 1;
System\Activities\Validation\ActivityValidationServices.cs (1)
101while (toProcessIndex < listOfChildren.Count)
System\Activities\Validation\ValidationHelper.cs (1)
195string[] equivalentGroups = new string[entry.Value.Count + 1];
System\Activities\XamlIntegration\NamespaceTable.cs (2)
77if (namespaceList.Count != 0) 96if (this.tempNamespaceList != null && this.tempNamespaceList.Count > 0)
System\Activities\XamlIntegration\TextExpressionCompiler.cs (2)
951if (this.expressionDescriptors != null && this.expressionDescriptors.Count > 0) 2402if (messages != null && messages.Count > 0)
System.Activities.Core.Presentation (53)
System\Activities\Core\Presentation\FlowchartDesigner.Container.cs (2)
376if (modelItemsToSelect.Count > 0 && modelItemsToSelect[0] != null) 390if (modelItemsPerMetaData.Count > 0)
System\Activities\Core\Presentation\FlowchartDesigner.Helpers.cs (2)
214return GetInComingConnectors(designer).Count; 325Fx.Assert(modelItems.Count > 1, "Link creation requires more than one ModelItem");
System\Activities\Core\Presentation\FlowchartDesigner.xaml.cs (10)
600if (outGoingConnectors.Count == 0) 1712if (droppedObjects.Count() == 1 && movedViewElements.Count == 1) 2192ConnectionPoint midPoint = availableConnectionPoints[availableConnectionPoints.Count / 2]; 2208Fx.Assert(connectionPoints.Count > 0, "There should be at least one src connection point available"); 2237Fx.Assert(destConnectionPoints.Count > 0, "There should be at least one dest connection point available"); 2334if (draggedTypes.Count != 1) 2395if (this.GetAttachedConnectors(this.modelElement[draggedModelItem]).Count > 0) 2412if (index >= 0 && index < list.Count) 2542if (connectionPoints.Count > 0) 2544return connectionPoints[connectionPoints.Count / 2];
System\Activities\Core\Presentation\PickValidationErrorSourceLocator.cs (4)
29if (parentChain.Count > 1) 34parentChain.RemoveAt(parentChain.Count - 1); 36Activity targetActivity = (Activity)parentChain[parentChain.Count - 1]; 39parentChain.RemoveAt(parentChain.Count - 1);
System\Activities\Core\Presentation\StateContainerEditor.CompositeView.cs (13)
52if (itemsToCopy.Count == 1) 103if (itemsToDelete.Count == 1 && itemsToDelete.First().ItemType == typeof(Transition)) 167if (itemsToPaste != null && itemsToPaste.Count > 0) 169if (itemsToPaste.Count == 1 && itemsToPaste.First() is Transition) 213if (GetEmptyConnectionPoints(sourceStateItem.View as UIElement).Count < 1) 241if (GetEmptyConnectionPoints(destinationStateItem.View as UIElement).Count < emptyConnectionPointsCountNeeded) 279if (itemsToPaste.Count == 1 && itemsToPaste.First() is Transition) 281if (metaData == null || metaData.Count != 1 || !(metaData.First() is string)) 382if (modelItemsPasted.Count > 0) 408if (modelItemsPasted.Count > 0 && modelItemsPasted[0] != null) 463if (metaData != null && metaData.Count > 0) 476Fx.Assert(itemsPasted.Count == ii, "itemsCopied does not match the metaData."); 535if (itemsPasted.Count > 0)
System\Activities\Core\Presentation\StateContainerEditor.ModelChangeReactions.cs (3)
186if (this.transitionModelItemsAdded.Count > 0) 205if (this.transitionModelItemsRemoved.Count > 0) 225if (GetAttachedConnectors(this.initialNode).Count > 0)
System\Activities\Core\Presentation\StateContainerEditor.Utilities.cs (2)
372if (srcConnectionPoints.Count > 0 && destConnectionPoints.Count > 0)
System\Activities\Core\Presentation\StateContainerEditor.xaml.cs (9)
507if (attachedConnectors.Count == 0) 881if (srcConnectionPoints.Count > 0) 890if (destConnectionPoints.Count > 0) 1102if ((StateContainerEditor.GetOutgoingConnectors(element).Count > 0) && !this.IsMovingStartOfConnectorFromInitialNode()) 2412if (StateContainerEditor.GetEmptyConnectionPoints(targetElement).Count < 1) 2418if (types.Count != 1 || (types[0] != typeof(State) && types[0] != typeof(FinalState))) 2473if (connectionPoints.Count > 0) 2592if (StateContainerEditor.GetAttachedConnectors(this.modelItemToUIElement[draggedModelItem]).Count > 0) 2604if (draggedTypes.Count != 1 || draggedTypes[0] != typeof(State))
System\Activities\Core\Presentation\StateDesigner.xaml.cs (1)
137!this.IsRootDesigner && StateContainerEditor.GetEmptyConnectionPoints(this).Count > 0);
System\Activities\Core\Presentation\StateMachineValidationErrorSourceLocator.cs (5)
30Activity lastActivity = parentChain[parentChain.Count - 1] as Activity; 42if (parentChain.Count > 1) 47parentChain.RemoveAt(parentChain.Count - 1); 49Activity targetActivity = (Activity)parentChain[parentChain.Count - 1]; 52parentChain.RemoveAt(parentChain.Count - 1);
System\ServiceModel\Activities\Presentation\CorrelationInitializerDesigner.xaml.cs (1)
246return 0 == errors.Count;
System\ServiceModel\Activities\Presentation\MessageQuerySetDesigner.xaml.cs (1)
332return errors.Count == 0;
System.Activities.DurableInstancing (3)
System\Activities\DurableInstancing\LoadWorkflowAsyncResult.cs (1)
55bool singleKeyToAssociate = (keysToAssociate != null && keysToAssociate.Count == 1);
System\Activities\DurableInstancing\SaveWorkflowAsyncResult.cs (1)
505bool singleKeyToAssociate = (keysToAssociate != null && keysToAssociate.Count == 1);
System\Activities\DurableInstancing\SerializationUtilities.cs (1)
47if (correlationKeys == null || correlationKeys.Count == 0)
System.Activities.Presentation (183)
Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\SourceTextScanner.cs (6)
77int line = this.indexCache.Count - 1; 95while (this.indexCache.Count <= line) 103if (this.indexCache.Count <= line) 122int last = this.indexCache.Count - 1; 130if (this.indexCache.Count > 0) 132int tail = this.indexCache.Count - 1;
System.Activities.Presentation\System\Activities\Presentation\ActivityDelegateUtilities.cs (1)
61return GetPropertiesByHeuristics(type).Count > 0;
System.Activities.Presentation\System\Activities\Presentation\ActivityDesigner.cs (1)
100if (list.Count > 0)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\Metadata\MutableAttributeTable.cs (2)
205for (int idx = 0; idx < attributes.Count; idx++) 214if (idx < attributes.Count)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\ExtensibilityAccessor.cs (2)
346if (properties == null || properties.Count == 0) 680for (int i = 0; i < properties.Count; i++)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\Data\ComposingConverter.cs (2)
29for (int i = 0; i < this.converters.Count; i++) 38for (int i = this.converters.Count - 1; i >= 0; i--)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\UserInterface\FocusScopeManager.cs (5)
338for (int curScopeIndex = startIndex; curScopeIndex < this.scopes.Count; curScopeIndex++) 363for (int curScopeIndex = priorityStartIndex; curScopeIndex < this.scopes.Count; curScopeIndex++) 386for (int curRefIndex = this.scopes.Count - 1; curRefIndex >= 0; curRefIndex--) 400for (; startIndex < this.scopes.Count; startIndex++) 426for (int curScopeIndex = this.scopes.Count - 1; curScopeIndex >= 0; curScopeIndex--)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Model\ModelPropertyEntry.cs (7)
533for (int i = 0; i < _properties.Count; i++) 596for (int i = 0; i < _properties.Count; i++) 824for (int i = 0; i < _parent._properties.Count; i++) 848for (int i = 0; i < _parent._properties.Count; i++) 920for (int i = 1; i < _parent._properties.Count && _standardValues.Count > 0; i++) 1022if (_parent._properties.Count > 1) 1029for (int i = 0; i < _parent._properties.Count; i++)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Model\ModelPropertyEntryCollection.cs (5)
52return _properties == null ? 0 : _properties.Count; 91for (int i = 0; i < _properties.Count; i++) 107if (subProperties == null || subProperties.Count < 1) 115_properties = new List<ModelPropertyEntry>(subProperties.Count); 117for (int i = 0; i < subProperties.Count; i++)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Model\ModelPropertyValueCollection.cs (9)
66return _values == null ? 0 : _values.Count; 147if (_values.Count > index && 157for (int i = index + 1; i < _values.Count; i++) 183for (int i = 0; i < _values.Count; i++) 202for (int i = 0; i < _values.Count; i++) 253for (int i = index; i < _values.Count; i++) 269for (int i = 0; i < _values.Count; i++) 502if (_values == null || _values.Count <= index || index < 0) 512(_values != null && _values.Count < index) ||
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\PropertyValueEditorCommandHandler.cs (9)
51if (_commandHost != null && _activeCommandBindings.Count > 0) 66for (int i = _pendingTransactions.Count - 1; i >= 0; i--) 78for (int i = _pendingTransactions.Count - 1; i >= 0; i--) 155if (_pendingTransactions.Count == 0) 162_pendingTransactions[_pendingTransactions.Count - 1].Complete(); 166_pendingTransactions.RemoveAt(_pendingTransactions.Count - 1); 172if (_pendingTransactions.Count == 0) 179_pendingTransactions[_pendingTransactions.Count - 1].Revert(); 183_pendingTransactions.RemoveAt(_pendingTransactions.Count - 1);
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\MetadataStore.cs (3)
408for (int idx = 0; idx < attrList.Count; idx++) 433attributes = new Attribute[attrList.Count]; 435for (int idx = 0; idx < attrList.Count; idx++)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\PropertyEditing\PropertyFilter.cs (2)
41get { return this._predicates == null || this._predicates.Count == 0; } 94for (int i = 0; i < this._predicates.Count; i++)
System.Activities.Presentation\System\Activities\Presentation\CutCopyPasteHelper.cs (6)
201if (modelItemsToCut.Count > 0) 272if (modelItemsToCutCopy.Count > 0) 274objectsOnClipboard = new List<object>(modelItemsToCutCopy.Count); 346if (metaData.Count == 0) 358if (modelItemsToCutCopy.Count > 0 && ErrorActivity.GetHasErrorActivities(modelItemsToCutCopy[0].Root.GetCurrentValue())) 436if (clipboardObjects.Count == 3 && clipboardObjects[1] is Func<ModelItem, object, object>)
System.Activities.Presentation\System\Activities\Presentation\DragDropHelper.cs (2)
209&& draggedTypes.Count != 0 726return GetDraggedTypes(e.Data).Count;
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\AutoConnectHelper.cs (2)
281for (int i = 0; i < hitTestRects.Count; i++) 295for (int i = 0; i < hitTestRects.Count; i++)
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectionPoint.cs (1)
148if (connectionPoints == null || connectionPoints.Count == 0)
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorCreationAdorner.cs (1)
31for (int i = 0; i < linkPoints.Count - 1; i++)
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorEditor.cs (28)
74&& this.editedConnector.Points[this.editedConnector.Points.Count - 1] != this.EditPoints[this.EditPoints.Count - 1].Location); 122if (this.EditPoints.Count > 0) 181if (this.editPoints.Count == 0 || !this.editPoints[0].Location.Equals(editedConnector.Points[0])) 186if (this.editPoints.Count < 2 || !this.editPoints[this.editPoints.Count - 1].Equals(editedConnector.Points[editedConnector.Points.Count - 1])) 193if (this.editPoints.Count == 2) 196if (segments.Count > 0) 199segments.RemoveAt(segments.Count - 1); 202for (int i = 0; i < segments.Count; i++) 204this.editPoints.Insert(this.editPoints.Count - 1, new EditPoint(EditPoint.EditPointTypes.MultiSegmentEditPoint, segments[i])); 241for (int i = 0; i < this.EditPoints.Count; i++) 266if (this.editPoints.Count < 2 || 268this.editPoints[this.editPoints.Count - 1].Type != EditPoint.EditPointTypes.ConnectionEditPoint || 275List<EditPoint> editPointsToRetain = new List<EditPoint>(this.editPoints.Count); 276for (int i = 0; i < this.editPoints.Count; i++) 292for (int i = 0; i < this.editPoints.Count - 1; i++) 308for (int i = 1; i < this.editPoints.Count - 1; i++) 342for (int i = 1; i < this.EditPoints.Count - 1; i++) 365for (int i = 0; i < this.editPoints.Count; i++) 374for (int i = 0; i < editPointsToRemove.Count; i++) 387if (this.editPoints.Count < 2 || 389this.editPoints[this.editPoints.Count - 1].Type != EditPoint.EditPointTypes.ConnectionEditPoint) 399EditPoint next = (activeEditPointIndex < this.editPoints.Count - 1) ? this.editPoints[activeEditPointIndex + 1] : null; 447Fx.Assert(this.editPoints[editPoints.Count - 1].Type == EditPoint.EditPointTypes.ConnectionEditPoint, "EditPoint type is wrong."); 450Fx.Assert(this.editPoints.Count > 0, "Some edit point should exist"); 454Point end = this.editPoints[this.editPoints.Count - 1].Location; 536if (this.editPoints.Count < 2) 605for (i = 0; i < adornedEditor.EditPoints.Count - 1; i++)
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorRouter.cs (30)
248for (int i = points.Count - 1; i > 0; i--) 260while (index3 < points.Count) 275for (int i = points.Count - 1; i > 0; i--) 352for (int i = 0; i < verticalSegmentsB.Count; i++) 367for (int i = 0; i < horizontalSegmentsB.Count; i++) 553if (extremitiesList.Count == 0) 559for (int i = 0; i < extremitiesList.Count; i++) 615for (int i = 0; i < verticalSegmentsB.Count; i++) 628for (int i = 0; i < horizontalSegmentsB.Count; i++) 689while (points.Count > 0) 692int i = points.Count - 1; 706while (points.Count > i) 810Point objectPoint = escapePointsA[escapePointsA.Count - 1]; 858for (int j = escapePointsA.Count - 1; j >= 0; j--) 863for (int j = 0; j < escapePointsB.Count; j++) 870if (refinedPath.Count > 1 && refinedPath[refinedPath.Count - 1].IsEqualTo(begin)) 891while (currentSegment < refinedPath.Count - 1) 899while (intersectingSegment < refinedPath.Count - 1) 915for (int i = intersectingSegment + 1; i < refinedPath.Count; i++) 942while (currentSegment < refinedPath.Count - 1) 967while (intersectingSegment < refinedPath.Count - 1 && !intersected) 985for (int j = intersectingSegment + 1; j < refinedPath.Count; j++) 1323for (int i = 0; i < covers.Count; i++) 1353for (int i = 0; i < this.usedEscapeLine.Count; i++) 1372for (int i = 0; i < this.verticalCovers.Count; i++) 1388for (int i = 0; i < this.horizontalCovers.Count; i++) 1412for (int i = 0; i < this.verticalCovers.Count; i++) 1424for (int i = 0; i < this.horizontalCovers.Count; i++) 1457for (int i = 0; i < newCovers.Count; i++)
System.Activities.Presentation\System\Activities\Presentation\Metadata\ActivityArgumentHelper.cs (1)
89if (expressionReplacements.Count > 0)
System.Activities.Presentation\System\Activities\Presentation\Model\EditingScope.cs (5)
54return this.appliedChanges != null && this.appliedChanges.Count > 0; 174while (startIndex < this.Changes.Count) 177List<Change> changesToApply = this.Changes.GetRange(startIndex, this.Changes.Count - startIndex); 178startIndex = this.Changes.Count; 266this.appliedChanges.RemoveAt(this.appliedChanges.Count - 1);
System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemCollectionImpl.cs (4)
170return (this.sources.Count > 0) ? this.sources.First() : null; 331if (!this.IsReadOnly && (this.modelItems.Count > 0)) 456if (fromIndex > this.Items.Count) 460if (toIndex > this.Items.Count)
System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemDictionaryImpl.cs (1)
328return (this.sources.Count > 0) ? this.sources.First() : null;
System.Activities.Presentation\System\Activities\Presentation\NamespaceListProperty.cs (2)
183for (int i = 0; i < this.UniqueNamespaces.Count; i++) 316get { return this.UniqueNamespaces.Count; }
System.Activities.Presentation\System\Activities\Presentation\UndoEngine.cs (10)
119if (undoBuffer.Count > capacity) 132if (undoBuffer.Count > 0) 135undoBuffer.RemoveAt(undoBuffer.Count - 1); 147if (redoBuffer.Count > 0) 150redoBuffer.RemoveAt(redoBuffer.Count - 1); 239if (this.containerUndoUnit.DoList.Count != 0 || this.containerUndoUnit.RedoList.Count != 0) 308if (this.containerUndoUnit.DoList.Count > 0) 313this.containerUndoUnit.DoList.RemoveAt(this.containerUndoUnit.DoList.Count - 1); 327if (this.containerUndoUnit.RedoList.Count > 0)
System.Activities.Presentation\System\Activities\Presentation\Validation\ValidationService.cs (1)
641for (int errorSourcePathIndex = 1; errorSourcePathIndex < errorSourcePath.Count; errorSourcePathIndex++)
System.Activities.Presentation\System\Activities\Presentation\View\ArgumentDesigner.xaml.cs (2)
1310return 0 == errors.Count; 1340return 0 == errors.Count;
System.Activities.Presentation\System\Activities\Presentation\View\ImportDesigner.xaml.cs (1)
571if (assemblyList.Count == 0)
System.Activities.Presentation\System\Activities\Presentation\View\RubberBandSelector.cs (1)
294if (selectedModelItems.Count > 0)
System.Activities.Presentation\System\Activities\Presentation\View\TreeView\TreeViewItemModelItemViewModel.cs (1)
201if (tracker != null && (tracker.ChildViewModels == null || tracker.ChildViewModels.Count < 1))
System.Activities.Presentation\System\Activities\Presentation\View\TreeView\TreeViewItemViewModel.cs (1)
562if (tracker != null && tracker.ChildViewModels != null && tracker.ChildViewModels.Count > 0)
System.Activities.Presentation\System\Activities\Presentation\View\VariableDesigner.xaml.cs (2)
1426return 0 == errors.Count; 1445return 0 == errors.Count;
System.Activities.Presentation\System\Activities\Presentation\WorkflowItemPresenter.cs (7)
160if (activityList.Count == 0) 234if (droppedObjects.Count == 1 && movedViewElements.Count == 1) 576if (droppedObjects == null || droppedObjects.Count == 0) 580if (droppedObjects.Count == 1) 695Fx.Assert(itemsToCut.Count == 1, "Only one item can be cut"); 708if (itemsToPaste.Count == 1) 734itemsToPaste.Count > 0 &&
System.Activities.Presentation\System\Activities\Presentation\WorkflowItemsPresenter.cs (6)
537if (sortedModelItems.Count == 0) 554Fx.Assert(sortedModelItems.Count > 0, "Should have at least one item."); 573if (selectedItems.Count < 2) 593if (list.Count != selectedItems.Count) 903if (null != itemsToPaste && itemsToPaste.Count > 0)
System.Activities.Presentation\System\Activities\Presentation\WorkflowViewElement.cs (2)
505if (0 == this.compositeViews.Count) 980if (pair.Value.Count >= 2)
System.Activities.Presentation\System\Activities\Presentation\Xaml\ErrorTolerantObjectWriter.cs (12)
159Fx.Assert(this.xamlStack.Count > 0 && this.xamlStack.Current.Member == null, "Unexpected StartMember"); 171Fx.Assert(this.xamlStack.Count > 0 && this.xamlStack.Current.Member != null, "Unexpected EndMember"); 428Fx.Assert(this.xamlStack.Count > 0, "PushNewActivityFrameIfNeeded called without a StartObject"); 429if (this.xamlStack.Count == 1) 458NamespaceStackNode currentNamespaces = this.xamlStack.Count > 0 ? this.xamlStack.Current.Namespaces : null; 498else if (this.xamlStack.Count > 1) 522if (type.IsNameScope && this.xamlStack.Count > 1) 824T result = this[Count - 1]; 825this.RemoveAt(Count - 1); 831return this[Count - 1 - index]; 841get { return Count > 0 ? this[Count - 1] : null; }
System.AddIn (15)
System\Addin\Hosting\AddInActivator.cs (3)
594if (addinAdapters.Count > 0) { 606if (contracts.Count > 1) 611if (contracts.Count > 1) {
System\Addin\Hosting\AddInStore.cs (3)
920int oldNumAddins = state.AddIns.Count; 1167if (pipelineComponents.Count > 0) { 1401List<AddInToken> result = new List<AddInToken>(validPipelines.Count);
System\Addin\Hosting\InspectionWorker.cs (2)
128List<String> potentialFileNames = new List<string>(dirsToLookIn.Count * 2); 330if (retval.Components.Count == 0 && _currentComponentType != PipelineComponentType.AddIn && _currentComponentType != PipelineComponentType.AddInBase)
System\Addin\Hosting\Store\AddInAdapter.cs (2)
74if (_contracts.Count == 0) 90if (_constructors.Count == 0)
System\Addin\Hosting\Store\HostAdapter.cs (1)
96if (_constructors.Count == 0)
System\Addin\Hosting\Utils.cs (1)
224List<String> potentialFileNames = new List<string>(dirsToLookIn.Count * 2);
System\Addin\Pipeline\ContractBase.cs (3)
122if (m_lifetimeTokens.Count == 1) 156if (m_lifetimeTokens.Count == 0) 254return m_lifetimeTokens.Count > 0 ? lease.InitialLeaseTime : TimeSpan.Zero;
System.ComponentModel.DataAnnotations (1)
DataAnnotations\ValidationAttributeStore.cs (1)
236for (int i = attributes.Count - 1; i >= 0; --i) {
System.Configuration (9)
System\Configuration\BaseConfigurationRecord.cs (3)
496Debug.Assert(inputsPerConfigKey.Count > 0, "We won't get here unless we have inputs."); 1678int i = locationInputs.Count; 2738for(int i = sectionRecord.IndirectLocationInputs.Count-1; i >= 0; i--) {
System\Configuration\ErrorsHelper.cs (2)
15return (errors != null) ? errors.Count : 0; 61Debug.Assert(errors.Count != 0, "errors.Count != 0");
System\Configuration\SectionRecord.cs (4)
138return _locationInputs != null && _locationInputs.Count > 0; 149return _locationInputs[_locationInputs.Count - 1]; 220return _indirectLocationInputs != null && _indirectLocationInputs.Count > 0; 231return _indirectLocationInputs[_indirectLocationInputs.Count - 1];
System.Core (42)
Microsoft\Scripting\Actions\ExpandoClass.cs (1)
68for (int i = 0; i < infos.Count; i++) {
Microsoft\Scripting\Ast\BinaryExpression.cs (1)
272var tempArg = Expression.Variable(arg.Type, "tempArg" + tempArgs.Count);
Microsoft\Scripting\Compiler\BoundConstants.cs (3)
87get { return _values.Count; } 100_indexes.Add(value, _values.Count); 180_indexes.Add(value, index = _values.Count);
Microsoft\Scripting\Compiler\CompilerScope.cs (1)
199if (indexes.Count > 0) {
Microsoft\Scripting\Compiler\ExpressionQuoter.cs (4)
124indexes[i] = vars.Count; 127indexes[i] = -1 - boxes.Count; 133if (boxes.Count == 0) { 139if (vars.Count == 0) {
Microsoft\Scripting\Compiler\LabelInfo.cs (1)
205if (_references.Count > 0 && _definitions.Count == 0) {
Microsoft\Scripting\Compiler\LambdaCompiler.Expressions.cs (1)
205if (wb.Count != 0) {
Microsoft\Scripting\Compiler\LambdaCompiler.Statements.cs (15)
260Debug.Assert(key > buckets[buckets.Count - 1].Key); 266return (buckets.Count + count) * 2 > jumpTableSlots; 270while (buckets.Count > 1) { 271List<SwitchLabel> first = buckets[buckets.Count - 2]; 272List<SwitchLabel> second = buckets[buckets.Count - 1]; 274if (!FitsInBucket(first, second[second.Count - 1].Key, second.Count)) { 280buckets.RemoveAt(buckets.Count - 1); 286if (buckets.Count > 0) { 287List<SwitchLabel> last = buckets[buckets.Count - 1]; 387EmitSwitchBuckets(info, buckets, 0, buckets.Count - 1); 495if (bucket.Count == 1) { 532int len = (int)(bucket[bucket.Count - 1].Key - bucket[0].Key + 1); 545Debug.Assert(key == bucket[bucket.Count - 1].Key + 1); 610Expression.Constant(initializers.Count)
Microsoft\Scripting\Compiler\StackSpiller.cs (1)
119if (_tm.Temps.Count > 0) {
Microsoft\Scripting\Compiler\StackSpiller.Temps.cs (3)
59for (int i = _freeTemps.Count - 1; i >= 0; i--) { 189comma.Capacity = comma.Count + 1; 207Debug.Assert(_comma.Capacity == _comma.Count + 1);
System\Linq\Parallel\QueryOperators\Unary\TakeOrSkipQueryOperator.cs (4)
211while (buffer.Count < m_count && m_source.MoveNext(ref current, ref index)) 246if (m_count == 0 || m_bufferIndex.Value >= m_buffer.Count - 1) 278if (m_bufferIndex.Value < m_buffer.Count - 1) 280for (m_bufferIndex.Value++; m_bufferIndex.Value < m_buffer.Count; m_bufferIndex.Value++)
System\Linq\Parallel\QueryOperators\Unary\TakeOrSkipWhileQueryOperator.cs (3)
349if (m_bufferIndex.Value >= m_buffer.Count - 1) 372if (m_bufferIndex.Value < m_buffer.Count - 1) 374for (m_bufferIndex.Value++; m_bufferIndex.Value < m_buffer.Count; m_bufferIndex.Value++)
System\Linq\Parallel\Utils\Sorting.cs (4)
277Contract.Assert(keys.Count == values.Count); 280int[] indices = new int[values.Count]; 297TInputOutput[] sortedValues = new TInputOutput[values.Count]; 309m_sharedValues[m_partitionIndex] = new TInputOutput[values.Count];
System.Data (299)
cdf\src\NetFx40\Tools\Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\SourceTextScanner.cs (6)
77int line = this.indexCache.Count - 1; 95while (this.indexCache.Count <= line) 103if (this.indexCache.Count <= line) 122int last = this.indexCache.Count - 1; 130if (this.indexCache.Count > 0) 132int tail = this.indexCache.Count - 1;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\ActivityDelegateUtilities.cs (1)
61return GetPropertiesByHeuristics(type).Count > 0;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\ActivityDesigner.cs (1)
100if (list.Count > 0)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\Metadata\MutableAttributeTable.cs (2)
205for (int idx = 0; idx < attributes.Count; idx++) 214if (idx < attributes.Count)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\ExtensibilityAccessor.cs (2)
346if (properties == null || properties.Count == 0) 680for (int i = 0; i < properties.Count; i++)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\Data\ComposingConverter.cs (2)
29for (int i = 0; i < this.converters.Count; i++) 38for (int i = this.converters.Count - 1; i >= 0; i--)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\UserInterface\FocusScopeManager.cs (5)
338for (int curScopeIndex = startIndex; curScopeIndex < this.scopes.Count; curScopeIndex++) 363for (int curScopeIndex = priorityStartIndex; curScopeIndex < this.scopes.Count; curScopeIndex++) 386for (int curRefIndex = this.scopes.Count - 1; curRefIndex >= 0; curRefIndex--) 400for (; startIndex < this.scopes.Count; startIndex++) 426for (int curScopeIndex = this.scopes.Count - 1; curScopeIndex >= 0; curScopeIndex--)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Model\ModelPropertyEntry.cs (7)
533for (int i = 0; i < _properties.Count; i++) 596for (int i = 0; i < _properties.Count; i++) 824for (int i = 0; i < _parent._properties.Count; i++) 848for (int i = 0; i < _parent._properties.Count; i++) 920for (int i = 1; i < _parent._properties.Count && _standardValues.Count > 0; i++) 1022if (_parent._properties.Count > 1) 1029for (int i = 0; i < _parent._properties.Count; i++)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Model\ModelPropertyEntryCollection.cs (5)
52return _properties == null ? 0 : _properties.Count; 91for (int i = 0; i < _properties.Count; i++) 107if (subProperties == null || subProperties.Count < 1) 115_properties = new List<ModelPropertyEntry>(subProperties.Count); 117for (int i = 0; i < subProperties.Count; i++)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Model\ModelPropertyValueCollection.cs (9)
66return _values == null ? 0 : _values.Count; 147if (_values.Count > index && 157for (int i = index + 1; i < _values.Count; i++) 183for (int i = 0; i < _values.Count; i++) 202for (int i = 0; i < _values.Count; i++) 253for (int i = index; i < _values.Count; i++) 269for (int i = 0; i < _values.Count; i++) 502if (_values == null || _values.Count <= index || index < 0) 512(_values != null && _values.Count < index) ||
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\PropertyValueEditorCommandHandler.cs (9)
51if (_commandHost != null && _activeCommandBindings.Count > 0) 66for (int i = _pendingTransactions.Count - 1; i >= 0; i--) 78for (int i = _pendingTransactions.Count - 1; i >= 0; i--) 155if (_pendingTransactions.Count == 0) 162_pendingTransactions[_pendingTransactions.Count - 1].Complete(); 166_pendingTransactions.RemoveAt(_pendingTransactions.Count - 1); 172if (_pendingTransactions.Count == 0) 179_pendingTransactions[_pendingTransactions.Count - 1].Revert(); 183_pendingTransactions.RemoveAt(_pendingTransactions.Count - 1);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\MetadataStore.cs (3)
408for (int idx = 0; idx < attrList.Count; idx++) 433attributes = new Attribute[attrList.Count]; 435for (int idx = 0; idx < attrList.Count; idx++)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\PropertyEditing\PropertyFilter.cs (2)
41get { return this._predicates == null || this._predicates.Count == 0; } 94for (int i = 0; i < this._predicates.Count; i++)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\CutCopyPasteHelper.cs (6)
201if (modelItemsToCut.Count > 0) 272if (modelItemsToCutCopy.Count > 0) 274objectsOnClipboard = new List<object>(modelItemsToCutCopy.Count); 346if (metaData.Count == 0) 358if (modelItemsToCutCopy.Count > 0 && ErrorActivity.GetHasErrorActivities(modelItemsToCutCopy[0].Root.GetCurrentValue())) 436if (clipboardObjects.Count == 3 && clipboardObjects[1] is Func<ModelItem, object, object>)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\DragDropHelper.cs (2)
209&& draggedTypes.Count != 0 726return GetDraggedTypes(e.Data).Count;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\AutoConnectHelper.cs (2)
281for (int i = 0; i < hitTestRects.Count; i++) 295for (int i = 0; i < hitTestRects.Count; i++)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectionPoint.cs (1)
148if (connectionPoints == null || connectionPoints.Count == 0)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorCreationAdorner.cs (1)
31for (int i = 0; i < linkPoints.Count - 1; i++)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorEditor.cs (28)
74&& this.editedConnector.Points[this.editedConnector.Points.Count - 1] != this.EditPoints[this.EditPoints.Count - 1].Location); 122if (this.EditPoints.Count > 0) 181if (this.editPoints.Count == 0 || !this.editPoints[0].Location.Equals(editedConnector.Points[0])) 186if (this.editPoints.Count < 2 || !this.editPoints[this.editPoints.Count - 1].Equals(editedConnector.Points[editedConnector.Points.Count - 1])) 193if (this.editPoints.Count == 2) 196if (segments.Count > 0) 199segments.RemoveAt(segments.Count - 1); 202for (int i = 0; i < segments.Count; i++) 204this.editPoints.Insert(this.editPoints.Count - 1, new EditPoint(EditPoint.EditPointTypes.MultiSegmentEditPoint, segments[i])); 241for (int i = 0; i < this.EditPoints.Count; i++) 266if (this.editPoints.Count < 2 || 268this.editPoints[this.editPoints.Count - 1].Type != EditPoint.EditPointTypes.ConnectionEditPoint || 275List<EditPoint> editPointsToRetain = new List<EditPoint>(this.editPoints.Count); 276for (int i = 0; i < this.editPoints.Count; i++) 292for (int i = 0; i < this.editPoints.Count - 1; i++) 308for (int i = 1; i < this.editPoints.Count - 1; i++) 342for (int i = 1; i < this.EditPoints.Count - 1; i++) 365for (int i = 0; i < this.editPoints.Count; i++) 374for (int i = 0; i < editPointsToRemove.Count; i++) 387if (this.editPoints.Count < 2 || 389this.editPoints[this.editPoints.Count - 1].Type != EditPoint.EditPointTypes.ConnectionEditPoint) 399EditPoint next = (activeEditPointIndex < this.editPoints.Count - 1) ? this.editPoints[activeEditPointIndex + 1] : null; 447Fx.Assert(this.editPoints[editPoints.Count - 1].Type == EditPoint.EditPointTypes.ConnectionEditPoint, "EditPoint type is wrong."); 450Fx.Assert(this.editPoints.Count > 0, "Some edit point should exist"); 454Point end = this.editPoints[this.editPoints.Count - 1].Location; 536if (this.editPoints.Count < 2) 605for (i = 0; i < adornedEditor.EditPoints.Count - 1; i++)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorRouter.cs (30)
248for (int i = points.Count - 1; i > 0; i--) 260while (index3 < points.Count) 275for (int i = points.Count - 1; i > 0; i--) 352for (int i = 0; i < verticalSegmentsB.Count; i++) 367for (int i = 0; i < horizontalSegmentsB.Count; i++) 553if (extremitiesList.Count == 0) 559for (int i = 0; i < extremitiesList.Count; i++) 615for (int i = 0; i < verticalSegmentsB.Count; i++) 628for (int i = 0; i < horizontalSegmentsB.Count; i++) 689while (points.Count > 0) 692int i = points.Count - 1; 706while (points.Count > i) 810Point objectPoint = escapePointsA[escapePointsA.Count - 1]; 858for (int j = escapePointsA.Count - 1; j >= 0; j--) 863for (int j = 0; j < escapePointsB.Count; j++) 870if (refinedPath.Count > 1 && refinedPath[refinedPath.Count - 1].IsEqualTo(begin)) 891while (currentSegment < refinedPath.Count - 1) 899while (intersectingSegment < refinedPath.Count - 1) 915for (int i = intersectingSegment + 1; i < refinedPath.Count; i++) 942while (currentSegment < refinedPath.Count - 1) 967while (intersectingSegment < refinedPath.Count - 1 && !intersected) 985for (int j = intersectingSegment + 1; j < refinedPath.Count; j++) 1323for (int i = 0; i < covers.Count; i++) 1353for (int i = 0; i < this.usedEscapeLine.Count; i++) 1372for (int i = 0; i < this.verticalCovers.Count; i++) 1388for (int i = 0; i < this.horizontalCovers.Count; i++) 1412for (int i = 0; i < this.verticalCovers.Count; i++) 1424for (int i = 0; i < this.horizontalCovers.Count; i++) 1457for (int i = 0; i < newCovers.Count; i++)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Metadata\ActivityArgumentHelper.cs (1)
89if (expressionReplacements.Count > 0)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\EditingScope.cs (5)
54return this.appliedChanges != null && this.appliedChanges.Count > 0; 174while (startIndex < this.Changes.Count) 177List<Change> changesToApply = this.Changes.GetRange(startIndex, this.Changes.Count - startIndex); 178startIndex = this.Changes.Count; 266this.appliedChanges.RemoveAt(this.appliedChanges.Count - 1);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemCollectionImpl.cs (4)
170return (this.sources.Count > 0) ? this.sources.First() : null; 331if (!this.IsReadOnly && (this.modelItems.Count > 0)) 456if (fromIndex > this.Items.Count) 460if (toIndex > this.Items.Count)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemDictionaryImpl.cs (1)
328return (this.sources.Count > 0) ? this.sources.First() : null;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\NamespaceListProperty.cs (2)
183for (int i = 0; i < this.UniqueNamespaces.Count; i++) 316get { return this.UniqueNamespaces.Count; }
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\UndoEngine.cs (10)
119if (undoBuffer.Count > capacity) 132if (undoBuffer.Count > 0) 135undoBuffer.RemoveAt(undoBuffer.Count - 1); 147if (redoBuffer.Count > 0) 150redoBuffer.RemoveAt(redoBuffer.Count - 1); 239if (this.containerUndoUnit.DoList.Count != 0 || this.containerUndoUnit.RedoList.Count != 0) 308if (this.containerUndoUnit.DoList.Count > 0) 313this.containerUndoUnit.DoList.RemoveAt(this.containerUndoUnit.DoList.Count - 1); 327if (this.containerUndoUnit.RedoList.Count > 0)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Validation\ValidationService.cs (1)
641for (int errorSourcePathIndex = 1; errorSourcePathIndex < errorSourcePath.Count; errorSourcePathIndex++)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\ArgumentDesigner.xaml.cs (2)
1310return 0 == errors.Count; 1340return 0 == errors.Count;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\ImportDesigner.xaml.cs (1)
571if (assemblyList.Count == 0)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\RubberBandSelector.cs (1)
294if (selectedModelItems.Count > 0)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\TreeView\TreeViewItemModelItemViewModel.cs (1)
201if (tracker != null && (tracker.ChildViewModels == null || tracker.ChildViewModels.Count < 1))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\TreeView\TreeViewItemViewModel.cs (1)
562if (tracker != null && tracker.ChildViewModels != null && tracker.ChildViewModels.Count > 0)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\VariableDesigner.xaml.cs (2)
1426return 0 == errors.Count; 1445return 0 == errors.Count;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\WorkflowItemPresenter.cs (7)
160if (activityList.Count == 0) 234if (droppedObjects.Count == 1 && movedViewElements.Count == 1) 576if (droppedObjects == null || droppedObjects.Count == 0) 580if (droppedObjects.Count == 1) 695Fx.Assert(itemsToCut.Count == 1, "Only one item can be cut"); 708if (itemsToPaste.Count == 1) 734itemsToPaste.Count > 0 &&
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\WorkflowItemsPresenter.cs (6)
537if (sortedModelItems.Count == 0) 554Fx.Assert(sortedModelItems.Count > 0, "Should have at least one item."); 573if (selectedItems.Count < 2) 593if (list.Count != selectedItems.Count) 903if (null != itemsToPaste && itemsToPaste.Count > 0)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\WorkflowViewElement.cs (2)
505if (0 == this.compositeViews.Count) 980if (pair.Value.Count >= 2)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Xaml\ErrorTolerantObjectWriter.cs (12)
159Fx.Assert(this.xamlStack.Count > 0 && this.xamlStack.Current.Member == null, "Unexpected StartMember"); 171Fx.Assert(this.xamlStack.Count > 0 && this.xamlStack.Current.Member != null, "Unexpected EndMember"); 428Fx.Assert(this.xamlStack.Count > 0, "PushNewActivityFrameIfNeeded called without a StartObject"); 429if (this.xamlStack.Count == 1) 458NamespaceStackNode currentNamespaces = this.xamlStack.Count > 0 ? this.xamlStack.Current.Namespaces : null; 498else if (this.xamlStack.Count > 1) 522if (type.IsNameScope && this.xamlStack.Count > 1) 824T result = this[Count - 1]; 825this.RemoveAt(Count - 1); 831return this[Count - 1 - index]; 841get { return Count > 0 ? this[Count - 1] : null; }
fx\src\data\System\Data\Common\DataColumnMappingCollection.cs (1)
73return ((null != items) ? items.Count : 0);
fx\src\data\System\Data\Common\DataTableMappingCollection.cs (1)
76return ((null != items) ? items.Count : 0);
fx\src\data\System\Data\DataColumnCollection.cs (1)
483for (int i = 0; i < column.dependentColumns.Count; i++) {
fx\src\data\System\Data\DataRelation.cs (1)
437for(int i = 0; i < list.Count; ++i) {
fx\src\data\System\Data\DataSet.cs (1)
2971if (topTables.Count == 0)
fx\src\data\System\Data\DataTable.cs (27)
893int numIndexes = shadowIndexes.Count; 1008for (int i = indexes.Count-1; 0 <= i; --i) { 1501if ((null == nestedParents) || (nestedParents.Count == 0)) { 1901if (delayedViews.Count > 0) { 2895DataRow[] temp = NewRowArray(errorList.Count); 2911for (int i = 0; i < indexes.Count; i++) { 3054if (dependentColumns != null && dependentColumns.Count > 0) 3416int numIndexes = shadowIndexes.Count; 3435Debug.Assert (oldIndex.Length == shadowIndexes.Count, "Size of OldIndexes should be the same as size of Live indexes"); 3437int numIndexes = shadowIndexes.Count; 3454int numIndexes = shadowIndexes.Count; 3473int numIndexes = shadowIndexes.Count; 3498int indexCount = LiveIndexes.Count; 3526int indexCount = LiveIndexes.Count; 3672int numIndexes = shadowIndexes.Count; 3906&& dependentColumns != null && dependentColumns.Count > 0) { 3915cachedRows.InsertRange(cachedRows.Count, row.GetParentRows(relation)); 3923cachedRows.InsertRange(cachedRows.Count, row.GetChildRows(relation)); 3943if (LiveIndexes.Count != 0) { 3998if (dependentColumns != null && dependentColumns.Count > 0) { 4044if (LiveIndexes.Count != 0) { 4110Debug.Assert(0 < indexes.Count, "unexpected"); 5652for (int i = 0; i < tableList.Count ; i++) { 5778if (relationList.Count == 0) { 6171if ((null != dependentColumns) && (0 < dependentColumns.Count)) { 6313int count = columns.Count; 6352count = columns.Count;
fx\src\data\System\Data\DataTableCollection.cs (1)
557Debug.Assert(_list.Count == tableList.Count, "Both lists should have equal numbers of tables");
fx\src\data\System\Data\DataView.cs (1)
1729for (int i =0 ; i < arraylist.Count ; i++){
fx\src\data\System\Data\DataViewListener.cs (1)
168for (int i = listeners.Count - 1; 0 <= i; --i) {
fx\src\data\System\Data\Filter\AggregateNode.cs (2)
116for (i = 0; i < list.Count; i++) { 123if (i >= list.Count) {
fx\src\data\System\Data\Filter\LookupNode.cs (2)
68for (i = 0; i < list.Count; i++) { 75if (i >= list.Count) {
fx\src\data\System\Data\Filter\NameNode.cs (2)
66for (i = 0; i < list.Count; i++) { 73if (i >= list.Count) {
fx\src\data\System\Data\Merger.cs (1)
260if (targetRow.Table.dependentColumns != null && targetRow.Table.dependentColumns.Count > 0)
fx\src\data\System\Data\Odbc\OdbcDataReader.cs (1)
1895if((qrytables != null) && (qrytables.Count > 0) ) {
fx\src\data\System\Data\OleDb\OledbConnectionStringbuilder.cs (1)
423Guid[] arrayPropertySets = new Guid[listPropertySets.Count];
fx\src\data\System\Data\OleDb\OleDbDataReader.cs (3)
2163int visibleCount = metainfo.Count; 2174for (int index = metainfo.Count - 1; visibleCount <= index; --index) { 2188for (int index2 = metainfo.Count-1; index < index2; --index2) {
fx\src\data\System\Data\OleDb\OleDbException.cs (2)
119Debug.Assert(0 < exceptions.Count, "missing exceptions"); 120if (1 < exceptions.Count) {
fx\src\data\System\Data\ProviderBase\DbConnectionFactory.cs (2)
474if (0 != _poolsToRelease.Count) { 496if (0 != _poolGroupsToRelease.Count) {
fx\src\data\System\Data\ProviderBase\DbConnectionPool.cs (8)
129int i = connections.Count - 1; 278if (0 >= connections.Count) 718int count = _objectList.Count; 810_totalObjects = _objectList.Count; 821oldConnectionPool._totalObjects = oldConnectionPool._objectList.Count; 1027_totalObjects = _objectList.Count; 1698count = _objectList.Count; 1733count = reclaimedObjects.Count;
fx\src\Data\System\Data\ProviderBase\DbParameterCollectionHelper.cs (2)
26return ((null != _items) ? _items.Count : 0); 169int count = items.Count;
fx\src\data\System\Data\ProviderBase\SchemaMapping.cs (1)
457for (int i = items.Count-1; 0 <= i; --i) {
fx\src\data\System\Data\RecordManager.cs (4)
96if (freeRecordList.Count != 0) { 97record = freeRecordList[freeRecordList.Count - 1]; 98freeRecordList.RemoveAt(freeRecordList.Count - 1); 152freeRecordList.Capacity = freeRecordList.Count + table.Rows.Count;
fx\src\data\System\Data\Select.cs (3)
178int count = this.table.indexes.Count; 223int count = this.table.indexes.Count; 707resultRows = table.NewRowArray(matchingRows.Count);
fx\src\data\System\Data\Selection.cs (3)
958for (int i = 0; i < list.Count; ++i) { 992get { return (0 < listeners.Count); } 1028int count = listeners.Count;
fx\src\data\System\Data\SqlClient\SqlBulkCopy.cs (5)
780_parser.WriteBulkCopyMetaData(metadataCollection, _sortedColumnMappings.Count, _stateObj); 2022for (i = col; i < _sortedColumnMappings.Count; i++) { 2052if (i + 1 < _sortedColumnMappings.Count) { 2464if (_sortedColumnMappings.Count != 0) { 2470_currentRowMetadata = new SourceColumnMetadata[_sortedColumnMappings.Count];
fx\src\data\System\Data\SqlClient\SqlCachedBuffer.cs (3)
70if (cachedBytes.Count == 0) { 93Debug.Assert(cachedBytes.Count == 0); 106if (_cachedBytes.Count == 0) {
fx\src\data\System\Data\SqlClient\SqlCommand.cs (4)
2952if (parameters.Count == 0) { 5082Debug.Assert(_parameterCollectionList.Count >= _currentlyExecutingBatch, "OnDoneProc: Too many DONEPROC events"); 5100if (_parameterCollectionList.Count > _currentlyExecutingBatch) { 5318if (_parameterCollectionList.Count > _currentlyExecutingBatch) {
fx\src\data\System\Data\SqlClient\SqlCommandSet.cs (2)
66return CommandList.Count; 263for (int ii = 0 ; ii < _commandList.Count; ii++) {
fx\src\data\System\Data\SqlClient\SqlDependency.cs (4)
858if (databaseServiceList.Count == 0) { 948if (databaseList.Count == 1) { // If only one database for this server/user, use it. 1133Debug.Assert(0 == _eventList.Count, "How can we have an event at this point?"); 1134if (0 == _eventList.Count) { // Keep logic just in case.
fx\src\data\System\Data\SqlClient\SqlDependencyUtils.cs (4)
428if (dependencies.Count == 0) { 439Debug.Assert(commandHashesToRemove.Count == notificationIdsToRemove.Count, "maps should be kept in sync"); 440for (int i = 0; i < notificationIdsToRemove.Count; i++ ) {
fx\src\data\System\Data\SqlClient\SqlParameter.cs (5)
1132if (fields.Count <= 0) { 1136bool[] keyCols = new bool[fields.Count]; 1138for(int i=0; i<fields.Count; i++) { 1302while (columnOrdinal > fields.Count) { 1307if (fields.Count == columnOrdinal) {
fx\src\data\System\Data\SqlClient\SqlStream.cs (4)
362if (_cachedBytes.Count <= _currentArrayIndex) { 369if (_cachedBytes.Count > _currentArrayIndex) { 432for (int ii = 0 ; ii < _cachedBytes.Count ; ii++) { 450for (int ii = 0 ; ii < _cachedBytes.Count ; ii++) {
fx\src\data\System\Data\SqlClient\TdsParser.cs (2)
9120if (0 < columnList.Count) { 9122WriteShort(columnList.Count, stateObj);
fx\src\data\System\Data\SqlClient\TdsParserHelperClasses.cs (1)
621for (int i = 0; i < altMetaDataSetArray.Count; i++) {
fx\src\data\System\Data\SqlClient\TdsParserSessionPool.cs (6)
78for (int i = _cache.Count - 1; i >= 0 ; i--) { 104for (int i = 0; i < _cache.Count; i++) { 131for (int i = 0; i < _cache.Count; i++) { 172_cachedCount = _cache.Count; 215_cachedCount = _cache.Count; 229_cache.Count);
fx\src\data\System\Data\SqlClient\TdsParserStateObject.cs (1)
3630if (_snapshotInBuffCurrent < _snapshotInBuffs.Count) {
fx\src\data\System\NewXml\XmlDataDocument.cs (3)
2763if (tableList.Count > 0) { // if we have some table inside; 2769for(int readPos = 0 ; readPos < tableList.Count; readPos ++) { 2800for(int counter = 0 ; counter < tableList.Count; counter++) {
System.Data.DataSetExtensions (3)
System\Data\EnumerableRowCollection.cs (2)
178if ((null != _selector) && (0 < _listOfPredicates.Count)) 212else if (0 < _listOfPredicates.Count)
System\Data\SortExpressionBuilder.cs (1)
110Debug.Assert(a.Count == Count);
System.Data.Entity (592)
System\Data\Common\CommandTrees\ExpressionBuilder\EdmFunctions.cs (1)
38if (functions.Count > 0)
System\Data\Common\CommandTrees\ExpressionBuilder\Internal\ArgumentValidation.cs (2)
506if (inputList.Count < 2) 1607validArguments = CreateExpressionList(arguments, "arguments", expectedTypes.Count, (exp, idx) =>
System\Data\Common\CommandTrees\Internal\DbExpressionRules.cs (1)
86for (int idx = 0; idx < rules.Count; idx++)
System\Data\Common\CommandTrees\Internal\ExpressionPrinter.cs (2)
947if (keys.Count > 0) 952if (aggs.Count > 0)
System\Data\Common\CommandTrees\Internal\ViewSimplifier.cs (9)
136if (relSets.Count == 0) 218for (int idx = 0; idx < constructors.Count; idx++) 228if (relatedRefs.Count > 0) 257List<DbExpression> whens = new List<DbExpression>(conditions.Count); 258List<DbExpression> thens = new List<DbExpression>(conditions.Count); 259for (int idx = 0; idx < conditions.Count; idx++) 265result = entityProject.Input.Project(DbExpressionBuilder.Case(whens, thens, constructors[conditions.Count])); 425if (predicates.Count != propertyPredicates.Count)
System\Data\Common\DataRecordInfo.cs (2)
53fieldList.Add(new FieldMetadata(fieldList.Count, member)); 64if (Helper.IsStructuralType(metadata.EdmType) == (0 < fieldList.Count))
System\Data\Common\DbXmlEnabledProviderManifest.cs (1)
172if (list.Count != 0)
System\Data\Common\EntitySql\AST\AstNode.cs (1)
80get { return _list.Count; }
System\Data\Common\EntitySql\CqlErrorHelper.cs (1)
30for (int i = 0 ; i < argTypes.Count ; i++)
System\Data\Common\EntitySql\FunctionOverloadResolver.cs (5)
137Debug.Assert(argTypesFlat.Count == rank.Length, "argTypesFlat.Count == rank.Length"); 148argTypesFlat.Count > 1 && // best candidate may be ambiguous only in the case of 2 or more arguments 149ranks.Count > 1) 259Debug.Assert(flatArgumentList.Count == flatOverloadParamList.Count, "flatArgumentList.Count == flatOverloadParamList.Count"); 264parameterRanks = new int[flatOverloadParamList.Count];
System\Data\Common\EntitySql\SemanticAnalyzer.cs (15)
374Debug.Assert(functionDefList.Count == inlineFunctionInfos.Count); 1274argTypes.Count == aggArgTypes.Count && 1334int argCount = args.Count; 1417if (relshipExprList != null && relshipExprList.Count > 0) 1521for (int i = 0; i < args.Count; i++) 2664if (resultTypes.Count == 0) 2681for (int i = 0; i < thenExprList.Count; i++) 2910Debug.Assert(projectionItems.Count > 0, "projectionItems.Count > 0"); 2922Debug.Assert(projectionItems.Count == 1, "projectionItems.Count must be 1 for SELECT VALUE"); 2967Debug.Assert(projectionItemErrCtxs.Count == rowType.Members.Count); 3694if (0 == sr.CurrentScopeRegion.GroupAggregateInfos.Count) 3726List<KeyValuePair<string, DbAggregate>> aggregates = new List<KeyValuePair<string, DbAggregate>>(sr.CurrentScopeRegion.GroupAggregateInfos.Count); 3924if (groupPartitionDefinitions.Count > 0) 4134Debug.Assert(projectionItems.Count == 1, "projectionItems.Count == 1");
System\Data\Common\EntitySql\SemanticResolver.cs (5)
279get { return _scopeRegions[_scopeRegions.Count - 1]; } 850ScopeRegion scopeRegion = new ScopeRegion(_scopeManager, CurrentScopeIndex, _scopeRegions.Count); 863Debug.Assert(this._scopeRegions.Count > 1, "_scopeRegionFlags.Count > 1"); 911for (int i = 0; i < _scopeRegions.Count; i++) 926for (int i = _scopeRegions.Count - 1; i >= 0; --i)
System\Data\Common\EntitySql\StaticContext.cs (5)
215for (int i = _propRefs.Count - 1; i >= 0; --i) 242Debug.Assert(_propRefs.Count > 0, "_propRefs.Count > 0"); 243_propRefs.RemoveAt(_propRefs.Count - 1); 303for (int i = _propRefs.Count - 2/*ignore the parentVarRef*/; i >= 0; --i) 465return _scopes.Count - 1;
System\Data\Common\Internal\Materialization\CoordinatorScratchpad.cs (3)
161recordStateFactories = new RecordStateFactory[_recordStateScratchpads.Count]; 172CoordinatorFactory[] nestedCoordinators = new CoordinatorFactory[_nestedCoordinatorScratchpads.Count]; 535Expression.MakeBinary(ExpressionType.ArrayIndex, _values, Expression.Constant(_initializationArguments.Count - 1)),
System\Data\Common\Internal\Materialization\RecordStateScratchpad.cs (1)
70RecordStateFactory[] nestedRecordStateFactories = new RecordStateFactory[_nestedRecordStateScratchpads.Count];
System\Data\Common\QueryCache\QueryCacheManager.cs (1)
289for (int i = 0; i < cacheKeys.Count; i++)
System\Data\Common\Utils\Boolean\Simplifier.cs (2)
118if (0 == children.Count) 125else if (1 == children.Count)
System\Data\Common\Utils\Helpers.cs (1)
177for (int idx = childNodes.Count - 1; idx > -1; idx--)
System\Data\Common\Utils\ModifiableIteratorCollection.cs (5)
49return m_elements.Count == 0; 60return Remove(m_elements.Count - 1); 98while (m_currentIteratorIndex < m_elements.Count) { 113Debug.Assert(index < m_elements.Count, "Removing an entry with too high an index"); 116int lastIndex = m_elements.Count - 1;
System\Data\Common\Utils\ThreadSafeList.cs (1)
34count = _list.Count;
System\Data\Common\Utils\TreePrinter.cs (4)
178_scopes.RemoveAt(_scopes.Count - 1); 188for (int scopeIdx = 0; scopeIdx < _scopes.Count; scopeIdx++) 191if (!_showLines || (parentScope.Position == parentScope.Children.Count && scopeIdx != _scopes.Count - 1)) 201if (_scopes.Count == idx && _showLines)
System\Data\EntityClient\DbParameterCollectionHelper.cs (2)
28return ((null != _items) ? _items.Count : 0); 171int count = items.Count;
System\Data\EntityClient\EntityCommandDefinition.cs (4)
76Debug.Assert(mappedCommandList.Count > 0, "empty providerCommandInfo collection and no exception?"); // this shouldn't ever happen. 79_mappedCommandDefinitions = new List<DbCommandDefinition>(mappedCommandList.Count); 419if (1 != _mappedCommandDefinitions.Count) { 540if (_mappedCommandDefinitions.Count == 1) {
System\Data\EntityModel\SchemaObjectModel\EntityContainerAssociationSetEnd.cs (2)
149if ( possibleEnds.Count == 1 ) 153else if ( possibleEnds.Count == 0 )
System\Data\EntityModel\SchemaObjectModel\EntityContainerRelationshipSet.cs (2)
199if ( possibleExtents.Count == 1 ) 203else if ( possibleExtents.Count == 0 )
System\Data\EntityModel\SchemaObjectModel\Function.cs (1)
203Debug.Assert(_returnTypeList.Count == 1, "Shouldn't use Type if there could be multiple return types");
System\Data\EntityModel\SchemaObjectModel\RelationshipEndCollection.cs (1)
41return KeysInDefOrder.Count;
System\Data\EntityModel\SchemaObjectModel\Schema.cs (2)
73if (_errors.Count != 0) 1237Debug.Assert(namespaceNames.Count > 0, "Unknown Datamodel");
System\Data\EntityModel\SchemaObjectModel\SchemaManager.cs (1)
136if (filePathList.Count <= index)
System\Data\Mapping\FunctionImportMapping.cs (1)
525Debug.Assert(columnConditions.Count == parent.DiscriminatorColumns.Count,
System\Data\Mapping\FunctionImportMappingComposable.cs (20)
44Debug.Assert(structuralTypeMappings == null || structuralTypeMappings.Count > 0, "Non-null structuralTypeMappings must not be empty."); 101if (viewGenErrors.Count > 0) 112Debug.Assert(rootProjectOp.Outputs.Count == 1, "rootProjectOp.Outputs.Count == 1"); 273Debug.Assert(m_structuralTypeMappings != null && m_structuralTypeMappings.Count > 0, "m_structuralTypeMappings != null && m_structuralTypeMappings.Count > 0"); 282if (m_structuralTypeMappings.Count == 1) 290if (conditions.Count > 0) 310Debug.Assert(m_structuralTypeMappings.All(m => m.Item2.Count > 0), "In multi-type mapping each type must have conditions."); 317List<DbExpression> structuralTypeMappingViews = new List<DbExpression>(m_structuralTypeMappings.Count); 333Debug.Assert(structuralTypeMappingViews.Count == structuralTypePredicates.Count, "structuralTypeMappingViews.Count == structuralTypePredicates.Count"); 334if (structuralTypeMappingViews.Count != m_structuralTypeMappings.Count) 342structuralTypePredicates.Take(m_structuralTypeMappings.Count - 1), 343structuralTypeMappingViews.Take(m_structuralTypeMappings.Count - 1), 344structuralTypeMappingViews[m_structuralTypeMappings.Count - 1]); 361Debug.Assert(properties.Count == propertyMappings.Count, "properties.Count == propertyMappings.Count"); 363for (int i = 0; i < propertyMappings.Count; ++i) 373if (constructorArgs.Count != propertyMappings.Count) 387Debug.Assert(conditions.Count > 0, "conditions.Count > 0");
System\Data\Mapping\FunctionImportMappingNonComposable.cs (2)
38if (structuralTypeMappingsList.Count == 0) 47Debug.Assert(functionImport.ReturnParameters.Count == structuralTypeMappingsList.Count);
System\Data\Mapping\StorageEntityContainerMapping.cs (1)
445if (result.Cells.Count <= 0)
System\Data\Mapping\StorageEntitySetMapping.cs (1)
77if (m_modificationFunctionMappings.Count != 0) {
System\Data\Mapping\StorageMappingItemCollection.cs (1)
232if (errors.Count > 0 && throwOnError)
System\Data\Mapping\StorageMappingItemLoader.cs (16)
200if (m_parsingErrors.Count != 0) 246if (m_parsingErrors.Count != 0) 593if (0 < violationNames.Count) 727if (0 < newNodes.Count) 1577if (typeMappingsList.Count > 0 && typeMappingsList.Count != functionImport.ReturnParameters.Count) 1603var typeMappings = typeMappingsList.Count > 0 ? typeMappingsList[0] : new List<FunctionImportStructuralTypeMapping>(); 1627Debug.Assert(typeMappings.Count == 0, "typeMappings.Count == 0"); 2091if (typeMappings.Count == 0) 2152if (structuralTypeMappings.Count < functionImportKB.MappedEntityTypes.Count) 2202Debug.Assert(structuralTypeMappings.Count > 0, "Function import returning entities must have non-empty structuralTypeMappings."); 2526Common.TypeHelpers.GetAllStructuralMembers(structuralType).Count == propertyMappings.Count && 3605int errorCount = m_parsingErrors.Count; 3617if (errorCount == m_parsingErrors.Count) 4274int errorCount = m_parentLoader.m_parsingErrors.Count; 4285if (mappedStoreType == null && errorCount == m_parentLoader.m_parsingErrors.Count)
System\Data\Mapping\StorageModificationFunctionMapping.cs (1)
147if (0 < bindings.Count)
System\Data\Mapping\Update\Internal\DynamicUpdateCommand.cs (1)
180for (int idx = 0; idx < m_inputIdentifiers.Count; idx++)
System\Data\Mapping\Update\Internal\FunctionUpdateCommand.cs (2)
383int thisInputIdentifierCount = (null == this.m_inputIdentifiers ? 0 : this.m_inputIdentifiers.Count); 384int otherInputIdentifierCount = (null == other.m_inputIdentifiers ? 0 : other.m_inputIdentifiers.Count);
System\Data\Mapping\Update\Internal\KeyManager.cs (4)
113result = _identifiers.Count; 136result = _identifiers.Count; 283var color = new NodeColor[_identifiers.Count]; 285for (int i = 0, n = _identifiers.Count; i < n; i++)
System\Data\Mapping\Update\Internal\UpdateCompiler.cs (2)
103if (0 == setClauses.Count) 322if (0 < returningArguments.Count)
System\Data\Mapping\ViewGeneration\BasicViewGenerator.cs (9)
37Debug.Assert(usedCells.Count > 0, "No used cells"); 170if (rootNode.Children.Count <= 1) 179for (int i = 0; i < rootNode.Children.Count; i++) 251for (int i = 0; i < rootNode.Children.Count; i++) 258if (rootNode.OpType != CellTreeOpType.LOJ || rootNode.Children.Count < 2) 334var nonTrivial = extentMap.KeyValuePairs.Where(m => m.Value.Count > 1).ToArray(); 350Debug.Assert(extentMap.KeyValuePairs.All(m => m.Value.Count == 1), "extentMap must map to single nodes only."); 492if (children.Count <= 1) 499for (int i = 0; i < children.Count; i++)
System\Data\Mapping\ViewGeneration\CellTreeSimplifier.cs (9)
72Debug.Assert(children.Count > 0, "OpCellTreeNode has no children?"); 75for (int i = 0; i < children.Count; i++) 153if (CellTreeNode.IsAssociativeOp(rootNode.OpType) == false || children.Count <= 1) 180List<OpCellTreeNode> newChildren = new List<OpCellTreeNode>(children.Count); 185List<LeafCellTreeNode> newGrandChildren = new List<LeafCellTreeNode>(child.Children.Count); 320for (int i = 1; i < nodes.Count; i++) 571Debug.Assert(bools1.Count == bools2.Count); 577for (int i = 0; i < bools1.Count; i++)
System\Data\Mapping\ViewGeneration\CqlGeneration\JoinCqlBlock.cs (1)
196for (int i = 1; i < m_singleClauses.Count; ++i)
System\Data\Mapping\ViewGeneration\DiscriminatorMap.cs (1)
150int valueCount = typeMap.Count;
System\Data\Mapping\ViewGeneration\QueryRewriting\QueryRewriter.cs (7)
99Debug.Assert(_views.Count > 0); 138TraceVerbose("Used {0} views of {1} total for rewriting", _usedViews.Count, _views.Count); 357Debug.Assert(caseStatement.Clauses.Count == 0); 440if (nonConditionalAttributes.Count > 0 && 446Debug.Assert(nonConditionalAttributes.Count > 0, "Must have caught key-only case earlier"); 515!(domain.Count == 2 && 592if (caseStatement.Clauses.Count > 0)
System\Data\Mapping\ViewGeneration\QueryRewriting\RewritingProcessor.cs (2)
219for (int i = 0; i < output.Count; i++) 221int j = rnd.Next(output.Count);
System\Data\Mapping\ViewGeneration\QueryRewriting\RewritingValidator.cs (7)
201for (int i = 0; i < domain.Count; i++) 213if (i < domain.Count - 1) 224if (complementElse && domain.Count > 1) 226Constant lastDomainValue = domain[domain.Count - 1]; 420return node.Children.Count == 0 ? _topLevelTree : node; 444switch (disjunctionNode.Children.Count) 528if (collidingColumns.Count > 0)
System\Data\Mapping\ViewGeneration\Structures\BoolExpression.cs (2)
100Debug.Assert(childList.Count > 0); 120Debug.Assert(childList.Count == 1);
System\Data\Mapping\ViewGeneration\Structures\CaseStatement.cs (6)
205if (eliminatedNullClauses && clauses.Count == 0) 212if (clauses.Count > 0 && false == eliminatedNullClauses) 215int lastIndex = clauses.Count - 1; 229if (this.Clauses.Count == 0) 278if (this.Clauses.Count > 0) 339if (relatedEntityRefs.Count > 0)
System\Data\Mapping\ViewGeneration\Structures\CellQuery.cs (11)
153get { return m_boolExprs.Count; } 472Debug.Assert(entitySetKeys.Count == 1, "Currently, we only support primary keys"); 489Debug.Assert(endKeys.Count == 1, "Currently, we only support primary keys"); 494for (int i = 0; i < prefixes.Count; i++) 596if (slotIndexes.Count == 0) 600Debug.Assert(slotIndexes.Count == 1, "Expecting the path to be projected only once"); 636if (slotIndexes.Count == 0) 641if (slotIndexes.Count > 1) 643for (int i = 0; i < slotIndexes.Count; i++) 708if (atoms.Count > 0) 861if (m_boolExprs.Count > 0)
System\Data\Mapping\ViewGeneration\Structures\CellTreeNodeVisitors.cs (4)
138Debug.Assert(flattenedChildren.Count >= 1, "node must have more than 1 child and be an OpCellTreeNode"); 140if (flattenedChildren.Count == 1) 145Debug.Assert(flattenedChildren.Count > 1, "Opnode has 0 children?"); 192Debug.Assert(flattenedChildren.Count > 1, "node must have more than 1 child and be an OpCellTreeNode");
System\Data\Mapping\ViewGeneration\Structures\ErrorLog.cs (4)
39get { return m_log.Count; } 137Debug.Assert(m_sourceCells.Count > 0, "Error record must have at least one cell"); 213if (sourceCells.Count > 1) 224if (sourceCells.Count > 1)
System\Data\Mapping\ViewGeneration\Structures\MemberPath.cs (20)
82get { return m_path.Count > 0 ? m_path[0] : null; } 90get { return m_path.Count > 0 ? m_path[m_path.Count - 1] : null; } 100if (m_path.Count == 0) 118if (m_path.Count == 0) 136if (m_path.Count == 0) 156if (m_path.Count == 0) 171if (m_path.Count == 0) 187if (m_path.Count == 0) 191else if (m_path.Count == 1) 220if (m_path.Count > 0) 260if (m_path.Count == 0) 269for (int i = 0; i < m_path.Count - 1; i++) 362if (path.m_path.Count == 0) 776if (m_path.Count == 0) 808if (m_path.Count == 0) 823for (int i = 0; i < m_path.Count; i++) 862if (left.m_extent.Equals(right.m_extent) == false || left.m_path.Count != right.m_path.Count) 867for (int i = 0; i < left.m_path.Count; i++)
System\Data\Mapping\ViewGeneration\Structures\MemberProjectedSlot.cs (2)
150Debug.Assert(keys.Count > 0, "No keys for entity?"); 151Debug.Assert(keys.Count == 1, "Currently, we only support primary keys");
System\Data\Mapping\ViewGeneration\Structures\MemberProjectionIndex.cs (1)
56get { return m_members.Count; }
System\Data\Mapping\ViewGeneration\Structures\OpCellTreeNode.cs (15)
116Debug.Assert(m_children.Count > 1, "No children for op node?"); 125Debug.Assert(m_children.Count > 1, "No children for op node?"); 163Insert(m_children.Count, child); 271if (additionalChildSlots.Count != 0) 275SlotInfo[] childSlots = new SlotInfo[totalSlots + additionalChildSlots.Count]; 299SlotInfo[] slotInfos = new SlotInfo[totalSlots + additionalChildSlots.Count]; 313for (int slotNum = totalSlots; slotNum < totalSlots + additionalChildSlots.Count; slotNum++) 365SlotInfo[] slotInfos = new SlotInfo[totalSlots + additionalChildSlots.Count]; 374for (int i = 0, slotNum = totalSlots; slotNum < totalSlots + additionalChildSlots.Count; slotNum++, i++) 383for (int i = 1; i < children.Count; i++) 434for (int childNum = 0; childNum < children.Count; childNum++) 486if (caseForOuterJoins != null && (caseForOuterJoins.Clauses.Count > 0 || caseForOuterJoins.ElseValue != null)) 530for (int i = 0; i < children.Count; i++) 646for (int i = 0; i < m_children.Count; i++) 650if (i != m_children.Count - 1)
System\Data\Mapping\ViewGeneration\Validation\BasicCellRelation.cs (3)
35Debug.Assert(m_slots.Count > 0, "Cell relation with not even an exent?"); 109Debug.Assert(keys.Count > 0, "No keys for entity?"); 110Debug.Assert(keys.Count == 1, "Currently, we only support primary keys");
System\Data\Mapping\ViewGeneration\Validation\ErrorPatternMatcher.cs (1)
289if (projectPositions.Count != 1)
System\Data\Mapping\ViewGeneration\Validation\ForeignConstraint.cs (11)
321Debug.Assert(errorListForInvalidParentColumnsForForeignKey != null && errorListForInvalidParentColumnsForForeignKey.Count > 0); 373if ((childPropertiesSet.Count != 0) && (parentPropertiesSet.Count != 0)) 675if (allChildSlotNums.Count == 0) 689childPaths = new List<MemberPath>(childSlotNums.Count); 701if (allParentSlotNums.Count == 0) 713parentPaths = new List<MemberPath>(parentSlotNums.Count); 727if (childPaths.Count == parentPaths.Count) 730for (int i = 0; i < childPaths.Count && !notAllPathsMatched; i++) 803Debug.Assert(endSlots.Count > 0);
System\Data\Mapping\ViewGeneration\ViewgenContext.cs (3)
295Debug.Assert(alignedCells.Count == extentCellsList.Count, "Cell counts disagree"); 300for (int i = 0; i < alignedCells.Count; i++)
System\Data\Mapping\ViewGeneration\ViewGenerator.cs (2)
433queryRewriter.UsedCells.Count, 463int numBoolVars = usedCells.Count;
System\Data\Mapping\ViewGeneration\ViewgenGatekeeper.cs (2)
163Debug.Assert(cells.Count > 0, "There must be at least one cell in the container mapping"); 256if (missingExtents.Count > 0)
System\Data\Metadata\CacheForPrimitiveTypes.cs (2)
77if ((null != primitiveTypes) && (0 < primitiveTypes.Count)) 79if (primitiveTypes.Count == 1)
System\Data\Metadata\Converter.cs (1)
592if (element.OtherContent.Count > 0)
System\Data\Metadata\Edm\ItemCollection.cs (1)
370if (caseSensitiveFunctionOverloads.Count != functionOverloads.Count)
System\Data\Metadata\Edm\MetadataCollection.cs (11)
133return _collectionData.OrderedList.Count; 322int listCount = collectionData.OrderedList.Count; 345collectionData.IdentityDictionary = new Dictionary<string, OrderedIndex>(collectionData.OrderedList.Count + 1, StringComparer.OrdinalIgnoreCase); 346for (int i = 0; i < collectionData.OrderedList.Count; ++i) 380CollectionData newData = new CollectionData(originalData, items.Count); 520for(int i = 0; i < collectionData.OrderedList.Count; ++i) 534for (int i = 0; i < collectionData.OrderedList.Count; ++i) 582if (_collectionData.OrderedList.Count > array.Length - arrayIndex) 622for (int i = 0; i < _collectionData.OrderedList.Count; i++) 698this.OrderedList = new List<T>(original.OrderedList.Count + additionalCapacity); 717for (int i = 0; i < this.OrderedList.Count; ++i)
System\Data\Metadata\MetadataArtifactLoaderCompositeResource.cs (1)
182if (resourceName != null && loaders.Count == 0)
System\Data\Metadata\MetadataCache.cs (7)
168if (dataDirPaths.Count > 0) 212if (objectToLock == _storeLevelLock && _metadataEntriesRemovedFromCache.Count != 0) 215for (int i = _metadataEntriesRemovedFromCache.Count - 1; 0 <= i; i--) 244for (int i = 0; i < keysForRemoval.Count; i++) 649if (permissionPaths.Count > 0) 744if (permissionPaths.Count > 0) 855if ((loader.GetPaths(DataSpace.SSpace) == null) || (loader.GetPaths(DataSpace.SSpace).Count == 0))
System\Data\Metadata\ObjectItemCollection.cs (2)
249if (errors.Count != 0) 351if (errors.Count != 0)
System\Data\Metadata\ObjectLayer\AssemblyCache.cs (2)
55if (loadingData.EdmItemErrors.Count == 0) 63if (loadingData.EdmItemErrors.Count == 0)
System\Data\Metadata\ObjectLayer\ObjectItemAttributeAssemblyLoader.cs (3)
140Debug.Assert(SessionData.EdmItemErrors.Count > 0 || // had an error during loading 190if (_referenceResolutions.Count != 0) 195if (_unresolvedNavigationProperties.Count != 0)
System\Data\Metadata\StoreItemCollection.cs (1)
213if (throwOnError && errorList.Count != 0)
System\Data\Metadata\TypeHelpers.cs (1)
423if (resultCols.Count < 1)
System\Data\Metadata\TypeSemantics.cs (1)
1169if (0 == commonTypes.Count)
System\Data\Objects\DataClasses\EntityCollection.cs (1)
708if (list.Count > 0)
System\Data\Objects\DataClasses\EntityReference_TResultType.cs (2)
183if (null == refreshedValue || refreshedValue.Count == 0) 203else if (refreshedValue.Count == 1)
System\Data\Objects\DataClasses\RelatedEnd.cs (2)
869Debug.Assert(collection.Count == 1, "Dependant should attach to single principal"); 1967if (fireEvent = (null != deletedEntities) && (deletedEntities.Count > 0))
System\Data\Objects\ELinq\ExpressionConverter.cs (3)
1574List<DbExpression> propertyValues = new List<DbExpression>(columns.Count); 1575List<EdmProperty> properties = new List<EdmProperty>(columns.Count); 1576for (int i = 0; i < columns.Count; i++)
System\Data\Objects\ELinq\InitializerFacet.cs (2)
222Debug.Assert(propertyTranslatorResults.Count == 2); 471Debug.Assert(propertyTranslatorResults.Count > 1, "no properties?");
System\Data\Objects\ELinq\Translator.cs (1)
848if (0 == recordColumns.Count)
System\Data\Objects\Internal\EntityProxyFactory.cs (7)
969if (_baseGetters.Count > 0) 973if (_baseSetters.Count > 0) 987Label[] labels = new Label[_baseGetters.Count]; 989for (int i = 0; i < _baseGetters.Count; i++) 1010Label[] labels = new Label[_baseSetters.Count]; 1012for (int i = 0; i < _baseSetters.Count; i++) 1158if (_collectionProperties.Count > 0)
System\Data\Objects\Internal\ObjectFullSpanRewriter.cs (2)
56Debug.Assert(span.SpanList.Count > 0, "At least one span path is required"); 135if (pos < navPropNames.Count - 1)
System\Data\Objects\Internal\ObjectSpanRewriter.cs (2)
59if (span != null && span.SpanList.Count > 0) 248int idx = tracking.ColumnDefinitions.Count + 1;
System\Data\Objects\ObjectContext.cs (2)
2084while (refreshedCount < setKeys.Count) 2205int batchSize = Math.Min(maxBatch, (targetKeys.Count - startFrom));
System\Data\Objects\ObjectParameterCollection.cs (6)
99return this._parameters.Count; 385if(this._parameters.Count > 0) 388if (1 == this._parameters.Count) 397StringBuilder keyBuilder = new StringBuilder(this._parameters.Count * 20); 399keyBuilder.Append(this._parameters.Count); 400for (int idx = 0; idx < this._parameters.Count; idx++)
System\Data\Objects\ObjectViewEntityCollectionData.cs (3)
127return _bindingList.Count - 1; 150if (0 < _bindingList.Count) 221changeArgs = new ListChangedEventArgs(ListChangedType.ItemAdded, _bindingList.Count - 1 /* newIndex*/, -1 /* oldIndex*/);
System\Data\Objects\ObjectViewQueryResultData.cs (3)
165return _bindingList.Count - 1; 180while (0 < _bindingList.Count) 182TElement entity = _bindingList[_bindingList.Count - 1];
System\Data\Objects\Span.cs (12)
105if (_spanList.Count > 0) 110if (_spanList.Count == 1 && 111_spanList[0].Navigations.Count == 1) 118for (int pathIdx = 0; pathIdx < _spanList.Count; pathIdx++) 127for (int propIdx = 1; propIdx < thisPath.Navigations.Count; propIdx++) 193for (int i = 0; i < _spanList.Count; i++) 207for (int i = 0; i < _spanList.Count; i++) 238if (Navigations.Count > rhs.Navigations.Count) 243for (int i = 0; i < Navigations.Count; i++) 259for (int i = navigations.Count - 1; i >= 0; i--) 271Debug.Assert(navigations.Count > 0, "Empty path found");
System\Data\Query\InternalTrees\ColumnMapFactory.cs (4)
165MemberInfo[] members = new MemberInfo[memberInfo.Count]; 166MemberBinding[] memberBindings = new MemberBinding[memberInfo.Count]; 167ColumnMap[] propertyMaps = new ColumnMap[memberInfo.Count]; 168EdmProperty[] modelProperties = new EdmProperty[memberInfo.Count];
System\Data\Query\InternalTrees\Command.cs (2)
298return m_tables.Count; 400return m_vars.Count;
System\Data\Query\InternalTrees\Dump.cs (5)
176if (n.Children.Count > 2) { 193while (i < n.Children.Count) { 194if ((i + 1) < n.Children.Count) { 328if (0 != ci.FlattenedElementVars.Count) { 334if (0 != ci.SortKeys.Count) {
System\Data\Query\InternalTrees\NodeInfo.cs (2)
762for (int i = 2; i < n.Children.Count; i++) 1062for (int i = 0; i < n.Children.Count; i++)
System\Data\Query\InternalTrees\Nodes.cs (7)
83internal bool HasChild0 { get { return m_children.Count > 0; } } 92internal bool HasChild1 { get { return m_children.Count > 1; } } 105internal bool HasChild2 { get { return m_children.Count > 2; } } 109internal bool HasChild3 { get { return m_children.Count > 3; } } 119if (this.Children.Count != other.Children.Count) 128for (int i = 0; i < this.Children.Count; i++)
System\Data\Query\InternalTrees\OpCopier.cs (1)
155for (int i = 0; i < oldTable.Columns.Count; i++)
System\Data\Query\InternalTrees\Rule.cs (3)
167if (pattern.Children.Count != original.Children.Count) 169for (int i = 0; i < pattern.Children.Count; i++)
System\Data\Query\InternalTrees\RuleProcessor.cs (1)
124for (int i = 0; i < subTreeRoot.Children.Count; i++)
System\Data\Query\InternalTrees\ScalarOps.cs (1)
1206for (int i = 0; i < m_fields.Count; i++)
System\Data\Query\InternalTrees\Visitors.cs (5)
44for (int i = n.Children.Count - 1; i >= 0; i--) 777for (int i = 0; i < n.Children.Count; i++) 789for (int i = n.Children.Count - 1; i >= 0; i--) 1659for (int i = 0; i < n.Children.Count; i++) 1671for (int i = n.Children.Count - 1; i >= 0; i--)
System\Data\Query\PlanCompiler\AggregatePushdown.cs (6)
479PlanCompiler.Assert(physicalProjectOp.Outputs.Count == 1, "PhysicalProject should only have one output at this stage"); 572List<Node> newChildren = new List<Node>(n.Children.Count); 574for (int i = 0; i < n.Children.Count; i++) 694for (int i = 0; i < definingNode.Children.Count; i++) 743PlanCompiler.Assert(op.Table.Columns.Count == 1, "Expected one column before NTE"); 765PlanCompiler.Assert(n.Children.Count == 1, "Aggregate Function must have one argument");
System\Data\Query\PlanCompiler\CodeGen.cs (1)
102columnCount = projectOp.Outputs.Count;
System\Data\Query\PlanCompiler\ColumnMapProcessor.cs (1)
56PlanCompiler.Assert(varInfo.NewVars != null && varInfo.NewVars.Count > 0, "No new Vars specified");
System\Data\Query\PlanCompiler\CTreeGenerator.cs (11)
647PlanCompiler.Assert(2 == n.Children.Count, string.Format(CultureInfo.InvariantCulture, "Non-Binary {0} encountered", n.Op.GetType().Name)); 652PlanCompiler.Assert(n.Children.Count > index, "VisitChild called with invalid index"); 804int caseCount = n.Children.Count; 813if(0 == n.Children.Count % 2) 824elseExpr = VisitChild(n, n.Children.Count - 1); 1257for (int idx = 0; idx < targetTable.Columns.Count; idx++) 1451if (n.Children.Count > 1) 1464if (n.Children.Count > 1) 1593if (op.Keys.Count == 0) 1883if (joinNode.Children.Count > 2) 2340PlanCompiler.Assert(n.Children.Count == 1, "more than one input to physicalProjectOp?");
System\Data\Query\PlanCompiler\ITreeGenerator.cs (10)
178if (sourceNode.Children.Count > 0) 692PlanCompiler.Assert(unnest.Table.Columns.Count == 1, "Unnest of collection ScalarOp produced unexpected number of columns (1 expected)"); 2312for (int scopeCount = 0; scopeCount < inputNodes.Count; scopeCount++) 2325for (int scopeCount = 0; scopeCount < inputNodes.Count; scopeCount++) 2674if (keyVarDefNodes.Count > 0) 2691for (int i = 0; i < keyVarDefNodes.Count; i++) 2709PlanCompiler.Assert(flattentedKeys.Count == copyFlattenedKeys.Count, "The flattened keys lists should have the same nubmer of elements"); 2713for(int j = 0; j< flattentedKeys.Count; j++) 2823PlanCompiler.Assert(sortKeys.Count == 0, "Non-empty SortKey list before adding converted SortClauses");
System\Data\Query\PlanCompiler\JoinGraph.cs (42)
371PlanCompiler.Assert(m_leftVars.Count == m_rightVars.Count, "Count mismatch: " + m_leftVars.Count + "," + m_rightVars.Count); 692augmentedNode = new AugmentedTableNode(m_vertexes.Count, node); 707augmentedNode = new AugmentedJoinNode(m_vertexes.Count, node, left, right, leftVars, rightVars, otherPredicate); 717augmentedNode = new AugmentedJoinNode(m_vertexes.Count, node, children); 722augmentedNode = new AugmentedNode(m_vertexes.Count, node); 891joinNode.LeftVars.Count == 0) 907for (int i = 0; i < joinNode.LeftVars.Count; i++) 1017if (edge1.JoinKind == JoinKind.LeftOuter && edge1.RightVars.Count != edge2.LeftVars.Count) 1097List<KeyValuePair<ColumnVar, ColumnVar>> edgeVars = new List<KeyValuePair<ColumnVar, ColumnVar>>(keyVars.Count); 1098for (int i = 0; i < keyVars.Count; i++) 1133foreach (AugmentedJoinNode augmentedJoinNode in m_vertexes.OfType<AugmentedJoinNode>().Where(j => j.Node.Op.OpType == OpType.LeftOuterJoin && j.JoinEdges.Count > 0)) 1142List<JoinEdge> newJoinEdges = new List<JoinEdge>(augmentedJoinNode.JoinEdges.Count); 1152for (int i = 1; i < joinEdge.LeftVars.Count; i++) 1269PlanCompiler.Assert(fkConstraints != null && fkConstraints.Count > 0, "invalid fk constraints?"); 1275if (fkConstraint.ParentKeys.Count == joinEdge.RightVars.Count && 1305while (i < tableNode.JoinEdges.Count) 1310while (j < rightTable.JoinEdges.Count) 1486PlanCompiler.Assert(tableVars.Count == replacementVars.Count, "var count mismatch"); 1487PlanCompiler.Assert(tableVars.Count > 0, "no vars in the table ?"); 1503for (int i = 0; i < tableVars.Count; i++) 1642foreach (List<JoinEdge> joinList in compatibleGroups.Where(l => l.Count > 1)) 1681if (edge2.LeftVars.Count != edge1.LeftVars.Count || 1688for (int j = 0; j < edge2.LeftVars.Count; j++) 1766if (kv.Value.Count <= 1) 1795for (int i = 0; i < joinEdge.LeftVars.Count; i++) 2041return TryEliminateRightTable(joinEdge, fkConstraint.ChildKeys.Count, fkConstraint.ChildMultiplicity == md.RelationshipMultiplicity.One); 2057childForeignKeyVars = new List<ColumnVar>(fkConstraint.ChildKeys.Count); 2154return TryEliminateRightTable(joinEdge, fkConstraint.ParentKeys.Count, true); 2178if ((!allowRefsForJoinedOnFkOnly || joinEdge.RightVars.Count != fkConstraintKeyCount) && RightTableHasKeyReferences(joinEdge)) 2206PlanCompiler.Assert(fkConstraints != null && fkConstraints.Count > 0, "invalid fk constraints?"); 2226PlanCompiler.Assert(fkConstraints != null && fkConstraints.Count > 0, "invalid fk constraints?"); 2417for (int i = 0; i < joinNode.LeftVars.Count; i++) 2474if (newChildren.Count == 0) 2478else if (newChildren.Count == 1) 2812while ((subree.Id < nodeId) && (i < root.Children.Count))
System\Data\Query\PlanCompiler\KeyPullup.cs (5)
234VarVec[] keyVarsMissingFromOutput = new VarVec[n.Children.Count]; 236for (int i = 0; i < n.Children.Count; i++) 277for (int i = 0; i < n.Children.Count; i++) 327for (int j = 0; j < allKeyVarsMissingFromOutput.Count; j++) 357PlanCompiler.Assert(varDefNodes.Count != 0, "no new nodes?");
System\Data\Query\PlanCompiler\NestPullup.cs (28)
511for (int i = 1; i < chi.Children.Count; i++) 520for (int i = 1; i < chi.Children.Count; i++) 725PlanCompiler.Assert(n.HasChild3 && n.Child3.Children.Count > 0, "GroupByIntoOp with no group aggregates?"); 922for (int i = 1; i < nestedNestNode.Children.Count; i++) 935for (int i = 1; i < nestNode.Children.Count; i++) 1036if (0 == collectionNodes.Count) 1077if (definedVars.Count == 0 && referencedVars.Count == 0) 1126for (int j = 1; j < projectNode.Child0.Children.Count; j++) 1404for (int i = 1; i < nestNode.Children.Count; i++) 1416List<Node> newProjectOpChildren = new List<Node>(projectNode.Child1.Children.Count); 1428if (0 != newCollectionInfoList.Count) 1436PlanCompiler.Assert(newProjectOpChildren.Count == 0, "outputs is empty with non-zero count of children?"); 1452if (0 == newCollectionInfoList.Count) 1467for (int i = 1; i < newNestNodeChildren.Count; i++) 1621if (inputNestOp.PrefixSortKeys.Count == 0) 1927PlanCompiler.Assert(n.Children.Count == 1, "multiple inputs to physicalProject?"); 2002if (sortKeyList.Count > 0) 2126for (int i = 1; i < nestNode.Children.Count; i++) 2262for (int i = 1; i < nestNode.Children.Count; i++) 2364for (int i = 1; i < nestNode.Children.Count; i++) 2482for (int i = 1; i < nestNode.Children.Count; i++) 2501for (int j = 0; j < drivingNodeVars.Count; j++) 2543for (int j = 1; j < nestNode.Children.Count; j++) 2584for (int idx = 0; idx < unionAllOutputs.Count; idx++) 2611for (int i = 0; i < nestNode.Children.Count; i++) 2711for (int i = 0; i < newOp.CollectionInfo.Count; i++) 2779for (int i = 0; i < n.Children.Count; i++)
System\Data\Query\PlanCompiler\NominalTypeEliminator.cs (33)
974PlanCompiler.Assert(typeInfo.RootType.FlattenedType.Properties.Count == varInfo.NewVars.Count, 975"Var count mismatch; Expected " + typeInfo.RootType.FlattenedType.Properties.Count + "; got " + varInfo.NewVars.Count + " instead."); 1210return (tableOp.Table.Columns.Count == 1) ? tableOp.Table.Columns[0] : null; 1230return unnestOp.Table.Columns.Count == 1 ? unnestOp.Table.Columns[0] : null; 1261PlanCompiler.Assert(op.Table.Columns.Count == 1, "table for scanViewOp has more than on column?"); 1348PlanCompiler.Assert(newChildren.Count == 1, "Flattening unnest var produced more than one Var."); 1746int outputPropertyCount = newOp.Properties.Count; 1750int inputPropertyCount = n.Child0.Children.Count; 1875PlanCompiler.Assert(n.Children.Count == 0, "Constant operations don't have children."); 2066for (int i = 0; i < n.Children.Count - 1; ) 2076Node elseNode = BuildAccessorWithNulls(n.Children[n.Children.Count - 1], property); 2150PlanCompiler.Assert((properties1.Count == properties2.Count) && (values1.Count == values2.Count), "different shaped structured types?"); 2154for (int i = 0; i < values1.Count; i++) 2216PlanCompiler.Assert(properties.Count == values.Count && properties.Count > 0, "No properties returned from GetPropertyValues(IsNull)?"); 2316PlanCompiler.Assert(inputFieldValues.Count == outputFieldTypes.Count, "fieldTypes.Count mismatch?"); 2456PlanCompiler.Assert(outputFields.Count == inputFields.Count, "Mismatched field count: Expected " + inputFields.Count + "; Got " + outputFields.Count); 2461PlanCompiler.Assert(outputFields.Count == inputFields.Count + 1, "Mismatched field count: Expected " + (inputFields.Count + 1) + "; Got " + outputFields.Count); 2475PlanCompiler.Assert(outputFields.Count == inputFields.Count, "Mismatched field count: Expected " + inputFields.Count + "; Got " + outputFields.Count);
System\Data\Query\PlanCompiler\PlanCompilerUtil.cs (2)
44if (n.Children.Count != 3) 81return ((n.Children.Count == 1) &&
System\Data\Query\PlanCompiler\Predicate.cs (1)
306for (int i = 0; i < tableDefinitions.Count; i++)
System\Data\Query\PlanCompiler\PreProcessor.cs (28)
498if (relationshipSets.Count == 0) 627if (targetEntitySets.Count == 0) 838PlanCompiler.Assert(relationshipSets.Count > 0, "expected at least one relationshipset here"); 843List<Node> scanTableNodes = new List<Node>(relationshipSets.Count); 844List<Var> scanTableVars = new List<Var>(relationshipSets.Count); 908PlanCompiler.Assert(relationshipSets.Count > 0, "expected at least one relationshipset here"); 915List<Node> joinNodes = new List<Node>(relationshipSets.Count); 916List<Var> outputVars = new List<Var>(relationshipSets.Count * 2); 991if (relationshipSets.Count == 0) 1611PlanCompiler.Assert(n.Children.Count > pos, "invalid position " + pos + "; total count = " + n.Children.Count); 1663PlanCompiler.Assert(scanTableOp.Table.Columns.Count == 1, 1664"Unexpected column count for table:" + scanTableOp.Table.TableMetadata.Extent + "=" + scanTableOp.Table.Columns.Count); 1753op.RelationshipProperties.Count == 0, 1776int j = op.RelationshipProperties.Count - 1; 1778for (int i = n.Children.Count - 1; i >= entityType.Properties.Count; i--, j--) 1801for (int i = entityType.Properties.Count; i < n.Children.Count; i++, j++) 1861int firstRelPropertyNodeOffset = n.Children.Count - op.RelationshipProperties.Count; 1870for (int i = firstRelPropertyNodeOffset, j = 0; i < n.Children.Count; i++, j++) 1955else if (n.Children.Count == 1 || AreAllConstantsOrNulls(n.Children)) 1986for (int i = 0; i < n.Children.Count; i++) 2001List<Node> caseArgNodes = new List<Node>(n.Children.Count * 2 + 1); 2002for (int i = 0; i < n.Children.Count; i++) 2005if (i != (n.Children.Count - 1)) 2279if (scanTableOp == null || scanTableOp.Table.Columns.Count != 1) 2348if (sort.Keys.Count > 0) 2354for (int i = 1; i < n.Child0.Children.Count; i++)
System\Data\Query\PlanCompiler\ProjectionPruner.cs (2)
485for (int i = n.Children.Count - 1; i >= 2; i--) 569if (result.Op.OpType == OpType.GroupByInto && n.Child3.Children.Count == 0)
System\Data\Query\PlanCompiler\PropertyPushdownHelper.cs (3)
317for (int i = 1; i < n.Children.Count - 1; i += 2) 322AddPropertyRefs(n.Children[n.Children.Count - 1], pdProps.Clone()); 704PlanCompiler.Assert(op.Table.Columns.Count == 1, "ScanViewOp with multiple columns?");
System\Data\Query\PlanCompiler\StructuredTypeInfo.cs (2)
648return typeInfo.ImmediateSubTypes.Count > 0 && !md.TypeSemantics.IsReferenceType(typeInfo.Type); 950type.ImmediateSubTypes.Count == 0)
System\Data\Query\PlanCompiler\SubqueryTrackingVisitor.cs (3)
124for (int i = 0; i < n.Children.Count; i++) 163for (int i = subqueriesStartPos; i < subqueries.Count; i++) 203if (m_nodeSubqueries.TryGetValue(n, out nestedSubqueries) && nestedSubqueries.Count > 0)
System\Data\Query\PlanCompiler\TransformationRules.cs (20)
108for (int i = 0; i < node.Children.Count; i++) 881Node elseNode = caseOpNode.Children[caseOpNode.Children.Count - 1]; 886for (int i = 3; i < caseOpNode.Children.Count - 1; i += 2) 919for (int i = 0; i < caseOpNode.Children.Count; ) 922if (i == caseOpNode.Children.Count - 1) 998PlanCompiler.Assert(newNodeArgs.Count > 0, "new args list must not be empty"); 1000if (newNodeArgs.Count == 1) 1038Node elseChild = caseOpNode.Children[caseOpNode.Children.Count - 1]; 1051caseOpNode.Children.RemoveAt(caseOpNode.Children.Count - 1); 2225if (n.Child1.Children.Count == 0) 2360for (int i = n.Child1.Children.Count-1; i >= 0; i--) 2719varDefListNode.Children.Count == 1 && 3133return op.Table.Columns.Count; 3239for (int i = 0; i < op.Table.Columns.Count; i++) 3883if (n.Child1.Children.Count == 0) 3985if (keys.Children.Count > 0) 4003for (int i = 0; i < projectNodeVarDefList.Children.Count; i++) 4026Dictionary<Var, Node> varToDefiningNode = new Dictionary<Var, Node>(projectNodeVarDefList.Children.Count); 4027for (int j = 0; j < projectNodeVarDefList.Children.Count; j++) 4233rootOp.Outputs.Count > 1)
System\Data\Query\PlanCompiler\TypeInfo.cs (1)
590for (int i = 0; i < m_propertyRefList.Count; i++)
System\Data\Query\PlanCompiler\VarInfo.cs (2)
130PlanCompiler.Assert(newVars.Count == newTypeProperties.Count, "count mismatch");
System\Data\Query\PlanCompiler\VarRefManager.cs (2)
54for(int i=0; i< parent.Children.Count; i++) 88for (int i = m_nodeToSiblingNumber[currentChild] + 1; i < parent.Children.Count; i++)
System\Data\SqlClient\SqlGen\DmlSqlGenerator.cs (2)
492SqlParameter parameter = SqlProviderServices.CreateSqlParameter(s_parameterNames.GetName(_parameters.Count), type, ParameterMode.In, value, preventTruncation, _version); 543_memberValues[property] = _parameters[_parameters.Count - 1];
System\Data\SqlClient\SqlGen\JoinSymbol.cs (2)
92extentList = new List<Symbol>(extents.Count); 93nameToExtent = new Dictionary<string, Symbol>(extents.Count, StringComparer.OrdinalIgnoreCase);
System\Data\SqlClient\SqlGen\SqlBuilder.cs (1)
70get { return ((null == _sqlFragments) || (0 == _sqlFragments.Count)); }
System\Data\SqlClient\SqlGen\SqlGenerator.cs (8)
2509if (input.FromExtents.Count == 1) 2855if (result.FromExtents.Count == 0) 2860else if (result.FromExtents.Count == 1) 3065int fromSymbolStart = result.FromExtents.Count; 3227for (int i = fromSymbolStart; i < result.FromExtents.Count; ++i) 3231result.FromExtents.RemoveRange(fromSymbolStart, result.FromExtents.Count - fromSymbolStart); 3667if (selectStatement.FromExtents.Count == 0 || fromSymbol != selectStatement.FromExtents[0]) 3757Debug.Assert(oldStatement.FromExtents.Count == 1);
System\Data\SqlClient\SqlGen\SqlSelectClauseBuilder.cs (1)
73get { return (base.IsEmpty) && (this.m_optionalColumns == null || this.m_optionalColumns.Count == 0); }
System\Data\SqlClient\SqlGen\SymbolTable.cs (3)
47symbols.RemoveAt(symbols.Count - 1); 52symbols[symbols.Count - 1][name] = value; 57for (int i = symbols.Count - 1; i >= 0; --i)
System\Data\SqlClient\SqlProviderServices.cs (2)
139if (null != parameters && 0 < parameters.Count) { 1005if (databaseNames.Count > 0)
System.Data.Entity.Design (36)
System\Data\Entity\Design\Common\MetadataItemSerializer.cs (2)
80if(commentedOutItems.Count > 0) 401Debug.Assert(errors.Count > 0, "how did we get an empty errors collection?");
System\Data\Entity\Design\Common\OneToOneMappingSerializer.cs (5)
77Debug.Assert(index >= 0 && index < AssociationSets.Count, "out of bounds dude!!"); 78Debug.Assert(AssociationSets.Count == 2, "This code depends on only having exactly two AssociationSets"); 170if (_storeAssociationSets.Count != 2) 237Debug.Assert(_storeAssociationSets.Count == 2, "don't call this method if you don't have two associations"); 356for (int i = 0; i < collapsedAssociationSet.AssociationSets.Count; i++)
System\Data\Entity\Design\EntityModelSchemaGenerator.cs (3)
848for(int i = 0; i < collapsedAssociationSet.AssociationSets.Count; i++) 1121for (int i = 0; i < namespaceParts.Count - 1; i++) 1125modelNamespaceName += namespaceParts[namespaceParts.Count - 1];
System\Data\Entity\Design\EntityStoreSchemaGenerator.cs (11)
534if (parameters.Count != 0) 543Debug.Assert(parameters.Count != 0, "don't call the method with no data"); 633for (int i = 0; i < parameters.Count && !row.IsParameterNameNull; i++) 757Debug.Assert(columns.Count != 0, "should have at least one column"); 918if (entity.KeyMembers.Count != columns.Count) 1004EdmProperty[] fromProperties = new EdmProperty[columns.Count]; 1005EdmProperty[] toProperties = new EdmProperty[columns.Count]; 1008for (int index = 0; index < columns.Count; index++) 1110if (singleTableColumns.Count != 0) 1133if (singleTableColumns.Count != 0) 1483if (pKeys.Count > 0)
System\Data\Entity\Design\SSDLGenerator\EntityStoreSchemaGeneratorDatabaseSchemaLoader.cs (1)
193if (filters.Count == 0)
System\Data\EntityModel\Emitters\AttributeEmitter.cs (2)
166if (additionalAttributes != null && additionalAttributes.Count > 0) 269if (additionalAttributes != null && additionalAttributes.Count > 0)
System\Data\EntityModel\Emitters\ClientApiGenerator.cs (2)
110if (FixUps.Count == 0 || !FixUpCollection.IsLanguageSupported(Language)) 288if (null != schemaTypes && schemaTypes.Count > 0)
System\Data\EntityModel\Emitters\EntityContainerEmitter.cs (2)
352if (additionalAttributes != null && additionalAttributes.Count > 0) 371if (additionalGetStatements != null && additionalGetStatements.Count > 0)
System\Data\EntityModel\Emitters\NavigationPropertyEmitter.cs (2)
149if (additionalSetStatements != null && additionalSetStatements.Count > 0) 255if (additionalGetStatements != null && additionalGetStatements.Count > 0)
System\Data\EntityModel\Emitters\PropertyEmitter.cs (2)
200if (additionalGetStatements != null && additionalGetStatements.Count > 0) 319if (additionalSetStatements != null && additionalSetStatements.Count > 0)
System\Data\EntityModel\Emitters\SchemaTypeEmitter.cs (2)
72if (additionalAttributes != null && additionalAttributes.Count > 0) 128if (additionalMembers != null && additionalMembers.Count > 0)
System\Data\EntityModel\Emitters\StructuredTypeEmitter.cs (1)
160if (parameters.Count < 1)
System\Data\EntityModel\EntityClassGenerator.cs (1)
312Debug.Assert(readers.Count == schemas.Count, "We have a different number of readers than schemas");
System.Data.Linq (475)
ChangeConflicts.cs (1)
26get { return this.conflicts.Count; }
ChangeDirector.cs (5)
236if (membersToSync.Count > 0) { 251System.Diagnostics.Debug.Assert(membersToSync.Count > 0); 253Expression[] initializers = new Expression[membersToSync.Count]; 290System.Diagnostics.Debug.Assert(syncResults.Length == membersToSync.Count); 332if (membersToSync.Count > 0) {
ChangeProcessor.cs (4)
111if (conflicts.Count > 0 && failureMode == ConflictMode.FailOnFirstConflict) { 117if (conflicts.Count > 0) { 126throw CreateChangeConflictException(numUpdatesAttempted, conflicts.Count); 578var range = Enumerable.Range(0, objects.Count).ToList();
Mapping\MappedMetaModel.cs (6)
429if (typeMapping.InheritanceCode != null || typeMapping.DerivedTypes.Count > 0) { 1346if (map.Types.Count == 0 && this.method.ReturnType == typeof(IMultipleResults)) { 1349else if (map.Types.Count > 1 && this.method.ReturnType != typeof(IMultipleResults)) { 1352else if (map.Types.Count == 1 && this.method.ReturnType != typeof(IMultipleResults)) { 1356else if (map.Types.Count > 0) { 1379if (this.map.Parameters.Count != pis.Length) {
SqlClient\Common\SqlFactory.cs (3)
442if (values.Count == 0) { 451for (int i = 0, c = matches.Count; i < c; ++i) { 458for (int i = 0, c = matches.Count; i < c; ++i) {
SqlClient\Common\SqlNode.cs (5)
1157if (this.whens.Count == 0) 1202if (this.whens.Count == 0) 1246if (this.whens.Count == 0) 1326if (this.whens.Count == 0) 1710for (int i = 0, n = this.argMembers.Count; i < n; i++) {
SqlClient\Common\SqlVisitor.cs (25)
272for (int i = 0, n = rowNumber.OrderBy.Count; i < n; i++) { 323for (int i = 0, n = suq.Arguments.Count; i < n; i++) { 327for (int i = 0, n = suq.Columns.Count; i < n; i++) { 333for (int i = 0, n = spc.Arguments.Count; i < n; i++) { 337for (int i = 0, n = spc.Columns.Count; i < n; i++) { 349for (int i = 0, n = row.Columns.Count; i < n; i++) { 355for (int i = 0, n = sox.Args.Count; i < n; i++) { 358for (int i = 0, n = sox.Members.Count; i < n; i++) { 365for (int i = 0, n = link.KeyExpressions.Count; i < n; i++) { 371for (int i = 0, n = cq.Arguments.Count; i < n; i++) { 382for (int i = 0, n = scar.Expressions.Count; i < n; i++) { 440for (int i = 0, n = select.GroupBy.Count; i < n; i++) { 444for (int i = 0, n = select.OrderBy.Count; i < n; i++) { 464for (int i = 0, n = update.Assignments.Count; i < n; i++) { 483for (int i = 0, n = b.Statements.Count; i < n; i++) { 489for (int i = 0, n = c.Whens.Count; i < n; i++) { 499for (int i = 0, n = c.Whens.Count; i < n; i++) { 508for (int i = 0, n = c.Whens.Count; i < n; i++) { 517for (int i = 0, n = tc.Whens.Count; i < n; i++) { 530for (int i = 0, n = xs.Expressions.Count; i < n; i++) { 551for (int i = 0, n = sin.Values.Count; i < n; i++) { 563for (int i = 0, n = fc.Arguments.Count; i < n; i++) { 569for (int i = 0, n = fc.Arguments.Count; i < n; i++) { 576for (int i = 0, n = mc.Arguments.Count; i < n; i++) { 628for (int i = 0, n = set.Expressions.Count; i < n; i++) {
SqlClient\Query\ContainsRowNumberChecker.cs (1)
58for (int i = 0, n = row.Columns.Count; i < n; i++) {
SqlClient\Query\MethodCallConverter.cs (11)
47return !call.Method.IsStatic && call.Method.Name == "CompareTo" && call.Arguments.Count == 1 && call.Method.ReturnType == typeof(int); 51return call.Method.IsStatic && call.Method.Name == "Compare" && call.Arguments.Count > 1 && call.Method.ReturnType == typeof(int); 126return mc.Arguments.Count == 2; 132return mc.Method.Name == "Equals" && mc.Arguments.Count == 1 || 133mc.Method.Name == "GetType" && mc.Arguments.Count == 0; 215for (int i = 0, n = mc.Arguments.Count; i < n; i++) { 219if (mc.Method.Name == "Equals" && mc.Arguments.Count == 2) { 231if (exprs.Count == 0) { 242for (int i = 1; i < exprs.Count; i++) { 296if (mc.Method.Name == "Equals" && mc.Arguments.Count == 1) { 299else if (mc.Method.Name == "GetType" && mc.Arguments.Count == 0) {
SqlClient\Query\QueryConverter.cs (9)
261sel.OrderBy.Count > 0 || 262sel.GroupBy.Count > 0 || 1013for (int i = 0, n = sn.ArgMembers.Count; i < n; ++i) { 1494if (select.Selection.NodeType != SqlNodeType.AliasRef || select.OrderBy.Count > 0) { 1799if (list.Count == 0) { 1807for (int i = 1, n = list.Count; i < n; i++) { 2670if (mc.Arguments.Count==2 && mc.Method.Name=="op_Equality") { 2768if (this.IdentityMembers == null || this.IdentityMembers.Count == 0) { 2778if (this.IdentityMembers.Count == 1) {
SqlClient\Query\SqlBinder.cs (15)
144for (int i = 0, n = fc.Arguments.Count; i < n; i++) { 164for (int i = 0, n = mc.Arguments.Count; i < n; i++) { 450c.Whens.Count == 1 && c.Else != null) { 505if (reducedToNull == tc.Whens.Count) { 662for (int i = 0, n = sox.Args.Count; i < n; i++) { 673for (int i = 0, n = sox.Members.Count; i < n; i++) { 751List<SqlWhen> whens = new List<SqlWhen>(sc.Whens.Count); 1152(select.GroupBy.Count > 0 || this.aggregateChecker.HasAggregates(select) || select.IsDistinct)) { 1162for (int i = 0, n = select.GroupBy.Count; i < n; i++) { 1168for (int i = 0, n = select.OrderBy.Count; i < n; i++) { 1300for (int i = 0, c = fetchedValues.Count; i < c; ++i) { 1323for (int i = 0, c = fetchedValues.Count; i < c; ++i) { 1574if (sequences.Count == 1) { 1580int elseIndex = clientCase.Whens.Count - 1; 1583for (int i = 0; i < sequences.Count - elseCount; ++i) {
SqlClient\Query\SqlBooleanMismatchVisitor.cs (3)
27for (int i = 0, n = select.GroupBy.Count; i < n; i++) { 31for (int i = 0, n = select.OrderBy.Count; i < n; i++) { 79for (int i = 0, n = c.Whens.Count; i < n; i++) {
SqlClient\Query\SqlCaseSimplifier.cs (6)
92for (int i = 0, n = c.Whens.Count; i < n; i++) { 105for (int i = 0, n = c.Whens.Count; i < n; i++) { 119SqlExpression rewrite = TryToConsolidateAllValueExpressions(newWhens.Count, c.Whens[compareWhen].Value); 129rewrite = TryToWriteAsReducedCase(c.ClrType, c.Expression, newWhens, c.Whens[compareWhen].Match, c.Whens.Count); 183for (int i = 0; i < newWhens.Count; ++i) { 226if (newWhens.Count != originalWhenCount) {
SqlClient\Query\SqlColumnizer.cs (3)
96for (int i = 0, n = c.Whens.Count; i < n; i++) { 105for (int i = 0, n = tc.Whens.Count; i < n; i++) { 114for (int i = 0, n = c.Whens.Count; i < n; i++) {
SqlClient\Query\SqlComparer.cs (24)
36for (int i = 0, n = eset.Expressions.Count; i < n; i++) { 43for (int i = 0, n = eset.Expressions.Count; i < n; i++) { 133if (c1.Whens.Count != c2.Whens.Count) { 136for (int i = 0, c = c1.Whens.Count; i < c; ++i) { 150if (c1.Whens.Count != c2.Whens.Count) 152for (int i = 0, n = c1.Whens.Count; i < n; i++) { 162if (c1.Whens.Count != c2.Whens.Count) 164for (int i = 0, n = c1.Whens.Count; i < n; i++) { 179if (c1.Whens.Count != c2.Whens.Count) 181for (int i = 0, n = c1.Whens.Count; i < n; i++) { 205if (f1.Arguments.Count != f2.Arguments.Count) 207for (int i = 0, n = f1.Arguments.Count; i < n; i++) { 222if (l1.KeyExpressions.Count != l2.KeyExpressions.Count) { 225for (int i = 0, c = l1.KeyExpressions.Count; i < c; ++i) { 235if (es1.Expressions.Count != es2.Expressions.Count) 237for(int i = 0, n = es1.Expressions.Count; i < n; i++) { 290if (sc.Whens.Count != 1) {
SqlClient\Query\SqlDeflator.cs (17)
139for (int i = select.Row.Columns.Count - 1; i >= 0; i--) { 148&& !(select.GroupBy.Count == 0 && this.aggregateChecker.HasAggregates(c.Expression)); 159for (int i = select.OrderBy.Count - 1; i >= 0; i--) { 164for (int i = select.GroupBy.Count - 1; i >= 0; i--) { 188for (int i = 0, n = link.KeyExpressions.Count; i < n; i++) { 340if (select.OrderBy.Count != 0 || 341select.GroupBy.Count != 0 || 375return sel.Row.Columns.Count == 0 && 378sel.GroupBy.Count == 0 && 380sel.OrderBy.Count == 0; 392for (int i = 0, n = select.GroupBy.Count; i < n; i++) 397for (int i = select.GroupBy.Count - 1; i >= 0; i--) 409for (int i = 0, n = select.OrderBy.Count; i < n; i++) 414if (select.OrderBy.Count > 0) 418for (int i = select.OrderBy.Count - 1; i >= 0; i--) 461if (select.OrderBy.Count != 0 || 462select.GroupBy.Count != 0 ||
SqlClient\Query\SqlDuplicator.cs (24)
94for (int i = 0, n = cq.Arguments.Count; i < n; i++) { 97for (int i = 0, n = cq.Parameters.Count; i < n; i++) { 106SqlExpression[] exprs = new SqlExpression[scar.Expressions.Count]; 121SqlExpression[] args = new SqlExpression[sox.Args.Count]; 122SqlMemberAssign[] bindings = new SqlMemberAssign[sox.Members.Count]; 132SqlExpression[] exprs = new SqlExpression[link.KeyExpressions.Count]; 208if (select.GroupBy.Count > 0) { 209gex = new List<SqlExpression>(select.GroupBy.Count); 216if (select.OrderBy.Count > 0) { 217lex = new List<SqlOrderExpression>(select.OrderBy.Count); 252List<SqlExpression> args = new List<SqlExpression>(suq.Arguments.Count); 269List<SqlExpression> args = new List<SqlExpression>(spc.Arguments.Count); 298List<SqlAssign> assignments = new List<SqlAssign>(su.Assignments.Count); 309SqlWhen[] whens = new SqlWhen[c.Whens.Count]; 318SqlClientWhen[] whens = new SqlClientWhen[c.Whens.Count]; 327SqlWhen[] whens = new SqlWhen[c.Whens.Count]; 338SqlExpression[] exprs = new SqlExpression[xs.Expressions.Count]; 372for (int i = 0, n = nin.Values.Count; i < n; i++) { 387SqlExpression[] args = new SqlExpression[fc.Arguments.Count]; 388for (int i = 0, n = fc.Arguments.Count; i < n; i++) { 394SqlExpression[] args = new SqlExpression[fc.Arguments.Count]; 395for (int i = 0, n = fc.Arguments.Count; i < n; i++) { 406SqlExpression[] args = new SqlExpression[mc.Arguments.Count]; 407for (int i = 0, n = mc.Arguments.Count; i < n; i++) {
SqlClient\Query\SqlExpander.cs (37)
79SqlExpression[] exprs = new SqlExpression[link.KeyExpressions.Count]; 120SqlMethodCall[] mcs = new SqlMethodCall[exprs.Count]; 127for (int i = 0; i < mcs[0].Arguments.Count; ++i) { 139SqlClientCase[] scs = new SqlClientCase[exprs.Count]; 154for (int i = 0; i < scs[0].Whens.Count; ++i) { 167SqlTypeCase[] tcs = new SqlTypeCase[exprs.Count]; 185for (int i = 0; i < tcs[0].Whens.Count; ++i) { 199SqlNew[] cobs = new SqlNew[exprs.Count]; 201for (int i = 1, n = exprs.Count; i < n; i++) { 205if (cobs[i].Members.Count != cobs[0].Members.Count) 207for (int m = 0, mn = cobs[0].Members.Count; m < mn; m++) { 213SqlMemberAssign[] bindings = new SqlMemberAssign[cobs[0].Members.Count]; 216for (int i = 0, n = exprs.Count; i < n; i++) { 220for (int i = 0, n = exprs.Count; i < n; i++) { 224SqlExpression[] arguments = new SqlExpression[cobs[0].Args.Count]; 227for (int i = 0, n = exprs.Count; i < n; i++) { 235SqlLink[] links = new SqlLink[exprs.Count]; 237for (int i = 1, n = exprs.Count; i < n; i++) { 241if (links[i].KeyExpressions.Count != links[0].KeyExpressions.Count || 246SqlExpression[] kexprs = new SqlExpression[links[0].KeyExpressions.Count]; 248for (int k = 0, nk = links[0].KeyExpressions.Count; k < nk; k++) { 250for (int i = 0, n = exprs.Count; i < n; i++) { 254for (int i = 0, n = exprs.Count; i < n; i++) { 261for (int i = 0, n = exprs.Count; i < n; i++) { 265for (int i = 0, n = exprs.Count; i < n; i++) { 276for (int i = 1; i < exprs.Count; ++i) { 287List<SqlExpression> hvals = new List<SqlExpression>(exprs.Count); 288List<SqlExpression> vals = new List<SqlExpression>(exprs.Count); 289for (int i = 0, n = exprs.Count; i < n; i++) { 303List<SqlExpression> values = new List<SqlExpression>(exprs.Count); 304for (int i = 0, n = exprs.Count; i < n; i++) { 315List<SqlExpression> foos = new List<SqlExpression>(exprs.Count); 317for (int i = 1, n = exprs.Count; i < n; i++) { 341SqlExpression[] rexprs = new SqlExpression[exprs.Count]; 342for (int i = 0, n = exprs.Count; i < n; i++) {
SqlClient\Query\SqlFlattener.cs (3)
60if (select.GroupBy.Count > 0) { 64if (select.OrderBy.Count > 0) { 174List<SqlExpression> list = new List<SqlExpression>(exprs.Count);
SqlClient\Query\SqlFormatter.cs (33)
26List<string> results = new List<string>(block.Statements.Count); 27for (int i = 0, n = block.Statements.Count; i < n; i++) { 185for (int i = 0, n = rowNumber.OrderBy.Count; i < n; i++) { 239for (int i = 0, n = sin.Values.Count; i < n; i++) { 270for (int i = 0, n = fc.Arguments.Count; i < n; i++) { 530if (suq.Arguments.Count > 0) { 534object[] args = new object[suq.Arguments.Count]; 560System.Diagnostics.Debug.Assert(spc.Arguments.Count >= pc); 572if (spc.Arguments.Count > pc) { 661for (int i = 0, n = xs.Expressions.Count; i < n; i++) { 675for (int i = 0, n = row.Columns.Count; i < n; i++) { 706for (int i = 0, n = sox.Args.Count; i < n; i++) 715for (int i = 0, n = sox.Members.Count; i < n; i++) { 734for (int i = 0, n = scar.Expressions.Count; i < n; i++) { 796if (ss.Row.Columns.Count > 0) { 814if (ss.GroupBy.Count > 0) { 817for (int i = 0, n = ss.GroupBy.Count; i < n; i++) { 829if (ss.OrderBy.Count > 0 && ss.OrderingType != SqlOrderingType.Never) { 832for (int i = 0, n = ss.OrderBy.Count; i < n; i++) { 934for (int i = 0, n = block.Statements.Count; i < n; i++) { 952for (int i = 0, n = cq.Arguments.Count; i < n; i++) { 1005if (si.Row.Columns.Count != 0) { 1008for (int i = 0, n = si.Row.Columns.Count; i < n; i++) { 1022if (si.Row.Columns.Count == 0) { 1029if (this.isDebugMode && si.Row.Columns.Count == 0) { 1032for (int i = 0, n = si.Row.Columns.Count; i < n; i++) { 1064for (int i = 0, n = su.Assignments.Count; i < n; i++) { 1093for (int i = 0, n = c.Whens.Count; i < n; i++) { 1122for (int i = 0, n = c.Whens.Count; i < n; i++) { 1155for (int i = 0, n = c.Whens.Count; i < n; i++) { 1188for (int i = 0, n = c.Whens.Count; i < n; i++) { 1367for (int i = 0, n = link.KeyExpressions.Count; i < n; i++) { 1392for (int i = 0, n = mc.Arguments.Count; i < n; i++) {
SqlClient\Query\SqlLiftIndependentRowExpressions.cs (2)
44if (select.GroupBy.Count > 0 || this.aggregateChecker.HasAggregates(select)) { 68if (lift.Count > 0) {
SqlClient\Query\SqlLiftWhereClauses.cs (1)
46select.GroupBy.Count > 0 ||
SqlClient\Query\SqlMethodCallConverter.cs (121)
66return snew.Args.Count == 2 && snew.Args[0].ClrType == typeof(char) && snew.Args[1].ClrType == typeof(int); 71&& sox.Args.Count >= 3 75if (sox.Args.Count == 3) { 78if (sox.Args.Count >= 6 && 80if (sox.Args.Count == 6) { 83if ((sox.Args.Count == 7) && (sox.Args[6].ClrType == typeof(int))) { 92if (sox.Args.Count == 1) { 95else if (sox.Args.Count == 3) { 99if (sox.Args.Count == 4) { 102else if (sox.Args.Count == 5) { 195if (mc.Arguments.Count == 0) { 216if (mc.Method.Name.StartsWith("DateDiff", StringComparison.Ordinal) && mc.Arguments.Count == 2) { 219if (mc.Arguments.Count == 2) { 228if (mc.Arguments.Count == 2) { 231else if (mc.Arguments.Count == 3) { 257if (mc.Arguments.Count == 1 && mc.Arguments[0].ClrType == typeof(TimeSpan)) { 281if (mc.Arguments.Count == 1 && mc.Arguments[0].ClrType == typeof(TimeSpan)) { 307if (mc.Method.IsStatic && mc.Method.DeclaringType == typeof(Convert) && mc.Arguments.Count == 1) { 333if (mc.Arguments.Count == 2) { 344else if (mc.Arguments.Count == 1) { 374if (mc.Arguments.Count == 1) { 380if (mc.Arguments.Count == 1 381|| mc.Arguments.Count == 2 382|| mc.Arguments.Count == 3) { 387if (mc.Arguments.Count == 2) { 395if(mc.Arguments.Count == 1 396|| mc.Arguments.Count == 2) { 405if (mc.Arguments.Count == 0) { 411if (mc.Arguments.Count == 1) { 434if(mc.Arguments.Count == 1) { 439if (mc.Arguments.Count == 1 || mc.Arguments.Count == 2) { 448if (mc.Arguments.Count == 2) { 453if (mc.Arguments[mc.Arguments.Count - 1].ClrType == typeof(MidpointRounding) 454&& (mc.Arguments.Count == 2 || mc.Arguments.Count == 3)) { 465if (mc.Arguments.Count == 1) { 687for (int i = 0, n = tc.Whens.Count; i < n; i++) { 720if (sox.ClrType == typeof(string) && sox.Args.Count == 2 732if (sox.ClrType == typeof(DateTime) && sox.Args.Count >= 3 && 740if (sox.Args.Count == 3) { 744if (sox.Args.Count >= 6 && 755if (sox.Args.Count == 6) { 758if ((sox.Args.Count == 7) && (sox.Args[6].ClrType == typeof(int))) { 786if (sox.Args.Count == 1 && sox.Args[0].ClrType == typeof(DateTime)) { 793if (sox.Args.Count == 2 && sox.Args[0].ClrType == typeof(DateTime) && sox.Args[1].ClrType == typeof(TimeSpan)) { 804if (sox.Args.Count >= 7 && 830if (sox.Args.Count == 7 && sox.Args[6].ClrType == typeof(TimeSpan)) { 835else if (sox.Args.Count == 8 && sox.Args[6].ClrType == typeof(int) && sox.Args[7].ClrType == typeof(TimeSpan)) { 861if (sox.Args.Count == 1) { 864else if (sox.Args.Count == 3) { 884if (sox.Args.Count == 4) { 888else if (sox.Args.Count == 5) { 903for (int i = 0, n = mc.Arguments.Count; i < n; i++) { 912else if (mc.Method.Name == "Compare" && mc.Arguments.Count == 2 && mc.Method.ReturnType == typeof(int)) { 949if (mc.Method.Name == "Equals" && mc.Arguments.Count == 1) { 956else if (mc.Method.Name == "ToString" && mc.Arguments.Count == 0) { 998if (mc.Arguments.Count == 0) { 1014if (name.StartsWith("DateDiff", StringComparison.Ordinal) && mc.Arguments.Count == 2) { 1026if (mc.Arguments.Count == 2) { 1029else if (mc.Arguments.Count == 3) { 1059else if ((mc.Method.Name == "Add" && mc.Arguments.Count == 1 && mc.Arguments[0].ClrType == typeof(TimeSpan)) 1121else if ((mc.Method.Name == "Add" && mc.Arguments.Count == 1 && mc.Arguments[0].ClrType == typeof(TimeSpan)) 1200if (mc.Arguments.Count == 1) { 1394if (mc.Arguments.Count == 2) { 1411else if (mc.Arguments.Count == 1) { 1457if (exprs.Count == 0) { 1468for (int i = 1; i < exprs.Count; i++) { 1479else if ((mc.Method.Name == "Equals") && (mc.Arguments.Count == 2)) { 1482else if ((mc.Method.Name == "Compare") && (mc.Arguments.Count == 2)) { 1504if (mc.Arguments.Count == 1) { 1538if (mc.Arguments.Count == 1) { 1572if (mc.Arguments.Count == 1) { 1606if (mc.Arguments.Count == 1) { 1621else if (mc.Arguments.Count == 2) { 1642else if (mc.Arguments.Count == 3) { 1675if (mc.Arguments.Count == 1) { 1703else if (mc.Arguments.Count == 2) { 1739else if (mc.Arguments.Count == 3) { 1780if (mc.Arguments.Count == 2) { 1805if (mc.Arguments.Count == 1) { 1820else if (mc.Arguments.Count == 2) { 1838if (mc.Arguments.Count == 1) { 1853else if (mc.Arguments.Count == 2) { 1872if (mc.Arguments.Count == 1) { 1883else if (mc.Arguments.Count == 2) { 1911if (mc.Arguments.Count == 1) { 1921else if (mc.Arguments.Count == 2) { 1933if (mc.Arguments.Count == 0) { 1943if (mc.Arguments.Count == 0) { 1948if (mc.Arguments.Count == 0) { 1954if (mc.Arguments.Count == 1) { 1963if (mc.Arguments.Count == 1) { 1978if (mc.Arguments.Count == 1) { 1983if (mc.Arguments.Count == 1) { 1988if (mc.Arguments.Count == 1) { 1993if (mc.Arguments.Count == 1) { 1998if (mc.Arguments.Count == 2) { 2003if (mc.Arguments.Count == 2) { 2008if (mc.Arguments.Count == 1) { 2013if (mc.Arguments.Count == 1) { 2018if (mc.Arguments.Count == 1) { 2028if (mc.Arguments.Count == 1) { 2033if (mc.Arguments.Count == 1) { 2039if (mc.Arguments.Count == 1) { 2042else if (mc.Arguments.Count == 2) { 2050if (mc.Arguments.Count == 1) { 2055if (mc.Arguments.Count == 2) { 2064if (mc.Arguments.Count == 2) { 2073if (mc.Arguments.Count == 2) { 2078int nParams = mc.Arguments.Count; 2114if (mc.Arguments.Count == 1) { 2119if (mc.Arguments.Count == 1) { 2124if (mc.Arguments.Count == 1) { 2133if (mc.Arguments.Count == 1) { 2138if (mc.Arguments.Count == 1) { 2143if (mc.Arguments.Count == 1) { 2152if (mc.Arguments.Count == 1) { 2383if (mc.Arguments.Count == 1) { 2461if (mc.Arguments.Count >= 2) { 2469Debug.Assert(mc.Arguments.Count == 3);
SqlClient\Query\SqlMultiplexer.cs (4)
114this.canJoin &= select.GroupBy.Count == 0 && select.Top == null && !select.IsDistinct; 245SqlParameter sp = new SqlParameter(clrType, expr.SqlType, "@x" + (this.parameters.Count + 1), expr.SourceExpression); 254SqlExpression[] exprs = new SqlExpression[link.KeyExpressions.Count]; 363this.canBigJoin &= select.GroupBy.Count == 0 && select.Top == null && !select.IsDistinct;
SqlClient\Query\SqlNamer.cs (7)
47if (ss.Select.Row.Columns.Count > 0) { 48System.Diagnostics.Debug.Assert(ss != null && ss.Select != null && ss.Select.Row != null && ss.Select.Row.Columns.Count == 1); 80string[] names = new string[select.Row.Columns.Count]; 93for (int i = 0, n = select.Row.Columns.Count; i < n; i++) { 177for (int i = 0, n = sox.Args.Count; i < n; i++) { 182for (int i = 0, n = sox.Args.Count; i < n; i++) { 211for (int i = 0, n = mc.Arguments.Count; i < n; i++) {
SqlClient\Query\SqlOuterApplyReducer.cs (5)
96foreach(List<SqlColumn> selection in liftedSelections.Where(s => s.Count > 0)) { 162select.GroupBy.Count == 0 && 163select.OrderBy.Count == 0) { 355select.GroupBy.Count > 0 || 473select.GroupBy.Count > 0 ||
SqlClient\Query\SqlParameterizer.cs (2)
82for (int i = 0, n = block.Statements.Count; i < n; i++) { 174for (int i = 0, n = suq.Arguments.Count; i < n; i++) {
SqlClient\Query\SqlRemoveConstantOrderBy.cs (1)
25while (i < orders.Count) {
SqlClient\Query\SqlReorderer.cs (8)
145if (select.GroupBy.Count > 0) { 153if (select.OrderBy.Count > 0) { 163for (int i = 0, n = select.GroupBy.Count; i < n; i++) { 167for (int i = 0, n = select.OrderBy.Count; i < n; i++) { 207if (rowNumber.OrderBy.Count > 0) return rowNumber; 213if (this.rowNumberOrders != null && this.rowNumberOrders.Count != 0) { 234if (orderBy.Count == 0) { 243if (orderBy.Count == 0) {
SqlClient\Query\SqlResolver.cs (3)
94for (int i = 0, n = select.GroupBy.Count; i < n; i++) { 98for (int i = 0, n = select.OrderBy.Count; i < n; i++) { 284if (select.GroupBy.Count == 0 || this.IsFoundInGroup(select)) {
SqlClient\Query\SqlRetyper.cs (6)
114var newValues = new System.Collections.Generic.List<SqlExpression>(sin.Values.Count); 116for (int i = 0, n = sin.Values.Count; i < n; i++) { 161for (int i = 1; i < c.Whens.Count; i++) { 187for (int i = 1; i < c.Whens.Count; i++) { 209for (int i = 0, n = fc.Arguments.Count; i < n; i++) { 212if (fc.Arguments.Count > 0) {
SqlClient\Query\SqlSupersetValidator.cs (1)
37for (int i = 0, n = row.Columns.Count; i < n; i++) {
SqlClient\Query\SqlUnionizer.cs (7)
23for (int i = 0, n = sleft.Row.Columns.Count; i < n; i++) { 24sleft.Row.Columns[i].Ordinal = select.Row.Columns.Count + i; 26for (int i = 0, n = sright.Row.Columns.Count; i < n; i++) { 27sright.Row.Columns[i].Ordinal = select.Row.Columns.Count + i; 30for (int i = 0, n = select.Row.Columns.Count; i < n; i++) { 33for (int e = 0, en = es.Expressions.Count; e < en; e++) { 35if (cr != null && e >= select.Row.Columns.Count) {
SqlClient\Query\Translator.cs (11)
251Expression[] keyExprs = new Expression[keyExpressions.Count]; 252for (int i = 0; i < keyExpressions.Count; ++i) { 357System.Diagnostics.Debug.Assert(exprs1.Count > 0); 358System.Diagnostics.Debug.Assert(exprs2.Count > 0); 359System.Diagnostics.Debug.Assert(exprs1.Count == exprs2.Count); 363for (int i = 0, n = exprs1.Count; i < n; i++) { 455System.Diagnostics.Debug.Assert(exprs.Count > 0); 459for (int i = 0, n = exprs.Count; i < n; i++) { 513System.Diagnostics.Debug.Assert(members.Count > 0); 514List<SqlExpression> exprs = new List<SqlExpression>(members.Count);
SqlClient\Reader\ObjectReaderCompiler.cs (51)
351for (int i = 0, n = new1.Args.Count; i < n; i++) { 356for (int i = 0, n = new1.Members.Count; i < n; i++) { 369for (int i = 0, c = l1.KeyExpressions.Count; i < c; ++i) { 393for (int i = 0, n = a1.Expressions.Count; i < n; i++) { 402for (int i = 0, n = c1.Whens.Count; i < n; i++) { 412for (int i = 0, n = c1.Whens.Count; i < n; i++) { 425for (int i = 0, c = c1.Whens.Count; i < c; ++i) { 448for (int i = 0, n = mc.Arguments.Count; i < n; i++) { 481if (new1.Args.Count != new2.Args.Count || 482new1.Members.Count != new2.Members.Count) { 485for (int i = 0, n = new1.Args.Count; i < n; i++) { 490for (int i = 0, n = new1.Members.Count; i < n; i++) { 509if (l1.KeyExpressions.Count != l2.KeyExpressions.Count) { 512for (int i = 0, c = l1.KeyExpressions.Count; i < c; ++i) { 539if (a1.Expressions.Count != a2.Expressions.Count) { 542for (int i = 0, n = a1.Expressions.Count; i < n; i++) { 554if (c1.Whens.Count != c2.Whens.Count) { 557for (int i = 0, n = c1.Whens.Count; i < n; i++) { 568if (c1.Whens.Count != c2.Whens.Count) { 571for (int i = 0, n = c1.Whens.Count; i < n; i++) { 584if (c1.Whens.Count != c2.Whens.Count) { 587for (int i = 0, c = c1.Whens.Count; i < c; ++i) { 615if (cq1.Arguments.Count != cq2.Arguments.Count) { 618for (int i = 0, n = cq1.Arguments.Count; i < n; i++) { 631if (mc1.Arguments.Count != mc2.Arguments.Count) { 634for (int i = 0, n = mc1.Arguments.Count; i < n; i++) { 868this.GenerateConstInt(ca.Expressions.Count); 870for (int i = 0, n = ca.Expressions.Count; i < n; i++) { 902for (int i = 0, n = mc.Arguments.Count; i < n; i++) { 939if (sn.Args.Count > 0) { 941for (int i = 0, n = sn.Args.Count; i < n; i++) { 1387this.GenerateConstInt(link.KeyExpressions.Count); 1391for (int i = 0, n = link.KeyExpressions.Count; i < n; i++) { 1427this.GenerateConstInt(cq.Arguments.Count); 1431for (int i = 0, n = cq.Arguments.Count; i < n; i++) { 1808int iName = this.namedColumns.Count; 1911for (int i = 0, n = scc.Whens.Count; i < n; i++) { 1945for (int i = 0, n = stc.Whens.Count; i < n; i++) { 2026for (int i = 0, n = ssc.Whens.Count; i < n; i++) { 2176int iGlobal = this.globals.Count; 2793if (this.iNextBufferedReader < this.buffer.Count) { 2875if (this.iNextBufferedReader >= this.buffer.Count) {
SqlClient\SqlBuilder.cs (2)
45if ((parts.Count) < 2) { 49string schema = parts[parts.Count - 2];
SqlClient\SqlConnectionManager.cs (4)
57if (this.users.Count == this.maxUsers) { 98while (this.users.Count > 0) { 130if (this.users.Count == 0 && this.autoClose && this.transaction == null && System.Transactions.Transaction.Current == null) { 150if (this.users.Count == 0 && this.autoClose) {
SqlClient\SqlProvider.cs (2)
972cq.Ordinal = this.subQueries.Count; 1630return GetFinalSelect(b.Statements[b.Statements.Count - 1]);
SqlClient\SqlTypeSystemProvider.cs (2)
1178ProviderType[] array = new ProviderType[fc.Arguments.Count]; 1267if (functionCall.Arguments.Count == 4)
System.Data.Services (114)
System\Data\Services\DataService.cs (13)
197int segmentDepth = collection.Count; 2406if (exceptionEncountered == null && this.batchRequestDescription.Count > 0) 2435Debug.Assert(this.batchOperationContexts.Count == this.batchRequestDescription.Count, "counts must be the same"); 2436for (int i = 0; i < this.batchRequestDescription.Count; i++) 2464Debug.Assert(this.batchRequestDescription.Count == 0, "this.batchRequestDescription.Count == 0"); 2465Debug.Assert(this.batchOperationContexts.Count == 0, "this.batchRequestHost.Count == 0"); 2668DataServiceOperationContext currentContext = changesetOperationContexts.Count == 0 ? null : changesetOperationContexts[changesetOperationContexts.Count - 1]; 2724Debug.Assert(this.batchRequestDescription[this.batchRequestDescription.Count - 1] == requestDescription, "The current request description must be the last one"); 2725Debug.Assert(this.batchRequestDescription.Count == this.batchOperationContexts.Count, "Host and request description count must be the same"); 2743for (int i = 0; i < this.batchOperationContexts.Count - 1; i++)
System\Data\Services\Epm\EpmContentDeSerializer.cs (2)
49if (this.resourceType.EpmTargetTree.SyndicationRoot.SubSegments.Count > 0) 54if (this.resourceType.EpmTargetTree.NonSyndicationRoot.SubSegments.Count > 0)
System\Data\Services\Epm\EpmSourceTree.cs (1)
102Debug.Assert(foundProperty.SubProperties.Count == 0, "If non-leaf, it means we allowed complex type to be a leaf node");
System\Data\Services\Epm\EpmTargetTree.cs (1)
199while (currentSegment.ParentSegment != null && !currentSegment.HasContent && currentSegment.SubSegments.Count == 0);
System\Data\Services\KeyInstance.cs (1)
96return this.positionalValues.Count;
System\Data\Services\Parsing\RequestQueryParser.cs (4)
2216if (applicableFunctions.Count == 0) 2221else if (applicableFunctions.Count == 1) 2230for (int i = 0; i < applicableFunctions.Count; i++) 2233for (int j = 0; j < applicableFunctions.Count; j++)
System\Data\Services\Providers\BaseServiceProvider.cs (1)
403Debug.Assert(this.ChildTypesCache[resourceType] == null || this.ChildTypesCache[resourceType].Count > 0, "this.ChildTypesCache[resourceType] == null || this.ChildTypesCache[resourceType].Count > 0");
System\Data\Services\Providers\BasicExpandProvider.cs (13)
1107(!this.ExpandProvider.expanded && this.children.Count > 0); // We wrap to implement expansion. 1438MemberBinding[] bindings = new MemberBinding[this.children.Count + 2 + (this.needSkipToken ? 1 : 0)]; 1444for (int i = 0; i < this.children.Count; i++) 1505Type projectedSkipTokenType = this.elementType.GetGenericArguments().Skip(this.children.Count + 1).First(); 1528bindings[this.children.Count + 2] = BindByName(this.elementType, "ProjectedProperty" + this.children.Count.ToString(System.Globalization.CultureInfo.InvariantCulture), skipTokenBody); 1548Type projectedWrapperType = ProjectedWrapper.GetProjectedWrapperType(this.projectedProperties.Count); 1554Debug.Assert(this.resourceTypes.Count > 0, "We should have at least the base type filled."); 1562Expression[] bindingExpressions = new Expression[this.projectedProperties.Count + 2]; 1563for (int propertyIndex = 0; propertyIndex < this.projectedProperties.Count; propertyIndex++) 1785Type[] typeArguments = new Type[1 + this.children.Count + (this.needSkipToken ? 1 : 0)]; 1790for (int i = 0; i < this.children.Count; i++) 1825return ProjectedWrapper.GetProjectedWrapperType(this.projectedProperties.Count);
System\Data\Services\Providers\ExpandedProjectionNode.cs (7)
282for (int j = this.nodes.Count - 1; j >= 0; j--) 325for (int j = this.nodes.Count - 1; j >= 0; j--) 343for (int j = this.nodes.Count - 1; j >= 0; j--) 361if (this.nodes.Count > 0) 368this.nodes = new List<ProjectionNode>(existingNodes.Count); 392Debug.Assert(this.nodes.Count == existingNodes.Count, "We didn't sort all the properties.");
System\Data\Services\Providers\ObjectContextServiceProvider.cs (5)
938if (this.typesWithoutOSpaceMetadata.Count != 0) 1242capacity += segments.Count - 1; 1271expandedNode.PropertyName.Length == 0 || pathSegments[pathSegments.Count - 1] == expandedNode.PropertyName, 1283pathSegments.RemoveAt(pathSegments.Count - 1); 1287if (!foundChildExpansionNode && pathSegments.Count > 0)
System\Data\Services\Providers\ReflectionServiceProvider.cs (4)
542for (int i = ancestors.Count - 1; i >= 0; i--) 563else if (ancestors.Count == 0) 573for (int i = ancestors.Count - 1; i >= 0; i--) 889for (int i = 0; i < rootTypes.Count; i++)
System\Data\Services\RequestQueryProcessor.cs (10)
389if (this.expandPathsAsText.Count > 0 && this.query == null) 394this.expandPaths = new List<ExpandSegmentCollection>(this.expandPathsAsText.Count); 396for (int i = this.expandPathsAsText.Count - 1; i >= 0; i--) 402ExpandSegmentCollection segments = new ExpandSegmentCollection(path.Count); 404for (int j = 0; j < path.Count; j++) 524for (int j = 0; j < segments.Count; j++) 591for (int i = selectPathsAsText.Count - 1; i >= 0; i--) 597for (int j = 0; j < path.Count; j++) 601bool lastPathSegment = (j == path.Count - 1); 719if (selectPathsAsText.Count > 0 && this.query == null)
System\Data\Services\Serializers\Deserializer.cs (3)
1064for (int i = 0; i < byteData.Count - 1; i++) 1070Buffer.BlockCopy(byteData[byteData.Count - 1], 0, data, (byteData.Count - 1) * 4000, result);
System\Data\Services\Serializers\DictionaryContent.cs (11)
88get { return this.valueNames.Count == 0; } 116Debug.Assert(this.valueNames.Count == this.valueTypes.Count, "this.valueNames.Count == this.valueTypes.Count"); 117Debug.Assert(this.valueNames.Count == this.valueContents.Count, "this.valueNames.Count == this.valueContents.Count"); 129Debug.Assert(this.valueNames.Count == this.valueTypes.Count, "this.valueNames.Count == this.valueTypes.Count"); 130Debug.Assert(this.valueNames.Count == this.valueContents.Count, "this.valueNames.Count == this.valueContents.Count"); 189if (0 < this.valueNames.Count) 201for (int i = 0; i < this.valueNames.Count; i++)
System\Data\Services\Serializers\JsonDeserializer.cs (3)
596Debug.Assert(navProperties.Count == navPropertyValues.Count, "nav properties and nav property values count must be the same"); 601for (int i = 0; i < navProperties.Count; i++)
System\Data\Services\Serializers\JsonReader.cs (1)
545get { return this.orderedKeys.Count; }
System\Data\Services\Serializers\Serializer.cs (32)
102if (this.segmentContainers == null || this.segmentContainers.Count == 0) 108return this.segmentContainers[this.segmentContainers.Count - 1]; 118return (this.segmentContainers == null || this.segmentContainers.Count == 1); 429if (this.segmentResultCounts.Count == 1) 435Debug.Assert(topQueryParameter.Value >= this.segmentResultCounts[this.segmentResultCounts.Count - 1], "$top must be the upper limits of the number of results returned."); 443return this.segmentResultCounts[this.segmentResultCounts.Count - 1] == pageSize; 475Debug.Assert(this.segmentResultCounts.Count > 0, "this.segmentResultCounts.Count > 0 -- otherwise we didn't PushSegmentForRoot"); 492int count = this.segmentResultCounts[this.segmentResultCounts.Count - 1]; 503this.segmentResultCounts[this.segmentResultCounts.Count - 1] = count; 543Debug.Assert(this.segmentNames.Count > 0, "this.segmentNames.Count > 0"); 544this.segmentNames.RemoveAt(this.segmentNames.Count - 1); 545this.segmentContainers.RemoveAt(this.segmentContainers.Count - 1); 546this.segmentResultCounts.RemoveAt(this.segmentResultCounts.Count - 1); 548this.segmentContainers.Count == this.segmentNames.Count, 551this.segmentContainers.Count == this.segmentResultCounts.Count, 637for (int i = 0; i < this.requestDescription.RootProjectionNode.ExpandPaths.Count; i++) 640if (expandPath.Count < this.segmentNames.Count) 648for (int j = 1; j < this.segmentNames.Count; j++) 657if (matchFound && expandPath[this.segmentNames.Count - 1].Name == name) 817for (int i = 1; i < this.segmentNames.Count; i++) 948parentPathSegments.RemoveAt(parentPathSegments.Count - 1); 1074this.segmentContainers.Count == this.segmentNames.Count, 1077this.segmentContainers.Count == this.segmentResultCounts.Count, 1083this.segmentContainers.Count == this.segmentNames.Count, 1086this.segmentContainers.Count == this.segmentResultCounts.Count,
System\Data\Services\Serializers\SyndicationSerializer.cs (2)
364Debug.Assert(epmProperty.SubProperties.Count == 0, "Complex type added as leaf node in EPM tree."); 1039for (int i = 0; i < navProperties.Count; i++)
System.Data.Services.Client (54)
parent\Server\System\Data\Services\Epm\EpmTargetTree.cs (1)
199while (currentSegment.ParentSegment != null && !currentSegment.HasContent && currentSegment.SubSegments.Count == 0);
System\Data\Services\Client\ALinq\NavigationPropertySingletonExpression.cs (1)
91return this.ExpandPaths.Count > 0 ||
System\Data\Services\Client\ALinq\ResourceBinder.cs (10)
164if (referencedInputs.Count > 1) 170ResourceSetExpression boundTarget = (referencedInputs.Count == 0 ? input : referencedInputs[0] as ResourceSetExpression); 206clauses.Count > 0) 236if (inputPredicates.Count > 0) 263for (int idx = start; idx < inputPredicates.Count; idx++) 1066if (referencedInputs.Count > 1 || (referencedInputs.Count == 1 && referencedInputs[0] != input)) 1656return paramRef == expectedTarget && refPath.Count == 1 && refPath[0] == rse.TransparentScope.Accessor; 1792if (referencedInputs.Count != 1) 2259if (re.ExpandPaths.Count > 0)
System\Data\Services\Client\ALinq\ResourceSetExpression.cs (3)
148return this.sequenceQueryOptions.Count > 0 || 149this.ExpandPaths.Count > 0 || 202get { return this.sequenceQueryOptions.Count > 0; }
System\Data\Services\Client\ALinq\UriWriter.cs (6)
334if (re.ExpandPaths.Count > 0) 345if (re.Projection != null && re.Projection.Paths.Count > 0) 438if (++ii == oboe.Selectors.Count) 462if (++ii == paths.Count) 488if (++ii == paths.Count) 532if (++ii == keys.Count)
System\Data\Services\Client\AtomMaterializer.cs (9)
494if (path.Count == 0 || path.Count == 1 && path[0].Member == null) 502for (int i = 0; i < path.Count; i++) 510bool segmentIsLeaf = i == path.Count - 1; 560for (int i = 0; i < path.Count; i++) 709if (path.Count == 0 || path.Count == 1 && path[0].Member == null) 722for (int i = 0; i < path.Count; i++) 730bool segmentIsLeaf = i == path.Count - 1;
System\Data\Services\Client\DataServiceContext.cs (7)
4330if ((null != httpWebRequest) || (this.entryIndex < this.ChangedEntries.Count)) 4441Debug.Assert(this.entryIndex < this.ChangedEntries.Count || this.ChangedEntries.All(o => o.ContentGeneratedForSave), "didn't generate content for all entities/links"); 4570if (unchecked((uint)this.entryIndex < (uint)this.ChangedEntries.Count)) 5067else if (0 == this.ChangedEntries.Count) 5098else if (0 < this.ChangedEntries.Count) 5104for (int i = 0; i < this.ChangedEntries.Count; ++i) 5687for (int i = 0; i < this.ChangedEntries.Count; ++i)
System\Data\Services\Client\MemberAssignmentAnalysis.cs (6)
173if (this.pathFromEntity.Count != 0) 216if (this.pathFromEntity.Count == 0) 262if (this.pathFromEntity.Count <= 1) 268result[0] = this.pathFromEntity[this.pathFromEntity.Count - 1]; 278if (this.pathFromEntity.Count <= 1) 283Expression[] result = new Expression[this.pathFromEntity.Count - 1];
System\Data\Services\Client\ProjectionPath.cs (1)
97for (int i = 0; i < this.Count; i++)
System\Data\Services\Client\ProjectionPathBuilder.cs (5)
89get { return this.rewrites.Count > 0; } 187if (names.Count != rewrite.MemberNames.Length) 193for (int i = 0; i < names.Count && i < rewrite.MemberNames.Length; i++) 195if (names[names.Count - i - 1] != rewrite.MemberNames[i]) 252for (int i = 0; i < this.rewrites.Count; i++)
System\Data\Services\Client\ProjectionPlanCompiler.cs (5)
436this.annotations.Add(result, new ExpressionAnnotation() { Segment = path[path.Count - 1] }); 451this.annotations.Add(result, new ExpressionAnnotation() { Segment = path[path.Count - 1] }); 468this.annotations.Add(result, new ExpressionAnnotation() { Segment = path[path.Count - 1] }); 579this.annotations.Add(entryToInitValue, new ExpressionAnnotation() { Segment = entryPath[entryPath.Count - 1] }); 580this.annotations.Add(entryParameterForMembers, new ExpressionAnnotation() { Segment = entryPath[entryPath.Count - 1] });
System.Data.Services.Design (18)
System\Data\EntityModel\Emitters\AttributeEmitter.cs (1)
101if (additionalAttributes != null && additionalAttributes.Count > 0)
System\Data\EntityModel\Emitters\ClientApiGenerator.cs (1)
269if (FixUps.Count == 0 || !FixUpCollection.IsLanguageSupported(Language))
System\Data\EntityModel\Emitters\EntityContainerEmitter.cs (2)
513if (additionalAttributes != null && additionalAttributes.Count > 0) 532if (additionalGetStatements != null && additionalGetStatements.Count > 0)
System\Data\EntityModel\Emitters\NamespaceEmitter.cs (1)
111if (0 < items.Count)
System\Data\EntityModel\Emitters\NavigationPropertyEmitter.cs (3)
145if (additionalSetStatements != null && additionalSetStatements.Count > 0) 187if (additionalAfterSetStatements != null && additionalAfterSetStatements.Count > 0) 256if (additionalGetStatements != null && additionalGetStatements.Count > 0)
System\Data\EntityModel\Emitters\PropertyEmitter.cs (3)
196if (additionalGetStatements != null && additionalGetStatements.Count > 0) 343if (additionalSetStatements != null && additionalSetStatements.Count > 0) 383if (additionalAfterSetStatements != null && additionalAfterSetStatements.Count > 0)
System\Data\EntityModel\Emitters\SchemaTypeEmitter.cs (2)
65if (additionalAttributes != null && additionalAttributes.Count > 0) 121if (additionalMembers != null && additionalMembers.Count > 0)
System\Data\EntityModel\Emitters\StructuredTypeEmitter.cs (1)
152if (parameters.Count < 1)
System\Data\EntityModel\EntityClassGenerator.cs (4)
362Debug.Assert(schemaElements.Count > 0, "schemaElements.Count > 0 -- otherwise TryCreateReadersV2 should have returned false"); 364for (int i = 0; i < schemaElements.Count; i++) 384Debug.Assert(result.Count == 0, "result.Count == 0 -- otherwise TryCreateReadesV2 should have returned true"); 475result = schemaElements.Count > 0;
System.Data.SqlXml (75)
System\Xml\Xsl\IlGen\StaticDataManager.cs (3)
34id = list.Count; 130return this.prefixMappingsList.Count - 1; 149idx = this.globalNames.Count;
System\Xml\Xsl\Runtime\DocumentOrderComparer.cs (2)
63for (int idx = 0; idx < this.roots.Count; idx++) { 73return this.roots.Count - 1;
System\Xml\Xsl\Runtime\DodSequenceMerge.cs (6)
70if (this.sequencesToMerge == null || this.sequencesToMerge.Count <= 1) 76while (this.sequencesToMerge.Count != 1) { 78IEnumerator<XPathNavigator> sequence = this.sequencesToMerge[this.sequencesToMerge.Count - 1]; 79this.sequencesToMerge.RemoveAt(this.sequencesToMerge.Count - 1); 89Debug.Assert(this.sequencesToMerge.Count == 1, "While loop should terminate when count == 1"); 112for (int i = this.sequencesToMerge.Count - 1; i >= 0; i--) {
System\Xml\Xsl\Runtime\StringConcat.cs (1)
88int capacity = (this.strList == null) ? 8 : this.strList.Count;
System\Xml\Xsl\Runtime\XslNumber.cs (1)
184int cFormats = tokens.Count;
System\Xml\Xsl\Runtime\XsltLibrary.cs (2)
185return decimalFormatters.Count - 1; 191Debug.Assert(0 <= idx && idx < decimalFormatters.Count, "Value of decimalFormatterIndex is out of range");
System\Xml\Xsl\XmlQueryTypeFactory.cs (10)
268for (int i = 0; i < accumulator.Count; i++) { 700if (members.Count == 0) 703if (members.Count == 1) 713Debug.Assert(members != null && members.Count != 1, "ChoiceType must contain a list with 0 or >1 types."); 718for (int i = 0; i < members.Count; i++) { 777writer.Write(this.members.Count); 778for (int i = 0; i < this.members.Count; i++) { 838get { return members.Count == 0; } 846for (int i = 0; i < members.Count; i++) { 898get { return this.members.Count; }
System\Xml\Xsl\Xslt\MatcherBuilder.cs (4)
356Debug.Assert(patternList.Count > 0); 368if (patternList.Count == 0) { 383if (patternList.Count == 0) { 417if (patternBag.FixedNamePatternsNames.Count == 0) {
System\Xml\Xsl\Xslt\QilGeneratorEnv.cs (4)
371Debug.Assert(defList != null && defList.Count > 0); 372if (defList.Count == 1) { 385Debug.Assert(defList != null && defList.Count > 0); 393return defList.Count == 1 ? keyRef : result;
System\Xml\Xsl\Xslt\Scripts.cs (9)
149for (int i = 0; i < scriptClasses.Count; i++) { 158for (int j = i; j < scriptClasses.Count; j++) { 198ScriptClass lastScript = scriptsForLang[scriptsForLang.Count - 1]; 215CodeCompileUnit[] codeUnits = new CodeCompileUnit[scriptsForLang.Count]; 229for (int idx = 0; idx < scriptsForLang.Count; idx++) { 284if (asmPath != null && scriptsForLang.Count < scriptClasses.Count) { 368ScriptClass errScript = scriptsForLang[scriptsForLang.Count - 1]; 376if ((uint)scriptNumber < scriptsForLang.Count) {
System\Xml\Xsl\Xslt\XPathPatternBuilder.cs (1)
213List<QilNode> convertedPredicates = new List<QilNode>(predicates.Count);
System\Xml\Xsl\Xslt\XPathPatternParser.cs (1)
217if (predicates.Count > 0)
System\Xml\Xsl\Xslt\XslAst.cs (1)
273Debug.Assert(list != null && list.Count > 0);
System\Xml\Xsl\Xslt\XslAstAnalyzer.cs (4)
713if (templates[templates.Count - 1] == dependentTemplate) { 1270newtemplate.SetContent(new List<XslNode>(content.Count - split + 8)); 1308for (int t = split; t < content.Count; ++t) { 1314content.RemoveRange(split + 1, content.Count - split - 1);
System\Xml\Xsl\Xslt\XsltLoader.cs (19)
222curStylesheet.Imports = new Stylesheet[importHrefs.Count]; 224for (int i = importHrefs.Count; 0 <= --i; ) { 620if (useCharacterMaps.Count != 0) ReportNYI("xsl:output/@use-character-maps"); 722if (content.Count != 0) { 725if ((use == null) == (content.Count == 0)) { 1401if (content.Count != 0) { 1411if (content.Count != 0) ReportNYI("xsl:apply-imports/xsl:with-param"); 1608if (content.Count != 0) { 1708CheckError(select == null && content.Count == 0, /*[???]*/Res.Xslt_NoSelectNoContent, input.ElementName); 1709if (content.Count != 0) { 1795CheckError((required == TriState.True) && (select != null || content.Count != 0), /*[???]*/Res.Xslt_RequiredAndSelect, name.ToString()); 1818CheckError(hasSelect && content.Count != 0, /*[XT0620]*/Res.Xslt_ElementCntSel, parentName); 1820if (content.Count != 0) { 1969if (content.Count != 0) { 2401if (fallbacksArray.Count == 0) { 2491if (1 < modes.Count) { 2495if (modes.Count == 0) { 2631Debug.Assert(list != null && list.Count == 0, "It happened that we always add use-attribute-sets first. Otherwise we can't call list.Clear()"); 2783if (content != null && content.Count == 0) {
System\Xml\Xsl\XsltOld\ActionFrame.cs (1)
146SortKey key = new SortKey(numSorts, /*originalPosition:*/results.Count, this.newNodeSet.Current.Clone());
System\Xml\Xsl\XsltOld\Compiler.cs (1)
654return this.queryStore.Count - 1;
System\Xml\Xsl\XsltOld\NumberAction.cs (1)
429cFormats = tokens.Count;
System\Xml\Xsl\XsltOld\Processor.cs (3)
305this.queryList = new Query[queryStore.Count]; { 306for(int i = 0; i < queryStore.Count; i ++) { 327this.keyList = new Key[this.rootAction.KeyList.Count];
System\Xml\Xsl\XsltOld\TemplateAction.cs (1)
133copy.matchKey = compiler.QueryStore.Count - 1;
System.Drawing (2)
commonui\System\Drawing\ImageAnimator.cs (2)
303for(int i = 0; i < imageInfoList.Count; i++) { 342for (int i=0;i < imageInfoList.Count; i++) {
System.IdentityModel (45)
System\IdentityModel\Asn1IntegerConverter.cs (10)
56StringBuilder result = new StringBuilder(positiveDecimalDigits.Count + 1); 72for (d = resultDigits.Count - 1; d >= 0; d--) 98if (n >= powersOfTwo.Count) 100for (int power = powersOfTwo.Count; power <= n; power++) 104for (int i = 0; i < decimalDigits.Count; i++) 125for (int i = 0; i < second.Length || i < first.Count; i++) 127if (i >= first.Count) 152for (int i = 0; i < second.Count; i++) 168for (int i = second.Count; i < first.Count; i++)
System\IdentityModel\BoundedCache.cs (1)
208for (int i = 0; i < expiredItems.Count; ++i)
System\IdentityModel\Configuration\IdentityConfiguration.cs (1)
349int count = this.KnownIssuerCertificates.Count;
System\IdentityModel\Protocols\WSTrust\WSTrustSerializationHelper.cs (1)
878if ((rst.Participants != null) && ((rst.Participants.Primary != null) || (rst.Participants.Participant.Count > 0)))
System\IdentityModel\Selectors\SamlSecurityTokenAuthenticator.cs (3)
87for (int i = 0; i < this.supportingAuthenticators.Count; ++i) 168for (int i = 0; i < this.supportingAuthenticators.Count; ++i) 207for (int i = 0; i < this.supportingAuthenticators.Count; ++i)
System\IdentityModel\Selectors\X509CertificateChain.cs (2)
335int ptrSize = oidStrs.Count * Marshal.SizeOf(typeof(IntPtr)); 344for (int index = 0; index < oidStrs.Count; index++) {
System\IdentityModel\SignedXml.cs (7)
678get { return this.references.Count; } 701for (int i = 0; i < this.references.Count; i++) 713for (int i = 0; i < this.references.Count; i++) 725for (int i = 0; i < this.references.Count; i++) 737if (this.references.Count == 0) 741for (int i = 0; i < this.references.Count; i++) 797for (int i = 0; i < this.references.Count; i++)
System\IdentityModel\Tokens\AuthorizationPolicy.cs (1)
107if (0 == _identityCollection.Count)
System\IdentityModel\Tokens\ConfigurationBasedIssuerNameRegistry.cs (1)
60if (configNodes.Count != 1)
System\IdentityModel\Tokens\KerberosReceiverSecurityToken.cs (1)
214if (list.Count > 0)
System\IdentityModel\Tokens\KeyInfoSerializer.cs (10)
90for (int i = 0; i < this.serializerEntries.Count; ++i) 151for (int i = 0; i < this.keyIdentifierEntries.Count; i++) 188for (int i = 0; i < this.keyIdentifierEntries.Count; ++i) 201for (int i = 0; i < this.keyIdentifierEntries.Count; ++i) 237for (int i = 0; i < this.keyIdentifierClauseEntries.Count; i++) 249for (int i = 0; i < this.keyIdentifierClauseEntries.Count; i++) 277for (int i = 0; i < this.keyIdentifierClauseEntries.Count; ++i) 290for (int i = 0; i < this.keyIdentifierClauseEntries.Count; ++i) 340for (int i = 0; i < this.tokenEntries.Count; i++) 357for (int i = 0; i < this.tokenEntries.Count; i++)
System\IdentityModel\Tokens\SamlAssertion.cs (1)
422for (int j = 0; j < cryptoList.Count; ++j)
System\IdentityModel\Tokens\SamlSecurityTokenHandler.cs (1)
3545if (subjects.Count == 0)
System\IdentityModel\Tokens\SecurityKeyIdentifier.cs (2)
58get { return this.clauses.Count; } 130for (int i = 0; i < this.clauses.Count; i++)
System\IdentityModel\Tokens\X509DataSecurityKeyIdentifierClauseSerializer.cs (1)
102return clauses.Count > 0 ? clauses[0] : null;
System\IdentityModel\XmlBuffer.cs (1)
79get { return this.sections.Count; }
System\ServiceModel\Security\ReferenceList.cs (1)
29get { return this.referredIds.Count; }
System.IO.Log (2)
System\IO\Log\ReservationCollection.cs (2)
311if (index == this.reservationKeys.Count) 415if (this.keyIndex == this.parent.ReservationKeys.Count)
System.Runtime.Caching (1)
System\Caching\MemoryCache.cs (1)
376if (keysClone.Count == 0) {
System.Runtime.DurableInstancing (1)
System\Runtime\DurableInstancing\InstanceHandle.cs (1)
722Fx.Assert(readyEvents.Count != 0, "Should not return a zero-length list.");
System.Runtime.Serialization (65)
System\Runtime\Serialization\ClassDataContract.cs (21)
418XmlDictionaryString[] childElementNamespaces = new XmlDictionaryString[Members.Count + baseChildElementNamespaceCount]; 423for (int i = 0; i < this.Members.Count; i++) 533for (int i = 0; i < this.Members.Count; i++) 619for (int i = 0; i < this.Members.Count; i++) 739XmlDictionary dictionary = new XmlDictionary(2 + Members.Count); 747MemberNames = new XmlDictionaryString[Members.Count]; 748MemberNamespaces = new XmlDictionaryString[Members.Count]; 758MemberNames = new XmlDictionaryString[Members.Count + baseMemberCount]; 760MemberNamespaces = new XmlDictionaryString[Members.Count + baseMemberCount]; 767for (int i = 0; i < Members.Count; i++) 781XmlDictionary dictionary = new XmlDictionary(1 + Members.Count); 785MemberNames = new XmlDictionaryString[Members.Count]; 786MemberNamespaces = new XmlDictionaryString[Members.Count]; 787for (int i = 0; i < Members.Count; i++) 998if (tempMembers.Count > 1) 1043for (int i = 0; i < membersInHierarchy.Count - 1; i++) 1048while (endIndex < membersInHierarchy.Count - 1 1440boundClassContract.Members = new List<DataMember>(Members.Count); 1485Dictionary<string, DataMember> membersDictionary = new Dictionary<string, DataMember>(Members.Count); 1487for (int i = 0; i < Members.Count; i++) 1492for (int i = 0; i < dataContract.Members.Count; i++)
System\Runtime\Serialization\CodeExporter.cs (2)
867for (int i = 0; i < classDataContract.Members.Count; i++) 1099for (int i = 0; i < enumDataContract.Members.Count; i++)
System\Runtime\Serialization\DataContract.cs (6)
2562if (level >= nestedParamCounts.Count) 2566nestedParamCounts.Add((level == nestedParamCounts.Count) ? count : 0); 2567} while (level >= nestedParamCounts.Count); 2597return paramGenericInfos.Count; 2613for (int j = 0; j < paramGenericInfos.Count; j++) 2628for (int j = 0; j < paramGenericInfos.Count; j++)
System\Runtime\Serialization\DataContractSet.cs (2)
171for (int i = 0; i < classDataContract.Members.Count; i++) 466for (int i = 0; i < types.Count; i++)
System\Runtime\Serialization\EnumDataContract.cs (14)
198XmlDictionary dictionary = new XmlDictionary(2 + Members.Count); 201childElementNames = new XmlDictionaryString[Members.Count]; 202for (int i = 0; i < Members.Count; i++) 337for (int i = 0; i < Values.Count; i++) 349for (int i = 0; i < Values.Count; i++) 429for (int i = 0; i < Members.Count; i++) 466if (Members.Count != dataContract.Members.Count || Values.Count != dataContract.Values.Count) 468string[] memberNames1 = new string[Members.Count], memberNames2 = new string[Members.Count]; 469for (int i = 0; i < Members.Count; i++) 476for (int i = 0; i < Members.Count; i++)
System\Runtime\Serialization\Json\JsonFormatReaderGenerator.cs (2)
419for (int i = 0; i < classContract.Members.Count; i++, memberCount++) 481for (int i = 0; i < members.Count; i++, memberCount++)
System\Runtime\Serialization\Json\JsonFormatWriterGenerator.cs (3)
287ilg.Call(contextArg, XmlFormatGeneratorStatics.IncrementItemCountMethod, classContract.Members.Count); 289for (int i = 0; i < classContract.Members.Count; i++, memberCount++) 337childElementIndex += classContract.Members.Count;
System\Runtime\Serialization\SchemaExporter.cs (2)
135for (int i = 0; i < classDataContract.Members.Count; i++) 433for (int i = 0; i < enumDataContract.Values.Count; i++)
System\Runtime\Serialization\SchemaImporter.cs (5)
1013int prevMemberIndex = dataContract.Members.Count - 1; 1018memberOrder = dataContract.Members.Count; 1024memberOrder = dataContract.Members.Count; 1115if (keyValueContract == null || keyValueContract.Members == null || keyValueContract.Members.Count != 2 1221dataContract.Values.Add(SchemaExporter.GetDefaultEnumValue(isFlags, dataContract.Members.Count));
System\Runtime\Serialization\XmlFormatReaderGenerator.cs (2)
402for (int i = 0; i < classContract.Members.Count; i++, memberCount++) 456for (int i = 0; i < members.Count; i++, memberCount++)
System\Runtime\Serialization\XmlFormatWriterGenerator.cs (4)
314ilg.Call(contextArg, XmlFormatGeneratorStatics.IncrementItemCountMethod, classContract.Members.Count); 316for (int i = 0; i < classContract.Members.Count; i++, memberCount++) 361childElementIndex += classContract.Members.Count; 798for (int j = 0; j < members.Count; j++)
System\Xml\XmlMtomWriter.cs (2)
247contentID = GenerateUriForMimePart((mimeParts == null) ? 1 : mimeParts.Count + 1); 274contentID = GenerateUriForMimePart((mimeParts == null) ? 1 : mimeParts.Count + 1);
System.ServiceModel (332)
System\ServiceModel\Channels\BaseUriWithWildcard.cs (2)
138tokens = new string[splitLocations.Count + 1]; 142if (i < splitLocations.Count)
System\ServiceModel\Channels\BinaryMessageEncoder.cs (1)
1071get { return bytes.Count; }
System\ServiceModel\Channels\BufferedOutputAsyncStream.cs (3)
575Fx.Assert(this.refBufferList.Count < size, "Bufferlist is already full."); 577if (this.refBufferList.Count < this.size) 617for (int i = 0; i < this.refBufferList.Count; i++)
System\ServiceModel\Channels\ConnectAlgorithms.cs (4)
60while (results.Count != 0 76if (index == results.Count) // welcomeReceived was signalled 80else if (index == results.Count + 1) // maintainerClosed was signalled 88else if (index == results.Count + 2) // addNeighbor was signalled
System\ServiceModel\Channels\ConnectionDemuxer.cs (1)
78for (int i = 0; i < connectionReaders.Count; i++)
System\ServiceModel\Channels\ConnectionPool.cs (9)
112for (int i = 0; i < endpointKeysToRemove.Count; i++) 137if (itemsToClose != null && itemsToClose.Count > 0) 141for (int i = 0; i < itemsToClose.Count; i++) 284if (busyConnections.Count > 0) 354for (int i = 0; i < itemsToClose.Count; i++) 369for (int i = 0; i < idleItemsToClose.Count; i++) 374for (int i = 0; i < busyConnections.Count; i++) 468for (int i = 0; i < itemsToClose.Count; i++) 478TD.ConnectionPoolMiss(key != null ? key.ToString() : string.Empty, busyConnections.Count);
System\ServiceModel\Channels\ConnectionPoolRegistry.cs (3)
37for (int i = 0; i < registryEntry.Count; i++) 71for (int i = 0; i < registryEntry.Count; i++) 80if (registryEntry.Count == 0)
System\ServiceModel\Channels\CorrelationCallbackMessageProperty.cs (2)
42if (callback.neededData != null && callback.neededData.Count > 0) 55get { return this.neededData == null || this.neededData.Count == 0; }
System\ServiceModel\Channels\DatagramAdapter.cs (4)
617for (int i = 0; i < items.Count; i++) 1060activeChannels = new TSessionChannel[this.activeChannels.Count]; 1079activeChannels = new TSessionChannel[this.activeChannels.Count]; 1100activeChannels = new TSessionChannel[this.activeChannels.Count];
System\ServiceModel\Channels\DefaultWebSocketConnectionHandler.cs (1)
146if (tokenList.Count == 0)
System\ServiceModel\Channels\HttpTransportBindingElement.cs (2)
761if (assertionNames != null && assertionNames.Count > 0) 763if (assertionNames.Count == 1)
System\ServiceModel\Channels\IdlingCommunicationPool.cs (1)
235for (int i = 0; i < itemsToClose.Count; i++)
System\ServiceModel\Channels\MsmqOutputSessionChannel.cs (5)
41for (int i = 0; i < this.buffers.Count; i++) 57for (int i = 0; i < this.buffers.Count; i++) 68for (int i = 0; i < this.buffers.Count - 1; i++) 84if (!isAborting && this.buffers.Count > 1) 107MsmqDiagnostics.SessiongramSent(this.Session.Id, msmqMessage.MessageId, this.buffers.Count);
System\ServiceModel\Channels\PeerFlooder.cs (2)
68if (this.Neighbors.Count <= 1) 145if (neighbors.Count == 0)
System\ServiceModel\Channels\PeerIPHelper.cs (1)
204if (addresses.Count > 0)
System\ServiceModel\Channels\PeerMaintainer.cs (2)
450int count = Math.Min(this.config.MaxReferrals, neighbors.Count); 536for (int i = 0; i < nresolves && reply.Count < config.MaxResolveAddresses && isOpen && timeoutHelper.RemainingTime() > TimeSpan.Zero; i++)
System\ServiceModel\Channels\PeerNeighborManager.cs (6)
83return this.connectedNeighborList.Count; 115return this.neighborList.Count; 166Fx.Assert(this.neighborList.Count == 0, "neighbor count should be 0"); 167Fx.Assert(this.connectedNeighborList.Count == 0, "Connected neighbor count should be 0"); 627if (this.isOnline && this.connectedNeighborList.Count == 0) 634if (this.neighborList.Count == 0 && this.shutdownEvent != null)
System\ServiceModel\Channels\PipeConnection.cs (3)
2144for (int i = 0; i < pendingAccepts.Count; i++) 2422int capacity = allowedSids == null ? 3 : 2 + allowedSids.Count; 2439for (int i = 0; i < allowedSids.Count; i++)
System\ServiceModel\Channels\PnrpPeerResolver.cs (5)
382if (addresses.Count != 0) 426if (addressList.Count > MaxAddressEntries) 428addressList.RemoveRange(MaxAddressEntries, addressList.Count - MaxAddressEntries); 677if (handles.Count == 0) 707if ((lastException != null) && (nodeAddressList.Count == 0))
System\ServiceModel\Channels\ReliableReplySessionChannel.cs (4)
667for (int i = 0; i < this.acked.Count; i++) 1394for (int i = 0; i < this.innerContexts.Count; i++) 1568for (int i = 0; i < this.innerContexts.Count; i++) 1713while (this.currentContext < this.context.innerContexts.Count)
System\ServiceModel\Channels\ReliableSessionBindingElementImporter.cs (1)
219if (wsrmAlternatives.Count == 0)
System\ServiceModel\Channels\RequestChannel.cs (3)
129if (outstandingRequests.Count > 0) 131requests = new IRequestBase[outstandingRequests.Count]; 193if (outstandingRequests.Count == 0)
System\ServiceModel\Channels\ServiceChannelFactory.cs (6)
242channel = (channelsList.Count > 0) ? channelsList[channelsList.Count - 1] : null; 252channel = (channelsList.Count > 0) ? channelsList[channelsList.Count - 1] : null; 266count = channelsList.Count; 281for (int index = 0; index < channelsList.Count; index++)
System\ServiceModel\Channels\TransactionFlowProperty.cs (1)
143if (property.issuedTokens == null || property.issuedTokens.Count == 0)
System\ServiceModel\Channels\TransmissionStrategy.cs (3)
418if (this.retransmissionWindow.Count == 0) 426while (this.retransmissionWindow.Count > 0) 776send = (this.retransmissionWindow.Count == 0);
System\ServiceModel\ComIntegration\ComPlusTypeLoader.cs (2)
52if (contractInfo.Operations.Count == 0) 99if (guidList.Count > 0 || contractConfigElement.PersistableTypes.EmitClear)
System\ServiceModel\ComIntegration\DispatchProxy.cs (1)
220if (mInfo.paramList.Count != cArgs)
System\ServiceModel\Configuration\ServiceModelConfigurationElementCollection.cs (4)
95if (0 == elementKeys.Count) 99else if (1 == elementKeys.Count) 108for (int i = 0; i < elementKeys.Count - 1; i++) 113elementKeysString = elementKeysString.Append(elementKeys[elementKeys.Count - 1]);
System\ServiceModel\Configuration\ServiceModelExtensionCollectionElement.cs (6)
78get { return this.Items.Count; } 215List<string> propertiesToRemove = new List<string>(this.Items.Count); 489for (int index = 0; index < this.Items.Count; ++index) 501for (int i = 0; i < this.Items.Count; i++) 566for (int i = 0; i < this.Items.Count; i++) 583for (int i = 0; i < this.Items.Count; i++)
System\ServiceModel\Description\ConfigLoader.cs (3)
6690 == ConfigLoader.resolvedEndpoints.Count) 8420 == ConfigLoader.resolvedEndpoints.Count) 11720 == ConfigLoader.resolvedBindings.Count)
System\ServiceModel\Description\ServiceReflector.cs (1)
652if (types.Count == 0)
System\ServiceModel\Description\TypeLoader.cs (3)
666for (int i = 0; i < types.Count; i++) 718for (int i = 0; i < types.Count; i++) 1302for (int i = 0; i < contractMembers.Count; i++)
System\ServiceModel\Description\XmlSerializerOperationBehavior.cs (7)
769int[] uniqueIndexes = new int[Mappings.Count]; 770for (int srcIndex = 0; srcIndex < Mappings.Count; srcIndex++) 777uniqueIndex = uniqueMappings.Count - 1; 782if (uniqueMappings.Count == Mappings.Count) 784XmlSerializer[] serializers = new XmlSerializer[Mappings.Count]; 785for (int i = 0; i < Mappings.Count; i++)
System\ServiceModel\Diagnostics\MessageLogger.cs (1)
70get { return MessageLogger.Filters.Count; }
System\ServiceModel\Diagnostics\PerformanceCounters.cs (2)
366index = PerformanceCounters.PerformanceCountersForEndpointList.Count - 1; 845if (PerformanceCounters.PerformanceCountersForEndpointList.Count == 0)
System\ServiceModel\Diagnostics\ServiceModelPerformanceCounters.cs (1)
167for (int i = 0; i < this.performanceCounters.Count; ++i)
System\ServiceModel\Dispatcher\ActionMessageFilterTable.cs (9)
191if (this.always.Count + filters.Count > 1) 201if (this.always.Count > 1) 206else if (this.always.Count == 1) 216for (int i = 0; i < this.always.Count; ++i) 230for (int i = 0; i < filters.Count; ++i) 239for (int i = 0; i < this.always.Count; ++i) 253for (int i = 0; i < filters.Count; ++i) 442if (filters.Count == 1)
System\ServiceModel\Dispatcher\AndMessageFilterTable.cs (7)
149for (int i = 0; i < pairs.Count; ++i) 173for (int i = 0; i < pairs.Count; ++i) 196for (int i = 0; i < pairs.Count; ++i) 210for (int i = 0; i < pairs.Count; ++i) 224for (int i = 0; i < pairs.Count; ++i) 238for (int i = 0; i < pairs.Count; ++i) 258for (int i = 0; i < pairs.Count; ++i)
System\ServiceModel\Dispatcher\DuplexChannelBinder.cs (2)
596if (this.timedOutRequests != null && this.timedOutRequests.Count > 0) 600if (this.timedOutRequests != null && this.timedOutRequests.Count > 0)
System\ServiceModel\Dispatcher\EndpointAddressMessageFilterTable.cs (4)
372int candiCount = cset.candidates.Count; 443for (int i = 0; i < candis.Count; ++i) 477for (int i = 0; i < candis.Count; ++i) 737if (cset.candidates.Count == 1)
System\ServiceModel\Dispatcher\EndpointAddressProcessor.cs (2)
104if (attrSet.Count > 0) 107for (int i = 0; i < attrSet.Count; ++i)
System\ServiceModel\Dispatcher\EndpointDispatcherTable.cs (5)
31return ((this.cachedEndpoints != null) ? cachedEndpoints.Count : 0) + 55if (this.cachedEndpoints.Count < optimizationThreshold) 62for (int i = 0; i < this.cachedEndpoints.Count; i++) 105if (this.cachedEndpoints != null && this.cachedEndpoints.Count > 0) 107for (int i = 0; i < this.cachedEndpoints.Count; i++)
System\ServiceModel\Dispatcher\PrefixEndpointAddressMessageFilterTable.cs (1)
143if (cset.candidates.Count == 1)
System\ServiceModel\Dispatcher\QueryFunctions.cs (1)
181for (int i = 0; i < this.iterList.Count; ++i)
System\ServiceModel\Dispatcher\QuerySubExprEliminator.cs (19)
91for (int i = 0; i < this.children.Count; ++i) 153if (this.children.Count == 0) 165else if (this.children.Count == 1) 242for (int i = 0; i < this.children.Count; ++i) 250this.children.Capacity = this.children.Count; 252for (int i = 0; i < this.children.Count; ++i) 334NodeSequence[] childSequences = new NodeSequence[this.children.Count]; 336for (int i = 0; i < this.children.Count; ++i) 358for (int i = 0; i < lst.Count; ++i) 366for (int i = 0; i < lst.Count; ++i) 377for (int i = 0; i < lst.Count; ++i) 388for (int i = 0; i < this.children.Count; ++i) 417for (int i = 0; i < this.children.Count; ++i) 440if (exprs.Count == 0) 525for (int i = 0; i < this.exprList.Count; ++i) 593for (int i = 0; i < exprs.Count; ++i) 606for (int i = 0; i < this.exprList.Count; ++i) 614this.exprList.Capacity = this.exprList.Count; 615for (int i = 0; i < this.exprList.Count; ++i)
System\ServiceModel\Dispatcher\SynchronizedChannelCollection.cs (1)
52for (int i = 0; i < items.Count; i++)
System\ServiceModel\Dispatcher\XPathMessageFilter.cs (1)
681for (int i = 0; i < prefixes.Count; ++i)
System\ServiceModel\ExtensionCollection.cs (1)
80for (int i = 0; i < items.Count; i++)
System\ServiceModel\PeerResolvers\CustomPeerResolverService.cs (2)
458if (entries.Count <= maxEntries) 470index = random.Next(entries.Count);
System\ServiceModel\PeerResolvers\PeerDefaultCustomResolverClient.cs (1)
138if (addresslist.Count == 0)
System\ServiceModel\Security\IdentityModelServiceAuthorizationManager.cs (3)
175if (uncheckedAuthorizationPolicies.Count > 0) 184if (identities.Count == 0) 281if (baseAuthorizationPolicies.Count == 0)
System\ServiceModel\Security\InitiatorSessionSymmetricMessageSecurityProtocol.cs (1)
251for (int i = 0; i < sessionTokens.Count; ++i)
System\ServiceModel\Security\MessagePartSpecification.cs (9)
43get { return this.headerTypes != null && this.headerTypes.Count > 0; } 103if (headerTypes != null && headerTypes.Count > 0) 107this.headerTypes = new List<XmlQualifiedName>(headerTypes.Count); 110for (int i = 0; i < headerTypes.Count; i++) 125List<XmlQualifiedName> noDuplicates = new List<XmlQualifiedName>(headerTypes.Count); 126for (int i = 0; i < headerTypes.Count; i++) 132for (int j = 0; j < noDuplicates.Count; j++) 200for (int i = 0; i < this.headerTypes.Count; i++) 226if (this.headerTypes != null && this.headerTypes.Count > 0)
System\ServiceModel\Security\NegotiationTokenAuthenticator.cs (5)
659if (this.activeNegotiationChannels1.Count == 0 && this.activeNegotiationChannels2.Count == 0) 678for (int i = 0; i < this.activeNegotiationChannels2.Count; ++i) 699if (this.activeNegotiationChannels1.Count == 0 && this.activeNegotiationChannels2.Count == 0)
System\ServiceModel\Security\ReceiveSecurityHeader.cs (3)
961for (int i = 0; i < this.supportingTokenTrackers.Count; ++i) 1485for (int i = 0; i < this.supportingTokenTrackers.Count; ++i) 1516for (int i = 0; i < this.allowedAuthenticators.Count; ++i)
System\ServiceModel\Security\SecuritySessionFilter.cs (2)
109for (int i = 0; i < contextIds.Count; ++i) 331for (int i = 0; i < contextIds.Count; ++i)
System\ServiceModel\Security\SecuritySessionSecurityTokenAuthenticator.cs (1)
644for (int i = 0; i < authorizationPolicies.Count; i++)
System\ServiceModel\Security\SecuritySessionServerSettings.cs (4)
1342if (this.futureSessionTokens.Count == this.Settings.MaximumPendingKeysPerSession) 1417if (this.futureSessionTokens.Count > 0 && incomingToken.KeyGeneration != this.currentSessionToken.KeyGeneration) 1420for (int i = 0; i < this.futureSessionTokens.Count; ++i) 1438for (int i = 0; i < futureSessionTokens.Count; ++i)
System\ServiceModel\Security\SecurityUtils.cs (1)
1039for (int i = 0; i < identities.Count; ++i)
System\ServiceModel\Security\SendSecurityHeader.cs (2)
536(this.basicSupportingTokenParameters == null || this.basicSupportingTokenParameters.Count == 0) && 592if (this.basicSupportingTokenParameters != null && this.basicSupportingTokenParameters.Count > 0
System\ServiceModel\Security\SspiNegotiationTokenProvider.cs (1)
133for (int i = 0; i < nodesToRemove.Count; ++i)
System\ServiceModel\Security\Tokens\IssuedSecurityTokenProvider.cs (2)
1035if (this.rsaSecurityTokens.Count >= MaxRsaSecurityTokenCacheSize) 1054for (int i = 0; i < this.rsaSecurityTokens.Count; ++i)
System\ServiceModel\Security\Tokens\WindowsUserNameCachingSecurityTokenAuthenticator.cs (2)
62int pruningAmount = (items.Count * (100 - lowWaterMarkFactor)) / 100; 64pruningAmount = pruningAmount <= 0 ? items.Count : pruningAmount;
System\ServiceModel\Security\WindowsSspiNegotiation.cs (1)
396if (list.Count > 0)
System\ServiceModel\Security\WSSecurityOneDotZeroReceiveSecurityHeader.cs (1)
549for (int i = 0; i < this.earlyDecryptedDataReferences.Count; i++)
System\ServiceModel\Security\WSSecurityPolicy.cs (2)
3100for (int i = 0; i < this.drivers.Count; ++i) 3114for (int i = 0; i < this.drivers.Count; ++i)
System\ServiceModel\Security\WSSecurityTokenSerializer.cs (11)
147for (int i = 0; i < this.serializerEntries.Count; ++i) 212for (int i = 0; i < this.tokenEntries.Count; i++) 224for (int i = 0; i < this.tokenEntries.Count; i++) 249for (int i = 0; i < this.tokenEntries.Count; i++) 266for (int i = 0; i < this.tokenEntries.Count; i++) 396for (int i = 0; i < this.tokenEntries.Count; i++) 413for (int i = 0; i < this.tokenEntries.Count; i++) 454for (int i = 0; i < this.tokenEntries.Count; i++) 583for (int i = 0; i < this.dictionaryStrings.Count; ++i) 597for (int i = 0; i < this.dictionaryStrings.Count; ++i) 614for (int i = 0; i < this.dictionaryStrings.Count; ++i)
System\ServiceModel\Security\WSTrust.cs (1)
415if (rstrCollection.Count == 0)
System\ServiceModel\Security\WSTrustServiceContract.cs (1)
125if (tokenList.Count > 0)
System\ServiceModel\ServiceHost.cs (2)
503if (DiagnosticUtility.ShouldTraceInformation && defaultEndpoints.Count > 0) 1987for (int i = 0; i < interfaces.Count; i++)
System\ServiceModel\SynchronizedCollection.cs (9)
59get { lock (this.sync) { return this.items.Count; } } 85if (index < 0 || index >= this.items.Count) 87SR.GetString(SR.ValueMustBeInRange, 0, this.items.Count - 1))); 98int index = this.items.Count; 147if (index < 0 || index > this.items.Count) 149SR.GetString(SR.ValueMustBeInRange, 0, this.items.Count))); 157int count = items.Count; 186if (index < 0 || index >= this.items.Count) 188SR.GetString(SR.ValueMustBeInRange, 0, this.items.Count - 1)));
System\ServiceModel\SynchronizedDisposablePool.cs (7)
34if (this.items.Count > 0) 36items = new T[this.items.Count]; 61if (!disposed && this.items.Count < this.maxCount) 65if (!disposed && this.items.Count < this.maxCount) 77if (!disposed && this.items.Count > 0) 81if (!disposed && this.items.Count > 0) 83int index = this.items.Count - 1;
System\ServiceModel\SynchronizedKeyedCollection.cs (3)
73for (int i = 0; i < this.Items.Count; i++) 147for (int i = 0; i < Items.Count; i++) 212for (int i = 0; i < Items.Count; i++)
System\ServiceModel\XmlBuffer.cs (1)
80get { return this.sections.Count; }
System\UriTemplate.cs (42)
258this.firstOptionalSegment = this.segments.Count; 553else if (numMatchedSegments < this.segments.Count) 584Fx.Assert(segmentsCount <= this.segments.Count, "How can that be? The Trie is constructed that way!"); 586Fx.Assert(segmentsCount <= other.segments.Count, "How can that be? The Trie is constructed that way!"); 665Fx.Assert(segmentIndex < this.segments.Count, 672Fx.Assert(segmentIndex < this.segments.Count, 679Fx.Assert(segmentIndex < this.segments.Count, 685else if (this.segments.Count > 0 || this.wildcard != null) 687for (int i = 0; i < this.segments.Count; i++) 741Fx.Assert(numMatchedSegments < this.segments.Count, "Otherwise - no defaults to bind"); 744for (int i = numMatchedSegments; i < this.segments.Count; i++) 775if (relativeSegmentsIndex < this.segments.Count) 843if (this.segments.Count != other.segments.Count) 847for (int i = 0; i < this.segments.Count; ++i) 850(i == this.segments.Count - 1) && !this.HasWildcard && (this.ignoreTrailingSlash || other.ignoreTrailingSlash))) 1204(varIndex == this.pathSegmentVariableNames.Count - 1)) 1342if ((parameters.Length < this.pathSegmentVariableNames.Count) || 1343(parameters.Length > this.pathSegmentVariableNames.Count + this.queryValueVariableNames.Count)) 1347this.pathSegmentVariableNames.Count, this.queryValueVariableNames.Count, 1352if (parameters.Length == this.pathSegmentVariableNames.Count + this.queryValueVariableNames.Count) 1358normalizedParameters = new string[this.pathSegmentVariableNames.Count + this.queryValueVariableNames.Count]; 1375Fx.Assert(this.pathSegmentVariableNames.Count > 0, "Otherwise, how can we have default values"); 1377for (int i = this.pathSegmentVariableNames.Count - 1; (i >= 0) && (this.firstNullablePathVariable == -1); i--) 1417if (this.firstNullablePathVariable < this.pathSegmentVariableNames.Count) 1425for (int i = this.pathSegmentVariableNames.Count - 1; i >= this.firstNullablePathVariable; i--) 1427int segmentIndex = this.owner.segments.Count - (this.pathSegmentVariableNames.Count - i); 1442int numNullablePathVariables = (this.pathSegmentVariableNames.Count - this.firstNullablePathVariable); 1443firstOptionalSegment = this.owner.segments.Count - numNullablePathVariables; 1485for (int i = 0; i < this.pathSegmentVariableNames.Count; i++) 1493lastNonDefaultPathParameter = this.pathSegmentVariableNames.Count - 1; 1495(this.owner.segments[this.owner.segments.Count - 1].Nature != UriTemplatePartType.Literal)) 1533(i == this.pathSegmentVariableNames.Count - 1)) 1577string[] normalizedParameters = new string[this.pathSegmentVariableNames.Count + this.queryValueVariableNames.Count]; 1603normalizedParameters[this.pathSegmentVariableNames.Count + queryVarIndex] = (string.IsNullOrEmpty(value) ? string.Empty : value); 1712Fx.Assert(numMatchedSegments == this.owner.segments.Count, "We should have matched the other segments");
System\UriTemplateCompoundPathSegment.cs (24)
100if (string.IsNullOrEmpty(result.varLitPairs[result.varLitPairs.Count - 1].Literal)) 111if (string.IsNullOrEmpty(result.varLitPairs[result.varLitPairs.Count - 1].Literal)) 126Fx.Assert(valueIndex + this.varLitPairs.Count <= values.Length, "Not enough values to bind"); 128for (int pairIndex = 0; pairIndex < this.varLitPairs.Count; pairIndex++) 155if (this.varLitPairs.Count != otherAsCompound.varLitPairs.Count) 163for (int pairIndex = 0; pairIndex < this.varLitPairs.Count; pairIndex++) 206for (int pairIndex = 0; pairIndex < this.varLitPairs.Count - 1; pairIndex++) 222if (string.IsNullOrEmpty(this.varLitPairs[varLitPairs.Count - 1].Literal)) 226boundParameters.Add(this.varLitPairs[varLitPairs.Count - 1].VarName, 231else if ((segmentPosition + this.varLitPairs[varLitPairs.Count - 1].Literal.Length < segment.Length) && 232segment.EndsWith(this.varLitPairs[varLitPairs.Count - 1].Literal, StringComparison.Ordinal)) 236boundParameters.Add(this.varLitPairs[varLitPairs.Count - 1].VarName, 237segment.Substring(segmentPosition, segment.Length - segmentPosition - this.varLitPairs[varLitPairs.Count - 1].Literal.Length)); 377return (other.varLitPairs.Count - this.varLitPairs.Count); 399return (other.varLitPairs.Count - this.varLitPairs.Count); 416return (other.varLitPairs.Count - this.varLitPairs.Count); 429return (other.varLitPairs.Count - this.varLitPairs.Count); 437string reversedSuffix = ReverseString(this.varLitPairs[this.varLitPairs.Count - 1].Literal); 438string reversedOtherSuffix = ReverseString(other.varLitPairs[other.varLitPairs.Count - 1].Literal);
System\UriTemplateEquivalenceComparer.cs (2)
46for (int i = obj.segments.Count - 1; i >= 0; --i) 53return obj.segments.Count + obj.queries.Count;
System\UriTemplateTable.cs (8)
231minSegmentsCount = candidate.Template.segments.Count; 234else if (candidate.Template.segments.Count < minSegmentsCount) 236minSegmentsCount = candidate.Template.segments.Count; 240else if (candidate.Template.segments.Count == minSegmentsCount) 247Fx.Assert(nextCandidates[0].Template.segments.Count == minSegmentsCount, "Trivial"); 339segmentsCount = candidates[i].Template.segments.Count; 341else if (segmentsCount != candidates[i].Template.segments.Count) 519if (fastPathCandidates.Count != slowPathCandidates.Count)
System\UriTemplateTrieNode.cs (19)
63bool needProcessingOnFinalNode = ((ut.segments.Count == 0) || ut.HasWildcard || 64ut.segments[ut.segments.Count - 1].EndsWithSlash); 65for (int i = 0; i < ut.segments.Count; ++i) 74Fx.Assert(i == ut.segments.Count - 1, "only the last segment can !EndsWithSlash"); 162for (int i = 0; i < answer.Items.Count; i++) 201if (currentLocation.node.endOfPath.Items.Count != 0) 207else if (currentLocation.node.star.Items.Count != 0) 278else if (considerStar && currentLocation.node.star.Items.Count != 0) 324else if (considerVariable && currentLocation.node.finalVariableSegment.Items.Count != 0) 330else if (considerStar && currentLocation.node.star.Items.Count != 0) 448if (pes.Items.Count < 2) 453for (int i = 0; i < pes.Items.Count - 1; ++i) 461UriTemplate[] a = new UriTemplate[pes.Items.Count]; 465if (pes.SegmentsCount < kvp.Key.segments.Count) 483if (node.endOfPath.Items.Count > 0) 487if (node.finalVariableSegment.Items.Count > 0) 491if (node.star.Items.Count > 0) 499Fx.Assert(pes.Items.Count > 0, "Otherwise, why creating the dictionary?"); 505Fx.Assert(pes.Items.Count > 0, "Otherwise, why creating the collection?");
System.ServiceModel.Activation (11)
System\ServiceModel\Activation\CollectibleLRUCache.cs (7)
182if (currentCollectibleBatch.Count >= collectTargetCount) 188if (currentCollectibleBatch.Count == 0) 193for (int i = 0; i < currentCollectibleBatch.Count; i++) 233if (this.currentCollectibleBatch.Count > 0) 313this.totalCollectCount = this.Count; 320for (int i = 0; i < this.Count; i++) 342for (int i = 0; i < this.Count; i++)
System\ServiceModel\Activation\HostedTransportConfigurationBase.cs (3)
45Uri[] addresses = new Uri[listenAddresses.Count]; 46for (int i = 0; i < listenAddresses.Count; i++) 60for (int i = 0; i < listenAddresses.Count; i++)
System\ServiceModel\Activation\MetabaseSettings.cs (1)
147if (spnList.Count != 0)
System.ServiceModel.Activities (15)
System\ServiceModel\Activities\Dispatcher\BufferedReceiveManager.cs (4)
175while (index < properties.Count && bookmarks.Count > 0) 182for (int i = 0; i < bookmarks.Count; ++i) 211if (bookmarks.Count == 0)
System\ServiceModel\Activities\Dispatcher\WorkflowServiceInstance.cs (11)
687if (this.idleWaiters != null && this.idleWaiters.Count > 0) 698if (this.idleWaiters.Count > 0) 718if (this.nextIdleWaiters != null && this.nextIdleWaiters.Count > 0) 727for (int i = 0; i < this.nextIdleWaiters.Count; i++) 1754if (this.checkCanPersistWaiters != null && this.checkCanPersistWaiters.Count > 0 && this.Controller.IsPersistable) 2095bool isFirstRequest = (pendingList.Count == 0); 2121if (pendingList.Count > 0) 2131if (pendingList.Count == 0) 2241if (this.pendingRequests.Count == 0) 3766Fx.Assert(modules.Count > 0, "should only setup modules if we have some"); 5450if (this.waiters == null || this.waiters.Count == 0)
System.ServiceModel.Channels (2)
System\ServiceModel\Channels\UdpChannelFactory.cs (1)
254if (socketList.Count == 0)
System\ServiceModel\Channels\UdpChannelListener.cs (1)
594if (listenSockets.Count == 0)
System.ServiceModel.Discovery (7)
System\ServiceModel\Discovery\ScopeCompiler.cs (5)
428for (int i = 0; i < attrTypeList.Count - 1; i++) 439if (attrTypeList.Count > 1) 441rdnBuilder.Append(attrTypeList[attrTypeList.Count - 1]); 442if (attrTypeValueTable[attrTypeList[attrTypeList.Count - 1]] != null) 445rdnBuilder.Append(attrTypeValueTable[attrTypeList[attrTypeList.Count - 1]]);
System\ServiceModel\Discovery\ServiceDiscoveryBehavior.cs (2)
58if (serviceDescription.Endpoints.Count > appEndpoints.Count) 72for (int i = 0; i < appEndpoints.Count; i++)
System.ServiceModel.Internals (5)
System\Runtime\AsyncWaitHandle.cs (1)
176else if (this.asyncWaiters != null && this.asyncWaiters.Count > 0)
System\Runtime\Collections\ObjectCache.cs (2)
263for (int i = 0; i < expiredItems.Count; i++) 288for (int i = 0; i < itemsToClose.Count; i++)
System\Runtime\InputQueue.cs (2)
666if (readerQueue.Count == 0 && waiterList.Count == 0) 686if (waiterList.Count > 0)
System.ServiceModel.Routing (14)
System\ServiceModel\Dispatcher\StrictAndMessageFilter.cs (4)
149if (results.Count == 1) 153if (results.Count > 1) 165if (results.Count == 1) 169else if (results.Count > 1)
System\ServiceModel\Routing\MessageRpc.cs (3)
231TD.RoutingServiceMessageRoutedToEndpoints(this.eventTraceActivity, this.UniqueID, endpointLists.Count.ToString(TD.Culture)); 233if (endpointLists.Count == 0) 237this.operations = new List<SendOperation>(endpointLists.Count);
System\ServiceModel\Routing\SendOperation.cs (5)
35if (this.endpointTraits.Count == 0) 45Fx.Assert(this.currentIndex < this.endpointTraits.Count, "CurrentEndpoint should not be accessed after TryMoveToAlternate returned false!"); 54get { return this.currentIndex < (this.endpointTraits.Count - 1); } 59get { return (this.endpointTraits.Count - 1); } 92if (++this.currentIndex < this.endpointTraits.Count)
System\ServiceModel\Routing\SessionChannels.cs (2)
57if (localClients != null && localClients.Count > 0) 146int count = this.sessionList.Count;
System.ServiceModel.WasHosting (2)
System\ServiceModel\WasHosting\MetabaseSettingsIis7.cs (2)
193if (providerList.Count != 0) 525if (providerList.Count != 0)
System.ServiceModel.Web (10)
System\ServiceModel\Dispatcher\UnwrappedTypesXmlSerializerManager.cs (1)
99for (int i = 0; i < types.Count; ++i)
System\ServiceModel\Dispatcher\UriTemplateClientFormatter.cs (4)
150totalNumUTVars = neededPathVars.Count + neededQueryVars.Count; 191if (neededPathVars.Count != 0) 196if (neededQueryVars.Count != 0)
System\ServiceModel\Dispatcher\WebHttpDispatchOperationSelectorData.cs (1)
19int allowedHeadersCount = this.AllowedMethods.Count;
System\ServiceModel\Web\CachingParameterInspector.cs (1)
201if (dependencyList.Count == 0)
System\ServiceModel\Web\OutgoingWebResponseContext.cs (3)
281escapeCharacterInsertIndices.Add(x + escapeCharacterInsertIndices.Count); 292escapeCharacterInsertIndices.Add(lastEtagIndex + escapeCharacterInsertIndices.Count); 297int escapeCharacterInsertIndicesCount = (escapeCharacterInsertIndices == null) ? 0 : escapeCharacterInsertIndices.Count;
System.Transactions (6)
System\Transactions\Trace\TraceXPathNavigator.cs (6)
50if ((this.elementIndex + 1) < this.childNodes.Count) 61return this.attributes.Count > 0; 67if ((this.attributeIndex + 1) < this.attributes.Count) 211retval = this.current.text != null || this.current.childNodes.Count > 0; 253if (this.current.childNodes.Count > 0) 259else if (this.current.childNodes.Count == 0 && this.current.text != null)
System.Web (38)
Cache\OutputCache.cs (6)
232if (oce.HeaderElements != null && oce.HeaderElements.Count > 0) { 233headers = new ArrayList(oce.HeaderElements.Count); 234for (int i = 0; i < oce.HeaderElements.Count; i++) { 241if (oce.ResponseElements != null && oce.ResponseElements.Count > 0) { 242buffers = new ArrayList(oce.ResponseElements.Count); 243for (int i = 0; i < oce.ResponseElements.Count; i++) {
Compilation\AssemblyBuilder.cs (1)
837if (noWarnStrings.Count > 0) {
Compilation\BuildManager.cs (1)
1003AssemblyReferenceInfo info = new AssemblyReferenceInfo(_topLevelReferencedAssemblies.Count);
Hosting\ApplicationManager.cs (1)
1787if (switches.Count > 0) {
Hosting\CustomRuntimeManager.cs (2)
42if (suspendListeners == null || suspendListeners.Count == 0) { 46List<IProcessResumeCallback> callbacks = new List<IProcessResumeCallback>(suspendListeners.Count);
HttpApplication.cs (1)
1650Debug.Assert(_moduleConfigInfo.Count >= 0, "_moduleConfigInfo.Count >= 0");
Management\WebEvents.cs (1)
310fieldCount = fields.Count;
PipelineModuleStepContainer.cs (3)
93return stepArray.Count; 100Debug.Assert(eventIndex < stepArray.Count, "eventIndex < stepArray.Count"); 130for (int i = 0; i < stepArray.Count; i++ ) {
UI\RenderTraceListener.cs (1)
135for (int i = _listeners.Count - 1; i >= 0; i--) {
UI\WebControls\AutoFieldsGenerator.cs (1)
86int autoGenFieldPropsCount = AutoGeneratedFieldProperties.Count;
UI\WebControls\DetailsViewRowsGenerator.cs (2)
30if (AutoGeneratedFieldProperties.Count > 0) { 94if ((generatedFields.Count == 0) && throwException) {
UI\WebControls\GridViewColumnsGenerator.cs (1)
139if ((generatedFields.Count == 0) && throwException) {
UI\WebControls\Menu.cs (3)
1299if (index < cacheList.Count) return cacheList[index]; 1304if (cacheList.Count > index) { 1308for (int i = cacheList.Count; i < index; i++) {
UI\WebControls\MenuItemCollection.cs (5)
32return _list.Count; 68AddAt(_list.Count, child); 265if ((_log != null) && (_log.Count > 0)) { 270for (int i = 0; i < _log.Count; i++) { 276if (i < (_log.Count - 1)) {
UI\WebControls\TreeNodeCollection.cs (4)
37return _list.Count; 314if ((_log != null) && (_log.Count > 0)) { 319for (int i = 0; i < _log.Count; i++) { 325if (i < (_log.Count - 1)) {
UI\WebControls\TreeView.cs (3)
1342if (index < cacheList.Count) return cacheList[index]; 1347if (cacheList.Count > index) { 1351for (int i = cacheList.Count; i < index; i++) {
WebSockets\SubprotocolUtil.cs (2)
119if (subprotocols.Count == 0) { 124if (subprotocols.Distinct(StringComparer.Ordinal).Count() != subprotocols.Count) {
System.Web.DataVisualization (63)
Common\ChartTypes\BarChart.cs (1)
390 int numOfSeries = typeSeries.Count;
Common\ChartTypes\BoxPlotChart.cs (5)
301 double numOfSeries = typeSeries.Count; 1070 double numOfSeries = typeSeries.Count; 1796 double percentPointIndex = (yValues.Count - 1.0)/ 100.0 * percentile; 1801if ((int)percentPointIndexInteger < yValues.Count) 1805if ((int)(percentPointIndexInteger + 1) < yValues.Count)
Common\ChartTypes\ColumnChart.cs (1)
301 double numOfSeries = typeSeries.Count;
Common\ChartTypes\ErrorBarChart.cs (3)
396 numberOfLinkedSeries = typeLinkedSeries.Count; 421 numberOfLinkedSeries = typeSeries.Count; 1176 numberOfLinkedSeries = typeLinkedSeries.Count;
Common\ChartTypes\PieChart.cs (3)
699 if(typeSeries.Count == 0) 705 if(typeSeries.Count > 0) 2386 if( typeSeries.Count == 0 )
Common\ChartTypes\StackedBarChart.cs (1)
1426 for(int seriesIndex = 0; seriesIndex < typeSeries.Count; seriesIndex++)
Common\ChartTypes\StackedColumnChart.cs (1)
1468 for(int seriesIndex = 0; seriesIndex < typeSeries.Count; seriesIndex++)
Common\Formulas\FormulaHelpers.cs (4)
1366for (int i = 0; i < this.Count; i++) 1410if (unmappedFormulaFields.Count == 0) 1461for (int i = 0; i < unmappedFormulaFields.Count && seriesFields.Count > 0; ) 1553for (int i = 0; i < unmappedFormulaFields.Count && seriesFields.Count > 0; )
Common\General\AxisLabels.cs (4)
356 if( dataSeries.Count == 0 ) 362string[] dataSeriesNames = new string[dataSeries.Count]; 363for (int i = 0; i < dataSeries.Count; i++) 543 if(seriesArray.Count > 0)
Common\General\AxisScale.cs (9)
1122if (ChartArea.Series.Count == 0) 1608 if( list.Count == 0 ) 1622 if( list.Count == 0 ) 1636 if( list.Count == 0 ) 1650 if( list.Count == 0 ) 1757 if( list.Count == 0 ) 1769 if( list.Count == 0 ) 1781 if( list.Count == 0 ) 1793 if( list.Count == 0 )
Common\General\ChartArea3D.cs (16)
869 if(this._series.Count > 0) 876 if(this._series.Count > 0) 1092 for(int index = 0; !found && index < this.seriesClusters.Count; index++) 1109 clusterIndex = this.seriesClusters.Count; 1126 for(int index = 0; !found && index < this.seriesClusters.Count; index++) 1144 clusterIndex = this.seriesClusters.Count; 1153 clusterIndex = this.seriesClusters.Count; 1157 if(this.seriesClusters.Count <= clusterIndex) 1167 return this.seriesClusters.Count; 1184 for(int clusterIndex = 0; clusterIndex < this.seriesClusters.Count; clusterIndex++) 1196 clusterIndex = (this.seriesClusters.Count - 1) - clusterIndex; 1606 if(seriesNames.Count > 0) 1632 for(int seriesIndex = 0; seriesIndex < seriesList.Count; seriesIndex++) 1651 seriesList.Reverse(seriesIndex, seriesList.Count - seriesIndex); 1748 numOfSeries = seriesNamesList.Count; 1760 seriesNamesList.Count > 0)
Common\General\ChartAreaAxes.cs (8)
281 if( GetYAxesSeries( AxisType.Primary, string.Empty ).Count != 0 ) 307 if( GetYAxesSeries( AxisType.Secondary, string.Empty ).Count != 0 ) 1483if (seriesArray.Count > 0) 1568if (_series.Count == 0) 1607 if ( list.Count == 0 ) 1675 if ( list.Count == 0 && type == AxisType.Secondary ) 1689 if( _series.Count == 0 ) 1785 ArrayList[] seriesXValues = new ArrayList[seriesList.Count];
Common\General\GridTickMarks.cs (2)
199 if(seriesArray.Count > 0) 1260 if(seriesArray.Count > 0)
Common\General\Label.cs (1)
1528if (seriesArray.Count > 0)
Common\General\Selection.cs (1)
2155if (result.Count == 0)
Common\General\StripLine.cs (1)
271 if(seriesArray.Count > 0)
WebForm\General\ChartHttpHandler.cs (2)
2112if (_messages.Count > MessageLimit) 2114_messages.RemoveRange(0, _messages.Count - MessageLimit);
System.Web.DynamicData (4)
DynamicData\FilterRepeater.cs (1)
102return base.Visible && _filters.Count > 0;
DynamicData\MetaModel.cs (1)
41return _contextTypes.Count;
DynamicData\ModelProviders\ColumnProvider.cs (1)
70if (extraAttributes.Count > 0) {
DynamicData\QueryableFilterRepeater.cs (1)
74if (_filters.Count == 0) {
System.Web.Entity (2)
System\Data\WebControls\EntityDataSourceViewSchema.cs (1)
91if (keys.Count > 0)
System\Data\WebControls\EntityDataSourceWrapperCollection.cs (1)
118get { return this._wrapperList.Count; }
System.Web.Entity.Design (18)
System\Data\WebControls\Design\EntityDataSourceContainerNameConverter.cs (2)
36string[] containers = new string[containerNameItems.Count]; 37for (int i = 0; i < containerNameItems.Count; i++)
System\Data\WebControls\Design\EntityDataSourceDataSelection.cs (5)
344Debug.Assert(_selectedEntityTypeProperties != null && _selectedEntityTypeProperties.Count > 0, "expected non-null _selectedEntityTypeProperties with at least one value"); 349Debug.Assert(_selectedEntityTypeProperties.Count == 1, "'Select All (Entity Value)' should be the only property selected"); 464for (int propIndex = 0; propIndex < _entityTypeProperties.Count; propIndex++) 567_selectedEntityTypeProperties.Count == 1 && 647_wizardForm.SetCanFinish(_selectedEntitySetName != null && (_select != null || _selectedEntityTypeProperties.Count > 0));
System\Data\WebControls\Design\EntityDataSourceDataSelectionPanel.cs (2)
282Debug.Assert(entityTypeProperties != null && entityTypeProperties.Count > 0, "unexpected null or empty entityTypeProperties"); 283Debug.Assert(selectedEntityTypeProperties != null && selectedEntityTypeProperties.Count > 0, "unexpected null or empty selectedEntityTypeProperties");
System\Data\WebControls\Design\EntityDataSourceDesignerHelper.cs (5)
563if (dataDirectoryPaths.Count > 0) 568if (metadataWarnings.Count > 0) 580if (metadataPaths.Count > 0) 703Debug.Assert(warnings != null && warnings.Count > 0, "expected non-null and non-empty warnings"); 1385Debug.Assert(properties.Count > 0, "expected entity to have at least one property");
System\Data\WebControls\Design\EntityDataSourceEntitySetNameConverter.cs (2)
38string[] entitySetNames = new string[entitySetNameItems.Count]; 39for (int i = 0; i < entitySetNameItems.Count; i++)
System\Data\WebControls\Design\EntityDataSourceEntityTypeFilterConverter.cs (2)
43string[] entityTypeFilters = new string[entityTypeFilterItems.Count]; 44for (int i = 0; i < entityTypeFilterItems.Count; i++)
System.Web.Extensions (29)
Compilation\WCFBuildProvider.cs (2)
349if (mapFile.MetadataList.Count > 0 && mapFile.ClientOptions.ServiceContractMappingList.Count == 0)
Compilation\WCFModel\SchemaMerger.cs (1)
107if (duplicatedItems.Count > 0)
Handlers\ScriptModule.cs (1)
140for (int i = 0; i < cookies.Count; i++) {
Handlers\ScriptResourceHandler.cs (2)
643if (assemblyResourceLists.Count == 1) { 646if ((reference.Item1 != null) && (reference.Item2.Count == 1)) {
Script\Services\WebServiceData.cs (1)
229for (int i = typeList.Count - 1; i >= 0; --i) {
Script\Services\WebServiceTypeData.cs (1)
308value = enumNames.Count;
UI\PageRequestManager.cs (10)
173if (list != null && list.Count > 0) { 176for (int i = 0; i < list.Count; i++) { 277if (list != null && list.Count > 0) { 280for (int i = 0; i < list.Count; i++) { 382if ((_allUpdatePanels != null) && (_allUpdatePanels.Count != 0)) { 499_updatePanelsToRefresh = new List<UpdatePanel>(_allUpdatePanels.Count); 500_childUpdatePanelsToRefresh = new List<UpdatePanel>(_allUpdatePanels.Count); 516for (int i = 0; i < _allUpdatePanels.Count; i++) { 852if (list != null && list.Count > 0) { 854for (int i = 0; i < list.Count; i++) {
UI\ScriptControlManager.cs (1)
209Debug.Assert(targetControls != null && targetControls.Count > 0);
UI\ScriptManager.cs (4)
939if (scripts.Count != 0) { 956for (int i = 0; i < scripts.Count; i++) { 1006scriptIndex = scripts.Count; 1849int numScripts = scripts.Count;
UI\ScriptRegistrationManager.cs (2)
151if (updatingUpdatePanels != null && updatingUpdatePanels.Count > 0) { 157for (int i = 0; i < updatingUpdatePanels.Count; i++) {
UI\WebControls\Dynamic.cs (1)
1109MemberBinding[] bindings = new MemberBinding[properties.Count];
UI\WebControls\LinqDataSourceView.cs (2)
434else if (_reuseSelectContext && _selectContexts.Count > 0) { 435return _selectContexts[_selectContexts.Count - 1];
UI\WebControls\QueryableDataSourceView.cs (1)
553if (matches.Count <= i) { // first column
System.Web.Services (1)
System\Web\Services\Diagnostics\TraceUtility.cs (1)
243if (details != null && details.Count > 0) {
System.Windows.Forms (29)
misc\GDI\WindowsGraphicsCacheManager.cs (2)
155while( count < WindowsFontCache.Count ) 192if (WindowsFontCache.Count == CacheSize) // No more room, update current index.
winforms\Managed\System\WinForms\Application.cs (4)
2628if (parkingWindows.Count == 0) { 2637Debug.Assert(parkingWindows.Count == 1, "parkingWindows count can not be > 1 for legacy OS/target framework versions"); 2853if (parkingWindows.Count != 0) { 2868for(int i=0; i< parkingWindows.Count; i++) {
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\ComNativeDescriptor.cs (1)
281for (int i = disposeList.Count - 1; i >= 0; i--) {
winforms\Managed\System\WinForms\DataGridViewRowCollection.cs (7)
606Debug.Assert(this.rowStates.Count == this.SharedList.Count); 923Debug.Assert(this.rowStates.Count == this.SharedList.Count); 1671Debug.Assert(this.rowStates.Count == this.SharedList.Count); 1783Debug.Assert(this.rowStates.Count == this.SharedList.Count); 1812Debug.Assert(this.rowStates.Count == this.SharedList.Count); 1861Debug.Assert(this.rowStates.Count == this.SharedList.Count); 1945Debug.Assert(this.rowStates.Count == this.SharedList.Count);
winforms\Managed\System\WinForms\KeysConverter.cs (2)
255for (int i = 0; i < DisplayOrder.Count; i++) { 285for (int i = 0; i < DisplayOrder.Count; i++) {
winforms\Managed\System\WinForms\ListView.cs (6)
521if (savedCheckedItems.Count > 0) { 577if (savedCheckedItems.Count > 0) { 6994return owner.savedSelectedItems.Count; 7332ListViewItem[] cloned = new ListViewItem[owner.savedSelectedItems.Count]; 7333for (int i = 0; i < owner.savedSelectedItems.Count; i ++) { 7361return owner.savedSelectedItems.Count;
winforms\Managed\System\WinForms\NumericUpDownAccelerationCollection.cs (2)
41while( index < this.items.Count ) 81get {return this.items.Count;}
winforms\Managed\System\WinForms\ToolStripManager.cs (5)
959if (_inputFilterQueue != null && _inputFilterQueue.Count > 0) { 960return _inputFilterQueue[_inputFilterQueue.Count - 1]; 1042int countDropDowns = _inputFilterQueue.Count; 1086int countDropDowns = _inputFilterQueue.Count; 1166if (!InMenuMode && _inputFilterQueue.Count > 0) {
System.Windows.Forms.DataVisualization (67)
Common\ChartTypes\BarChart.cs (1)
390 int numOfSeries = typeSeries.Count;
Common\ChartTypes\BoxPlotChart.cs (5)
301 double numOfSeries = typeSeries.Count; 1070 double numOfSeries = typeSeries.Count; 1796 double percentPointIndex = (yValues.Count - 1.0)/ 100.0 * percentile; 1801if ((int)percentPointIndexInteger < yValues.Count) 1805if ((int)(percentPointIndexInteger + 1) < yValues.Count)
Common\ChartTypes\ColumnChart.cs (1)
301 double numOfSeries = typeSeries.Count;
Common\ChartTypes\ErrorBarChart.cs (3)
396 numberOfLinkedSeries = typeLinkedSeries.Count; 421 numberOfLinkedSeries = typeSeries.Count; 1176 numberOfLinkedSeries = typeLinkedSeries.Count;
Common\ChartTypes\PieChart.cs (3)
699 if(typeSeries.Count == 0) 705 if(typeSeries.Count > 0) 2386 if( typeSeries.Count == 0 )
Common\ChartTypes\StackedBarChart.cs (1)
1426 for(int seriesIndex = 0; seriesIndex < typeSeries.Count; seriesIndex++)
Common\ChartTypes\StackedColumnChart.cs (1)
1468 for(int seriesIndex = 0; seriesIndex < typeSeries.Count; seriesIndex++)
Common\Formulas\FormulaHelpers.cs (4)
1366for (int i = 0; i < this.Count; i++) 1410if (unmappedFormulaFields.Count == 0) 1461for (int i = 0; i < unmappedFormulaFields.Count && seriesFields.Count > 0; ) 1553for (int i = 0; i < unmappedFormulaFields.Count && seriesFields.Count > 0; )
Common\General\AxisLabels.cs (4)
356 if( dataSeries.Count == 0 ) 362string[] dataSeriesNames = new string[dataSeries.Count]; 363for (int i = 0; i < dataSeries.Count; i++) 543 if(seriesArray.Count > 0)
Common\General\AxisScale.cs (9)
1122if (ChartArea.Series.Count == 0) 1608 if( list.Count == 0 ) 1622 if( list.Count == 0 ) 1636 if( list.Count == 0 ) 1650 if( list.Count == 0 ) 1757 if( list.Count == 0 ) 1769 if( list.Count == 0 ) 1781 if( list.Count == 0 ) 1793 if( list.Count == 0 )
Common\General\ChartArea3D.cs (14)
1092 for(int index = 0; !found && index < this.seriesClusters.Count; index++) 1109 clusterIndex = this.seriesClusters.Count; 1126 for(int index = 0; !found && index < this.seriesClusters.Count; index++) 1144 clusterIndex = this.seriesClusters.Count; 1153 clusterIndex = this.seriesClusters.Count; 1157 if(this.seriesClusters.Count <= clusterIndex) 1167 return this.seriesClusters.Count; 1184 for(int clusterIndex = 0; clusterIndex < this.seriesClusters.Count; clusterIndex++) 1196 clusterIndex = (this.seriesClusters.Count - 1) - clusterIndex; 1606 if(seriesNames.Count > 0) 1632 for(int seriesIndex = 0; seriesIndex < seriesList.Count; seriesIndex++) 1651 seriesList.Reverse(seriesIndex, seriesList.Count - seriesIndex); 1748 numOfSeries = seriesNamesList.Count; 1760 seriesNamesList.Count > 0)
Common\General\ChartAreaAxes.cs (8)
281 if( GetYAxesSeries( AxisType.Primary, string.Empty ).Count != 0 ) 307 if( GetYAxesSeries( AxisType.Secondary, string.Empty ).Count != 0 ) 1483if (seriesArray.Count > 0) 1568if (_series.Count == 0) 1607 if ( list.Count == 0 ) 1675 if ( list.Count == 0 && type == AxisType.Secondary ) 1689 if( _series.Count == 0 ) 1785 ArrayList[] seriesXValues = new ArrayList[seriesList.Count];
Common\General\GridTickMarks.cs (2)
199 if(seriesArray.Count > 0) 1260 if(seriesArray.Count > 0)
Common\General\Label.cs (1)
1528if (seriesArray.Count > 0)
Common\General\Selection.cs (1)
2155if (result.Count == 0)
Common\General\StripLine.cs (1)
271 if(seriesArray.Count > 0)
WinForm\Utilities\AccessibleObject.cs (8)
114return _chartAccessibleObjectList.Count; 131if (index >= 0 && index < this._chartAccessibleObjectList.Count) 627if (index >= 0 && index < this._childList.Count) 640return this._childList.Count; 757if (index >= 0 && index < this._childList.Count) 770return this._childList.Count; 848if (index >= 0 && index < this._childList.Count) 861return this._childList.Count;
System.Workflow.Activities (108)
Designers\StateDesigner.cs (11)
166if (this.DesignersParser.Ordered.Count > 0) 183if (this.DesignersParser.Ordered.Count > 0) 184return this.DesignersParser.Ordered[this.DesignersParser.Ordered.Count - 1].Activity; 776if (this.DesignersParser.StateInitializationDesigners.Count == 0) 778if (this.DesignersParser.StateFinalizationDesigners.Count == 0) 938if (indexOf < (ordered.Count - 1)) 959if (this.DesignersParser.StateDesigners.Count > 0) 969if (indexOf < (ordered.Count - 1)) 982if (indexOf < (ordered.Count - 1)) 2073bool hasStateInitialization = this.DesignersParser.StateInitializationDesigners.Count > 0; 2089bool hasStateFinalization = this.DesignersParser.StateFinalizationDesigners.Count > 0;
Designers\StateDesigner.Layouts.cs (9)
672if (this.Layouts.Count > 0) 707if ((parser.EventDrivenDesigners.Count > 0 || parser.StateInitializationDesigners.Count > 0 || parser.StateFinalizationDesigners.Count > 0) && 708(parser.StateDesigners.Count > 0 || parser.LeafStateDesigners.Count > 0)) 794if (Layouts.Count == 0) 803for (int i = 0; i < layouts.Count - 1; i++) 819layout = layouts[layouts.Count - 1];
EventHandlers.cs (1)
193for (int i = 0; i < activity.ActivityState.Count; ++i)
Listen.cs (2)
99for (int i = 0; i < this.ActivityState.Count; ++i) 159for (int i = 0; i < listen.ActivityState.Count; ++i)
LocalService\CorrelationResolver.cs (3)
312if (correlationParamAttributes.Count == 0) 315correlationProperties = new CorrelationPropertyValue[correlationParamAttributes.Count]; 333CorrelationAliasAttribute aliasAttribute = GetMatchingCorrelationAlias(paramAttribute, corrAliases, correlationParamAttributes.Count == 1);
Role\ADRole.cs (3)
192for (int i = 0; i < this.m_operations.Count; ++i) 194for (int j = 0; j < currentEntries.Count; ++j) 212for (int i = 0; i < currentEntries.Count; ++i)
Rules\Executor.cs (1)
471int numRules = ruleStates.Count;
Rules\Expressions.cs (1)
2982if ((resultType.IsValueType) && (parameters.Count == 0))
Rules\Literal.cs (5)
711if (candidates.Count == 0) 731if ((candidates.Count == 0) && ("Equality" == methodName)) 750if ((candidates.Count == 0) && ((lhsNullable || rhsNullable || (lhs == typeof(NullLiteral)) || (rhs == typeof(NullLiteral))))) 764if (candidates.Count == 1) 770else if (candidates.Count == 0)
Rules\Parser\Intellisense.cs (1)
38tokenIndex = tokens.Count - 1;
Rules\Parser\Parser.cs (12)
202get { return (currentToken < tokens.Count) ? tokens[currentToken] : null; } 207if (currentToken == tokens.Count - 1) 251for (int i = 0; i < baseInterfaces.Count; ++i) 429for (int i = 0; i < parentInterfaces.Count; ++i) 505get { return tokens.Count; } 1926if ((type.IsValueType) && (arguments.Count == 0)) 2161List<Type> candidateTypes = new List<Type>(candidateTypeSymbols.Count); 2272if (candidateGenericTypes.Count == 0) 2567int numArgs = arguments.Count; 2691int numCandidates = candidates.Count; 2727if (bestCandidates.Count == 1) 2746if (candidates == null || candidates.Count == 0)
Rules\RuleSet.cs (1)
200for (int i = 0; i < this.rules.Count; ++i)
Rules\RuleValidation.cs (38)
1262if (candidates.Count == 0) 1278for (int i = 1; i < candidates.Count; ++i) 1296for (int i = 1; i < candidates.Count; ++i) 1313for (int i = 0; i < candidates.Count; ++i) 1335for (int i = 0; i < candidates.Count; ++i) 1453if (candidates.Count == 0) 1467for (int i = 0; i < candidates.Count; ++i) 1480for (int i = 0; i < candidates.Count; ++i) 1495for (int i = 0; i < candidates.Count; ++i) 1511for (int i = 0; i < candidates.Count; ++i) 1524for (int i = 0; i < candidates.Count; ++i) 1539for (int i = 0; i < candidates.Count; ++i) 1555for (int i = 0; i < candidates.Count; ++i) 1577for (int i = 0; i < candidates.Count; ++i) 2419while (index < parentInterfaces.Count) 2740System.Diagnostics.Debug.Assert(arguments.Count == this.signature.Count); 2741System.Diagnostics.Debug.Assert(arguments.Count == other.signature.Count); 2789for (int p = 0; p < arguments.Count; ++p) 2828for (int p = 0; p < arguments.Count; ++p) 2923for (int i = 0; i < candidateTypes.Count; ++i) 2948int numArguments = arguments.Count; 3077int numCandidates = candidates.Count; 3113if (bestCandidates.Count == 1) 3129List<CandidateMember> candidates = new List<CandidateMember>(methods.Count); 3140if (candidates.Count == 0) 3153List<Argument> arguments = new List<Argument>(argumentExprs.Count); 3161if (constructors.Count == 0) 3194List<Argument> arguments = new List<Argument>(argumentExprs.Count); 3202if (methods.Count == 0) 3241for (int t = 0; t < targetTypes.Count; ++t) 3268for (int t = 0; t < targetTypes.Count; ++t) 3470if (candidates.Count == 0) 3515if (candidates.Count == 0) 3542int numArgs = argumentExprs.Count; 3559if (indexerProperties.Count == 0) 3660if (candidates.Count == 0)
StateMachineSubscriptionManager.cs (1)
382if (this.EventQueue.Count == 0 ||
Task.cs (10)
284for (int i = 0; i < this.ActivityState.Count; ++i) 385else if (this.ActivityState.Count != 0) 628if (runIndex < this.ActivityState.Count - 1) 664for (int i = 0; i < stateInfo.Count; ++i) 806for (int i = 0; i < this.Count; ++i) 834for (int i = 0; i < this.Count; ++i) 852for (int i = 0; i < this.Count; ++i) 871for (indexOfInsert = 0; (indexOfInsert < this.Count) && index > 0; ++indexOfInsert) 888return base.Count - 1; 900while (counter < this.Count)
WebServiceFault.cs (1)
264if (outParameters.Count == 0)
WebServiceReceive.cs (6)
611if (webServiceReceive.ParameterBindings.Count > inputParameters.Count) 627if ((outParameters.Count > 0 || methodInfo.ReturnType != typeof(void)) && !foundMatchingResponse) 839if (outRefParams.Count != 0) 846for (int i = 0; i < outRefParams.Count; ++i) 861if (outRefParams.Count != 0) 869else if (outRefParams.Count == 0 && methodInfo.ReturnType == typeof(void))
WebServiceResponse.cs (2)
396if (outParameters.Count == 0) 449if (webServiceResponse.ParameterBindings.Count > outParameters.Count)
System.Workflow.ComponentModel (211)
AuthoringOM\ActivitiesCollection.cs (5)
58if (index < 0 || index >= base.Count) 71if (index < 0 || index > base.Count) 140ICollection<Activity> children = base.GetRange(0, base.Count); 152ActivityCollectionChangeEventArgs args = new ActivityCollectionChangeEventArgs(base.Count, null, item, this.owner, ActivityCollectionChangeAction.Add); 162return base.Count;
AuthoringOM\ActivityExecutionContext.cs (1)
576for (int i = 1; i < handles.Count; i++)
AuthoringOM\Bind.cs (7)
1394for (int i = 0; i < pathInfo.Count; i++) 1429PathMemberInfoEventArgs args = new PathMemberInfoEventArgs(newPath, propertyType, newMemberInfo, PathMemberKind.Event, i == pathInfo.Count - 1); 1454if (i < pathInfo.Count - 1 && pathInfo[i + 1].type == SourceValueType.Indexer && !string.IsNullOrEmpty(pathInfo[i + 1].name)) 1467PathMemberInfoEventArgs args = new PathMemberInfoEventArgs(newPath, propertyType, properyInfo, PathMemberKind.IndexedProperty, i == pathInfo.Count - 2, arguments); 1502PathMemberInfoEventArgs args = new PathMemberInfoEventArgs(newPath, propertyType, properyInfo, PathMemberKind.Property, i == pathInfo.Count - 1); 1517PathMemberInfoEventArgs args = new PathMemberInfoEventArgs(newPath, propertyType, newMemberInfo, PathMemberKind.Field, i == pathInfo.Count - 1); 1542PathMemberInfoEventArgs args = new PathMemberInfoEventArgs(newPath, propertyType, arrayPropertyInfo, PathMemberKind.Index, i == pathInfo.Count - 1, arguments);
AuthoringOM\Compiler\TypeSystem\AttributeInfo.cs (1)
125for (int loop = 0; loop < propertyNames.Count; loop++)
AuthoringOM\Compiler\TypeSystem\DesignTimeType.cs (2)
203else if (codeDomTypes != null && codeDomTypes.Count > 0) 1135if (this.IsValueType || ((constructors.Count == 0) && !this.IsAbstract))
AuthoringOM\Design\ActivityDesigner.cs (1)
859enableVerb = (index >= 0 && ((moveleft && index > 0 && (index - proceedingLockedIndex) > 0) || (!moveleft && index < activities.Count - 1)));
AuthoringOM\Design\CommandSet.cs (4)
142for (int i = 0; i < this.commandSet.Count; i++) 176for (int i = 0; i < this.commandSet.Count; i++) 186for (int i = 0; i < this.commandSet.Count; i++) 758if (saveFileDialog.ShowDialog() == DialogResult.OK && saveFileDialog.FilterIndex > 0 && saveFileDialog.FilterIndex <= supportedFormats.Count)
AuthoringOM\Design\ComponentSerializationService.cs (3)
244for (int loop = 0; loop < this.memberList.Count; loop++) 303if (this.memberList.Count == 0) 319for (int loop = 0; loop < this.memberList.Count; loop++)
AuthoringOM\Design\Connector.cs (69)
297if (this.segments.Count == 0 || this.segments[0] != this.source.Location) 302if (this.segments.Count == 0 || this.segments[this.segments.Count - 1] != this.target.Location) 345for (int i = 0; i < this.segments.Count; i++) 426if (this.segments.Count > 0 && 427(this.segments[0] != Source.Location || this.segments[this.segments.Count - 1] != Target.Location)) 860for (int i = this.editPoints.Count - 1; i >= 0; i--) 981for (int i = 0; i < this.editPoints.Count; i++) 995for (int i = 0; i < this.editPoints.Count; i++) 1106if (this.editPoints.Count < 2 || 1108this.editPoints[this.editPoints.Count - 1].Type != EditPoint.EditPointTypes.ConnectionEditPoint) 1122EditPoint next = (activeEditPointIndex < this.editPoints.Count - 1) ? this.editPoints[activeEditPointIndex + 1] : null; 1179int newEditPointIndex = (this.editPoints.Count == 2) ? 1 : 0; 1251if (this.editPoints.Count == 0 || !this.editPoints[0].EditedConnectionPoint.Equals(Source)) 1254if (this.editPoints.Count < 2 || !this.editPoints[this.editPoints.Count - 1].EditedConnectionPoint.Equals(Target)) 1260for (int i = 0; i < this.editPoints.Count - 1; i++) 1273if (this.editPoints.Count == 2) 1276if (segments.Count > 0 && segments[0] == Source.Location) 1278if (segments.Count > 0 && segments[segments.Count - 1] == Target.Location) 1279segments.RemoveAt(segments.Count - 1); 1282for (int i = 0; i < segments.Count; i++) 1284this.editPoints.InsertRange(this.editPoints.Count - 1, editPointsToAdd.ToArray()); 1297for (int i = 0; i < this.editPoints.Count; i++) 1304for (int i = 0; i < editPointsToRemove.Count; i++) 1315if (this.editPoints.Count < 2 || 1317this.editPoints[this.editPoints.Count - 1].Type != EditPoint.EditPointTypes.ConnectionEditPoint || 1328for (int i = 0; i < this.editPoints.Count; i++) 1333(i < this.editPoints.Count - 1 && this.editPoints[i + 1].Type == EditPoint.EditPointTypes.MidSegmentEditPoint)) 1340for (int i = 1; i < this.editPoints.Count - 1; i++) 1371for (int i = 1; i < this.editPoints.Count - 1; i++) 1390for (int i = 0; i < this.editPoints.Count - 1; i++) 1406if (this.editPoints.Count < 2) 1413ConnectionPoint targetConnection = this.editPoints[this.editPoints.Count - 1].EditedConnectionPoint; 1417for (int i = 0; i < this.editPoints.Count - 1; i++) 1432for (int i = 0; i < editPoints.Count; i++) 1715for (int k = 0; k < escapePoints.Count; k++) 1731for (int k = 0; k < escapePoints.Count; k++) 1747for (int k = 0; k < escapePoints.Count; k++) 1764for (int k = 0; k < escapePoints.Count; k++) 1778for (int i = 1; i < escapeCover.Count; i++) 1927Point objectPoint = LeA[LeA.Count - 1]; 1990for (int j = LeA.Count - 1; j >= 0; j--) 1993for (int j = 0; j < LeB.Count; j++) 2000if (refinedPath.Count > 1 && refinedPath[refinedPath.Count - 1] == begin) 2036for (int i = 0; i < LvB.Count; i++) 2048for (int i = 0; i < LhB.Count; i++) 2226if (extremitiesList.Count == 0) 2230for (int i = 0; i < extremitiesList.Count; i++) 2294for (int i = 0; i < LvB.Count; i++) 2307for (int i = 0; i < LhB.Count; i++) 2375while (Le.Count > 0) 2378int i = Le.Count - 1; 2393while (Le.Count > i) 2411while (currentSegment < refinedPath.Count - 1) 2422while (intersectingSegment < refinedPath.Count - 1) 2436for (int i = intersectingSegment + 1; i < refinedPath.Count; i++) 2461while (currentSegment < refinedPath.Count - 1) 2487while (intersectingSegment < refinedPath.Count - 1 && !intersected) 2504for (int j = intersectingSegment + 1; j < refinedPath.Count; j++) 2811for (int i = 0; i < covers.Count; i++) 2854for (int i = 0; i < this.usedEscapeLine.Count; i++) 2895for (int i = 0; i < this.verticalCovers.Count; i++) 2911for (int i = 0; i < this.horizontalCovers.Count; i++) 2936for (int i = 0; i < this.verticalCovers.Count; i++) 2946for (int i = 0; i < this.horizontalCovers.Count; i++) 2974for (int i = 0; i < newCovers.Count; i++)
AuthoringOM\Design\DesignerHelpers.cs (3)
1863if (distances.Count > 0) 1866for (int i = 1; i < distances.Count; i++) 1929for (int i = 1; i < distances.Count; i++)
AuthoringOM\Design\DesignerInterfaces.cs (1)
1042verb.Id = ConvertGroupToId(verb.Group) + verbList.Count;
AuthoringOM\Design\DesignerWidgets.cs (51)
690if (this.items.Count >= visibleItems && ((this.items.Count - newPosition) < visibleItems)) 691newPosition = this.items.Count - visibleItems; 693if (newPosition >= 0 && newPosition <= Math.Max(this.items.Count - visibleItems + 1, 0)) 754reqdSize.Width = (this.items.Count * this.itemSize.Width) + ((this.items.Count + 1) * this.margin.Width); 760reqdSize.Height = (this.items.Count * this.itemSize.Height) + ((this.items.Count + 1) * this.margin.Height); 914nextIndex += (nextIndex < this.items.Count - 1) ? 1 : -1; 915SelectedItem = (nextIndex >= 0 && nextIndex < this.items.Count) ? this.items[nextIndex] : null; 1081this.menuItemCount = this.enabledItems.Count; 1166if (index >= 0 && index < this.enabledItems.Count) 1177for (int i = 0; i < this.enabledItems.Count; i++) 1204for (int i = 0; i < this.enabledItems.Count; i++) 1233for (int i = 0; i < this.enabledItems.Count; i++) 1384if (index < 0 || index >= this.itemRectangles.Count) 1760if (value < 0 || value > this.tabItemList.Count) 1763ItemInfo previousTab = (this.selectedTab >= 0 && this.selectedTab < this.tabItemList.Count) ? this.tabItemList[this.selectedTab] : null; 1782for (int i = 0; i < this.tabItemList.Count; i++) 1795if (this.tabItemList.Count == this.drawItems.Length) 1797for (int i = 0; i < this.tabItemList.Count; i++) 1873if (this.drawItems.Length != this.tabItemList.Count) 1953this.drawItems = new DrawTabItemStruct[this.tabItemList.Count]; 1965for (int i = 0; i < this.tabItemList.Count; i++) 2009int itemSizeDecrease = (int)Math.Ceiling(((double)(offset - maxTotalTabItemSize)) / (double)Math.Max(1, this.tabItemList.Count)); 2013DrawTabItemStruct lastItemStruct = this.drawItems[this.tabItemList.Count - 1]; 2016itemSizeDecrease += (int)Math.Ceiling(((double)(this.reqTabItemSize - lastItemWidth)) / (double)Math.Max(1, this.tabItemList.Count)); 2018for (int i = 0; i < this.tabItemList.Count; i++) 2024if ((i == this.tabItemList.Count - 1) && this.drawItems[i].TabItemRectangle.Width < this.reqTabItemSize) 2031if ((i == this.tabItemList.Count - 1) && this.drawItems[i].TabItemRectangle.Height < this.reqTabItemSize) 2057if (this.tabItemList.Count == 0) 2059else if (this.selectedTab > this.tabItemList.Count - 1) 2060SelectedTab = this.tabItemList.Count - 1; 2072if (this.drawItems.Length == this.tabItemList.Count) 2085if (tabItemInfo.Image != null && this.drawItems.Length == this.tabItemList.Count) 2102if (tabItemInfo.Text != null && this.drawItems.Length == this.tabItemList.Count) 2517if (this.items.Count == 0 && this.parentDesigner.Activity != null) 2530Rectangle[] rectangles = new Rectangle[this.items.Count + 1]; 2533int maxItems = Math.Min(this.items.Count - this.scrollMarker, VisibleItemCount) + 1; 2606for (int itemIndex = this.scrollMarker; itemIndex < this.items.Count; itemIndex++) 2636index = (index >= this.items.Count) ? 0 : (index < 0) ? this.items.Count - 1 : index; 2712for (int itemIndex = this.scrollMarker; itemIndex < this.items.Count && itemIndex < (this.scrollMarker + VisibleItemCount); itemIndex++) 2761else if (this.items.Count == 0 && this.helpText.Length > 0) 2786if (this.items.Count >= VisibleItemCount && ((this.items.Count - this.scrollMarker) < VisibleItemCount)) 2787newMarker = this.items.Count - VisibleItemCount; 2789if (newMarker >= 0 && newMarker <= Math.Max(this.items.Count - VisibleItemCount + 1, 0)) 2862nextIndex += (nextIndex < this.items.Count - 1) ? 1 : -1; 2863ActiveItem = (nextIndex >= 0 && nextIndex < this.items.Count) ? this.items[nextIndex] : null; 3534previewModeDescription += " [" + index.ToString(CultureInfo.CurrentCulture) + "/" + previewedActivities.Count.ToString(CultureInfo.CurrentCulture) + "]";
AuthoringOM\Design\Dialogs\ActivityBindForm.cs (4)
1010if (reparsedPathInfoList == null || reparsedPathInfoList.Count == 0) 1016PathInfo newPathInfo = reparsedPathInfoList[reparsedPathInfoList.Count - 1]; //get the last item in the list 1139if (pathInfoList != null && pathInfoList.Count > 0) 1141for (int i = 0; i < pathInfoList.Count; i++)
AuthoringOM\Design\FreeFormDesigner.cs (4)
313if (this.retainContainedDesignerLocations && containedDesigners.Count == containedDesignerLocations.Count) 569for (int i = 0; i < this.connectors.Count; i++) 653for (int i = 0; i < this.connectors.Count; i++) 882if (activitiesToInsert.Count > 0)
AuthoringOM\Design\MessageFilters\DragDropManager.cs (15)
246if (this.existingDraggedActivities.Count > 0) 476if (!this.wasCtrlKeyPressed && this.existingDraggedActivities.Count > 0) 479if (droppedActivities.Count > 1) 480transactionDescription = SR.GetString(SR.MoveMultipleActivities, droppedActivities.Count); 481else if (droppedActivities.Count == 1) 487if (droppedActivities.Count > 0) 494if (droppedActivities.Count > 0) 517if (droppedActivities.Count > 0) 718if (this.draggedActivities.Count == 0) 731if (!this.wasCtrlKeyPressed && this.existingDraggedActivities.Count > 0) 779if (this.draggedActivities.Count == 0 || this.existingDraggedActivities.Count == 0) 849if (effects == DragDropEffects.Move && this.existingDraggedActivities.Count > 0) 852if (this.existingDraggedActivities.Count > 1) 853transactionDescription = SR.GetString(SR.MoveMultipleActivities, this.existingDraggedActivities.Count);
AuthoringOM\Design\MessageFilters\DynamicActionMessageFilter.cs (12)
122for (int i = this.actions.Count - 1; i >= 0; i--) 175for (int i = this.actions.Count - 1; i >= 0; i--) 229for (int i = this.actions.Count - 1; i >= 0; i--) 250for (int i = this.actions.Count - 1; i >= 0; i--) 299for (int i = 0; i < this.actions.Count; i++) 315for (int i = 0; i < this.actions.Count; i++) 338for (int i = 0; i < this.actions.Count; i++) 385if (this.draggedActionIndex < this.actions.Count) 532if (this.transparency == 0 || this.buttons.Count == 0) 537for (int i = 0; i < this.buttons.Count; i++) 569int buttonCount = Math.Max(1, this.buttons.Count); 578if (buttonIndex < 0 || buttonIndex >= this.buttons.Count)
AuthoringOM\Design\MessageFilters\FreeFormDragDropManager.cs (5)
148if (this.draggedDesignerImages == null || this.draggedDesignerImages.Count == 0 || !(DropTargetDesigner is FreeformActivityDesigner)) 165Debug.Assert(this.draggedDesignerImages.Count == DraggedActivities.Count); 167for (int i = 0; i < this.draggedDesignerImages.Count; i++) 224if (locations.Length == this.draggedDesignerImages.Count) 230for (int i = 0; i < this.draggedDesignerImages.Count; i++)
AuthoringOM\Design\MessageFilters\GlyphManager.cs (1)
320for (int i = 0; i < this.rectangles.Count; i++)
AuthoringOM\Design\MessageFilters\WindowManager.cs (2)
263bool needToDelete = (topLevelActivities.Count > 0); 286if (selectionService != null && connectors.Count > 0)
AuthoringOM\Design\SecondaryViewProvider.cs (1)
79for (int i = 0; i < viewTypes.Count; i++)
AuthoringOM\Design\SequentialWorkflowRootDesigner.cs (4)
260if (connectionPoints.Count > 0 && Footer != null && (edges & DesignerEdges.Bottom) > 0) 261connectionPoints[connectionPoints.Count - 1] = new Point(connectionPoints[connectionPoints.Count - 1].X, connectionPoints[connectionPoints.Count - 1].Y - Footer.Bounds.Height);
AuthoringOM\Design\StructuredCompositeActivityDesigner.cs (1)
442if (connectionPoints.Count > 0 && (edges & DesignerEdges.Top) > 0)
AuthoringOM\Design\WorkflowView.cs (2)
2172if (this.workflowView.RootDesigner != null && this.workflowView.stockMessageFilters.Count > 0) 2400if (this.elapsedEvents.Count == 0 && this.timer.Enabled)
AuthoringOM\ItemList.cs (10)
128if (index < 0 || index > base.Count) 140if (index < 0 || index > base.Count) 206ICollection<T> children = this.GetRange(0, this.Count); 217FireListChanging(new ItemListChangeEventArgs<T>(base.Count, default(T), item, this.owner, ItemListChangeAction.Add)); 219FireListChanged(new ItemListChangeEventArgs<T>(base.Count, default(T), item, this.owner, ItemListChangeAction.Add)); 226return base.Count; 257FireListChanged(new ItemListChangeEventArgs<T>(base.Count, null, new List<T>(collection), this.owner, ItemListChangeAction.Add)); 262if (index < 0 || index > base.Count) 328return this.Count - 1; 400for (int loop = 0; loop < Count; loop++)
AuthoringOM\Serializer\WorkflowMarkupSerializer.cs (1)
1688if (!serializationManager.XmlNamespaceBasedMappings.TryGetValue(xmlns, out xmlnsMappings) || xmlnsMappings.Count == 0)
AuthoringOM\Serializer\XamlInterfaces.cs (1)
191if (manager.XmlNamespaceBasedMappings.TryGetValue(reader.LookupNamespace(prefix), out xmlnsMappings) && xmlnsMappings != null && xmlnsMappings.Count > 0)
System.Workflow.Runtime (51)
KeyedPriorityQueue.cs (1)
53if (i == heap.Count)
Lock.cs (1)
272for (int i = 0; i < eventList.Count; i++)
RTTrackingProfile.cs (4)
395if ((null != _dynamicActivitiesIgnore) && (_dynamicActivitiesIgnore.Count > 0)) 402if ((null != _dynamicUserIgnore) && (_dynamicUserIgnore.Count > 0)) 491return (includes.Count > 0); 511return (includes.Count > 0);
Tracking.cs (8)
227if (_toRemove.Count > 0) 346for (i = 0; i < channels.Count; i++) 435if ((null == _services) || (_services.Count <= 0)) 442if ((null == channels) || (0 == channels.Count)) 485for (int i = 0; i < _services.Count; i++) 623if ((null == _channels) || (_channels.Count <= 0)) 1671get { return list.Count; } 1736high = list.Count,
Tracking\SqlTrackingService.cs (9)
1395List<KeyValuePair<long, string>> annotations = new List<KeyValuePair<long, string>>(record1.Annotations.Count + (null == record2 ? 0 : record2.Annotations.Count)); 1810if (batch.Count == _dataItemBatchSize) 1818if (batch.Count > 0) 1887if (annotations.Count == _dataItemAnnotationBatchSize) 1896if (annotations.Count > 0) 1949if (batch.Count == _eventAnnotationBatchSize) 1957if (batch.Count > 0) 2085List<KeyValuePair<long, string>> annotations = new List<KeyValuePair<long, string>>(record.Annotations.Count);
Tracking\TrackingProfileSerializer.cs (12)
914if (((null == profile.WorkflowTrackPoints) || (0 == profile.WorkflowTrackPoints.Count)) 915&& ((null == profile.ActivityTrackPoints) || (0 == profile.ActivityTrackPoints.Count)) 916&& ((null == profile.UserTrackPoints) || (0 == profile.UserTrackPoints.Count))) 964if ((null == point.MatchingLocations) || (0 == point.MatchingLocations.Count)) 990if ((null != point.ExcludedLocations) && (point.ExcludedLocations.Count > 0)) 1033if ((null == point.MatchingLocations) || (0 == point.MatchingLocations.Count)) 1061if ((null != point.ExcludedLocations) && (point.ExcludedLocations.Count > 0)) 1109if ((null != loc.Conditions) && (loc.Conditions.Count > 0)) 1154if ((null != loc.Conditions) && (loc.Conditions.Count > 0)) 1182if ((null == extracts) || (0 == extracts.Count)) 1219if ((null == conditions) || (0 == conditions.Count)) 1264if ((null == annotations) || (0 == annotations.Count))
Tracking\TrackPoint.cs (4)
70if ((null != location.Conditions) && (location.Conditions.Count > 0)) 78if ((null != location.Conditions) && (location.Conditions.Count > 0)) 103if (0 == status.Count) 121return (status.Count > 0);
WorkflowExecutor.cs (1)
2539" .Scheduling delayed " + items.Count + " number of items");
WorkflowQueue.cs (2)
39if (qState.AsynchronousListeners.Count == 1) 77if (qState.AsynchronousListeners.Count == 1)
WorkflowQueuingService.cs (7)
191for (int i = 0; messageArrivalEventHandlers != null && i < messageArrivalEventHandlers.Count; ++i) 223for (int i = 0; messageArrivalEventHandlers != null && i < messageArrivalEventHandlers.Count; ++i) 309if (qState.AsynchronousListeners.Count != 0 || IsNestedListenersExist(queueName)) 321for (int i = 0; messageArrivalEventHandlers != null && i < messageArrivalEventHandlers.Count; ++i) 327queueState.AsynchronousListeners.Count != 0) 340for (int i = 0; messageArrivalEventHandlers != null && i < messageArrivalEventHandlers.Count; ++i) 518for (int i = 0; i < qState.SynchronousListeners.Count; ++i)
WorkflowRuntime.cs (2)
1090if (al.Count > 1) 1094if (al.Count == 1)
System.WorkflowServices (9)
System\ServiceModel\Security\SerializableAuthorizationContext.cs (1)
92if (knownTypes.Count != 0)
System\Workflow\Activities\ContractType.cs (1)
460this.methods = new MethodInfo[localMethods.Count];
System\Workflow\Activities\Design\OperationPickerDialog.cs (1)
286if (this.serviceContracts.Count == 0)
System\Workflow\Activities\Design\ServiceContractListItem.cs (1)
88if (this.operations.Count > 1)
System\Workflow\Activities\Design\ServiceOperationViewControl.cs (1)
32if (listItem.ImplementingActivities.Count > 0)
System\Workflow\Activities\OperationParameterInfoCollection.cs (3)
52return base.Count; 285if (index < 0 || index > base.Count) 321if (index < 0 || index >= base.Count)
System\Workflow\Activities\ReceiveActivity.cs (1)
670for (int i = 0; i < interfaces.Count; i++)
System.Xml (58)
System\Xml\Core\QueryOutputWriter.cs (1)
53if (settings.CDataSectionElements.Count > 0) {
System\Xml\Core\QueryOutputWriterV1.cs (1)
68if (settings.CDataSectionElements != null && settings.CDataSectionElements.Count > 0) {
System\Xml\Core\XmlEventCache.cs (4)
110for (idxPage = 0; idxPage < this.pages.Count; idxPage++) { 118Debug.Assert(idxPage + 1 == this.pages.Count); 264for (idxPage = 0; idxPage < this.pages.Count; idxPage++) { 272Debug.Assert(idxPage + 1 == this.pages.Count);
System\Xml\Core\XmlWriterSettings.cs (2)
427return cdataSections.Count != 0 || docTypePublic != null || 799writer.Write(cdataSections.Count);
System\Xml\Dom\DocumentXmlWriter.cs (8)
318for (int i = fragment.Count - 1; i >= 0; i--) { 327for (int i = 0; i < fragment.Count; i++) { 332for (int i = fragment.Count - 1; i >= 0; i--) { 337for (int i = 0; i < fragment.Count; i++) { 345if (fragment.Count == 0) { 361for (int i = 0; i < fragment.Count; i++) { 370for (int i = 0; i < fragment.Count; i++) { 393for (int i = fragment.Count - 1; i >= 1; i--) {
System\Xml\Dom\DocumentXPathNavigator.cs (1)
1519for (int i = elements.Count - 1; i >= 0; i--) {
System\Xml\Dom\XPathNodeList.cs (4)
30return list.Count; 42int count = list.Count; 59if (list.Count <= index) { 62if (index < 0 || list.Count <= index) {
System\Xml\Schema\ContentValidator.cs (1)
1786if (matchCount + 2 >= runningPositions.Count) {
System\Xml\Schema\Preprocessor.cs (1)
683for (int i = 0; i < removeItemsList.Count; ++i) {
System\Xml\Schema\SchemaAttDef.cs (2)
188(values.Count <= 2)) { 191if (values.Count == 2) {
System\Xml\Schema\SchemaCollectionpreProcessor.cs (1)
481for (int i = 0; i < removeItemsList.Count; ++i) {
System\Xml\Schema\XmlSchemaObjectTable.cs (2)
74for(index = 0; index < entries.Count; index++) { 84Debug.Assert(table.Count == entries.Count);
System\Xml\Schema\XmlSchemaSet.cs (2)
993for (int i = 0; i < newMembers.Count; ++i) { 1247for (int i = 0; i < reprocessList.Count; ++i) { //Remove schema from schemaLocations & chameleonSchemas tables
System\Xml\Serialization\XmlSerializationReaderILGen.cs (1)
1129for (int i = 0; i < caseLabels.Count; i++) {
System\Xml\Serialization\XmlSerializationWriterILGen.cs (2)
598for (int i = 0; i < caseLabels.Count; i++) { 644for (int i = 0; i < caseLabels.Count; i++) {
System\Xml\XPath\Internal\CacheAxisQuery.cs (4)
39Debug.Assert(0 <= count && count <= outputBuffer.Count); 40if (count < outputBuffer.Count) { 48Debug.Assert(0 <= count && count <= outputBuffer.Count); 57public override int Count { get { return outputBuffer.Count; } }
System\Xml\XPath\Internal\CacheChildrenQuery.cs (1)
61if (elementStk.Count == 0) {
System\Xml\XPath\Internal\CacheOutputQuery.cs (4)
48Debug.Assert(0 <= count && count <= outputBuffer.Count); 49if (count < outputBuffer.Count) { 57Debug.Assert(0 <= count && count <= outputBuffer.Count); 67public override int Count { get { return outputBuffer.Count; } }
System\Xml\XPath\Internal\ClonableStack.cs (2)
26int last = base.Count - 1; 33return base[base.Count - 1];
System\Xml\XPath\Internal\FollowingSibling.cs (2)
41for (int i = 0; i < parentStk.Count; i++) { 67if (elementStk.Count == 0) {
System\Xml\XPath\Internal\PrecedingQuery.cs (1)
74if (ancestorStk.Count == 0) {
System\Xml\XPath\Internal\PrecedingSibling.cs (1)
36for (int i = 0; i < parentStk.Count; i++) {
System\Xml\XPath\Internal\Query.cs (3)
103int r = buffer.Count; 169Debug.Assert(0 <= pos && pos <= buffer.Count, "Algorithm error: Insert()"); 175if (pos < buffer.Count) {
System\Xml\XPath\Internal\ReversePositionQuery.cs (1)
20public override int CurrentPosition { get { return outputBuffer.Count - count + 1; } }
System\Xml\XPath\Internal\SortQuery.cs (5)
55SortKey key = new SortKey(numSorts, /*originalPosition:*/this.results.Count, eNext.Clone()); 75Debug.Assert(0 <= count && count <= results.Count); 76if (count < this.results.Count) { 84Debug.Assert(0 <= count && count <= results.Count); 100public override int Count { get { return results.Count; } }
System\Xml\XPath\Internal\XPathAncestorQuery.cs (1)
55public override int CurrentPosition { get { return outputBuffer.Count - count + 1; } }
WindowsBase (72)
Base\MS\Internal\IO\Packaging\CompoundFile\RightsManagementEncryptedStream.cs (2)
523if (cache.MemoryBlockCollection.Count == 0) 569if (index >= (cache.MemoryBlockCollection.Count))
Base\MS\Internal\IO\Packaging\InternalRelationshipCollection.cs (3)
167if (_relationships.Count == 0) // empty? 709for (int index = 0; index < _relationships.Count; ++index) 731Invariant.Assert(_relationships.Count > 0);
Base\MS\Internal\IO\Packaging\PartManifestEntry.cs (1)
87Invariant.Assert(relationshipSelectors.Count > 0);
Base\MS\Internal\IO\Packaging\PieceDirectory.cs (7)
168Invariant.Assert(sortedPieceInfoList.Count > 0); 171_pieceStreamInfoList = new List<PieceStreamInfo>(sortedPieceInfoList.Count); 182_lastPieceIndex = sortedPieceInfoList.Count - 1; 309_pieceStreamInfoList.RemoveRange(_indexOfLastPieceStreamInfoAccessed + 1, _pieceStreamInfoList.Count - (_indexOfLastPieceStreamInfoAccessed + 1)); 432while (pieceNumber < _sortedPieceInfoList.Count) 438_sortedPieceInfoList.RemoveRange(_lastPieceIndex + 1, _sortedPieceInfoList.Count - (_lastPieceIndex + 1)); 495Invariant.Assert(_pieceStreamInfoList.Count == 0);
Base\MS\Internal\IO\Packaging\SparseMemoryStream.cs (6)
131for (int i = removeIndex; i < _memoryStreamList.Count; ++i) 136_memoryStreamList.RemoveRange(removeIndex, _memoryStreamList.Count - removeIndex); 231for ( ; index < _memoryStreamList.Count; ++index) 576for (i = index; i < _memoryStreamList.Count; ++i) 591if (index < _memoryStreamList.Count) // Get the next block of the new write block 659Debug.Assert(_memoryStreamList.Count ==0); // it must be empty in isolated storage mode
Base\MS\Internal\IO\Packaging\XmlDigitalSignatureProcessor.cs (1)
495transformStreams = new List<Stream>(transforms.Count);
Base\MS\Internal\IO\Packaging\XmlSignatureManifest.cs (3)
372transformsCountWhenRelationshipTransformFound = transforms.Count; 399if (transforms.Count == 0) 406if (relationshipTransformFound && (transforms.Count == transformsCountWhenRelationshipTransformFound))
Base\MS\Internal\Security\RightsManagement\ClientSession.cs (3)
708new List<SafeRightsManagementHandle>(unboundRightsList.Count); 711new List<RightNameExpirationInfoPair>(unboundRightsList.Count); 758if (successfullyBoundLicenseHandleList.Count > 0)
Base\MS\Internal\WeakEventTable.cs (2)
339Debug.Assert(_toRemove.Count == 0, "to-remove list should be empty"); 369else if (_toRemove.Count > 0)
Base\System\ComponentModel\PropertyChangedEventManager.cs (2)
190Debug.Assert(_toRemove.Count == 0, "to-remove list should be empty"); 261if (_toRemove.Count > 0)
Base\System\IO\Packaging\PackageDigitalSignatureManager.cs (16)
152return (_signatures.Count > 0); 535InternalRemoveSignature(newSignaturePartName, _signatures.Count); 547InternalRemoveSignature(newSignaturePartName, _signatures.Count); 559InternalRemoveSignature(newSignaturePartName, _signatures.Count); 637List<Uri> signatures = new List<Uri>(_signatures.Count); 638for (int i = 0; i < _signatures.Count; i++) 692if (_signatures.Count == 0) 699for (int i = 0; i < _signatures.Count; i++) 742Debug.Assert(index < _signatures.Count); 747InternalRemoveSignature(signatureUri, _signatures.Count - 1 /*since we are deleting one*/); 772for (int i = 0; i < _signatures.Count; i++) 818Debug.Assert(index < _signatures.Count); 972if (_signatures.Count == 0) 1128for (int i = 0; i < relationshipsToVisit.Count; i++) 1229for (int i = 0; i < _signatures.Count; i++) 1246for (int i = 0; i < _signatures.Count; i++)
Base\System\IO\Packaging\PackagePart.cs (1)
886for (int i = _requestedStreams.Count-1; i >= 0; i--)
Base\System\IO\Packaging\ZipPackage.cs (10)
631if (sortedPieceInfoList.Count > 0) 672for (int i = 0; i < pieces.Count; ++i) 753_ignoredItemHelper.AddItemsForInvalidSequence(normalizedPrefixNameForCurrentSequence, pieces, startIndexOfCurrentSequence, checked(pieces.Count - startIndexOfCurrentSequence)); 1243_ignoredItemHelper.AddItemsForInvalidSequence(_contentTypesFileUpperInvariant, pieces, 0, pieces.Count); 1253for (int pieceNumber = 0; pieceNumber < pieces.Count; ++pieceNumber) 1257_ignoredItemHelper.AddItemsForInvalidSequence(_contentTypesFileUpperInvariant, pieces, 0, pieces.Count); 1274_ignoredItemHelper.AddItemsForInvalidSequence(_contentTypesFileUpperInvariant, pieces, 0, pieces.Count); 1282if (lastPieceNumber < pieces.Count - 1) 1286_ignoredItemHelper.AddItemsForInvalidSequence(_contentTypesFileUpperInvariant, pieces, lastPieceNumber + 1, pieces.Count - lastPieceNumber - 1); 1287pieces.RemoveRange(lastPieceNumber + 1, pieces.Count - lastPieceNumber - 1);
Base\System\Security\RightsManagement\CryptoProvider.cs (8)
309List<ContentGrant> grantList = new List<ContentGrant>(_boundRightsInfoList.Count); 373Invariant.Assert(boundLicenseHandleList.Count > 0); 376Invariant.Assert(rightsInfoList.Count > 0); 380Invariant.Assert(rightsInfoList.Count == boundLicenseHandleList.Count); 467for(int i=0; i< _boundLicenseHandleList.Count; i++) 500for(int i=0; i< _boundLicenseHandleList.Count; i++) 533for(int i=0; i< _boundLicenseHandleList.Count; i++)
Base\System\Windows\Threading\Dispatcher.cs (6)
113for(int i = 0; i < _dispatchers.Count; i++) 2784if (list.Count > 1000) 2787list.RemoveRange(100, list.Count-200); 2844while(iTimer < _timers.Count) 2929if(_timers.Count > 0) 2932for(int i = 0; i < _timers.Count; i++)
Base\System\Windows\WeakEventManager.cs (1)
709if (list.Count == 0)
WsatConfig (3)
CommandLine\OptionUsage.cs (3)
185Debug.Assert(optionUses.Count > 1); 189for (int i = 1; i < optionUses.Count; ++i) 198if (i == optionUses.Count - 1)
XamlBuildTask (5)
Microsoft\Build\Tasks\Xaml\ClassGenerator.cs (1)
612if (memberFields != null && memberFields.Count > 0)
Microsoft\Build\Tasks\Xaml\XamlStackWriter.cs (4)
113public int Depth { get { return _stack.Count; } } 119Fx.Assert(_stack.Count != 0, "Stack cannot be empty"); 120return _stack[_stack.Count - 1]; 187_stack.RemoveAt(_stack.Count - 1);