src\Framework\System\Windows\Controls\DataGrid.cs (26)
386if (displayIndex < 0 || displayIndex >= Columns.Count)
1790if (columnIndex < (_columns.Count - 1))
2193_selectedCells.RemoveRegion(newItemIndex, 0, 1, Columns.Count);
2231_selectedCells.RemoveRegion(newItemIndex + 1, 0, 1, Columns.Count);
3717_selectedCells.RemoveRegion(newItemIndex, 0, 1, Columns.Count);
4365int numColumns = _columns.Count;
4398int numColumns = _columns.Count;
4609int numColumns = _columns.Count;
4670int columnCount = _columns.Count;
4770if (!_isDraggingSelection && (_columns.Count > 0))
4871int numColumns = _columns.Count;
4949_selectedCells.RemoveRegion(removeRangeStartIndex, 0, removeRangeEndIndex - removeRangeStartIndex + 1, Columns.Count);
4975_selectedCells.AddRegion(startIndex, 0, endIndex - startIndex + 1, _columns.Count);
5008int numColumns = _columns.Count;
5217int numColumns = _columns.Count;
5233int numColumns = _columns.Count;
5743int columnCount = Columns.Count;
5755if (nextDisplayIndex >= Columns.Count)
5986if ((currentCellContainer != null) && (_columns.Count > 0))
6076if ((_columns.Count > 0) && (Items.Count > 0))
7224for (int i = 0; i < Items.SortDescriptions.Count; i++)
7784if (_pendingInfos != null && _pendingInfos.Count > 0 && (columnCount = _columns.Count) > 0)
7832for (int columnIndex = Columns.Count - 1; columnIndex >= 0; --columnIndex)
7973if (frozenColumnCount > dataGrid.Columns.Count)
7975return dataGrid.Columns.Count;
8293Dictionary<string, StringBuilder> dataGridStringBuilders = new Dictionary<string, StringBuilder>(formats.Count);
src\Framework\System\Windows\Controls\DataGridColumnCollection.cs (20)
70if (index >= Count || index < 0)
214int count = this.Count;
331Debug.Assert(newDisplayIndex >= 0 && newDisplayIndex < Count, "The new DisplayIndex should have already been validated");
365Debug.Assert(oldDisplayIndex >= 0 && oldDisplayIndex < Count, "The old DisplayIndex should be valid");
477int columnCount = Count;
568Debug.Assert(DisplayIndexMap.Count > Count, "Columns were just removed: the display index map shouldn't have yet been updated");
666return displayIndex >= 0 && (isAdding ? displayIndex <= Count : displayIndex < Count);
732Debug.Assert(Count == DisplayIndexMap.Count, "Display Index map is of the wrong size");
735Debug.Assert(DisplayIndexMap[i] >= 0 && DisplayIndexMap[i] < Count, "DisplayIndex map entry doesn't point to a valid column");
755int columnCount = Math.Min(newFrozenCount, Count);
763int columnCount = Math.Min(oldFrozenCount, Count);
1610for (int i = startIndex, count = Count; i < count; i++)
1663for (int i = startIndex, count = Count; i < count; i++)
1694for (int i = Count - 1; iterationNeeded && i > resizingColumnIndex; i--)
1779for (int i = resizingColumnIndex + 1, count = Count; iterationNeeded && i < count; i++)
1860for (int i = startIndex, count = Count; i < count; i++)
1912for (int i = startIndex, count = Count; i < count; i++)
2497for (int i = 0, count = this.Count; i < count; i++)
2517for (int i = this.Count - 1; i >= 0; i--)
src\Framework\System\Windows\Controls\VirtualizedCellInfoCollection.cs (13)
987int numColumns = _owner.Columns.Count;
1016int numColumns = _owner.Columns.Count;
1053RemoveRegion(rowIndex, 0, 1, _owner.Columns.Count, ref removedRegions);
1072int numColumns = _owner.Columns.Count;
1160int numColumns = _owner.Columns.Count;
1204int numColumns = _owner.Columns.Count;
1263int numColumns = _owner.Columns.Count;
1401int numColumns = _owner.Columns.Count;
1442int numColumns = _owner.Columns.Count;
1486RemoveAllButRegion(rowIndex, 0, 1, _owner.Columns.Count);
1512CellRegion rowRegion = new CellRegion(0, rowIndex, _owner.Columns.Count, 1);
1537CellRegion rowRegion = new CellRegion(0, rowIndex, _owner.Columns.Count, 1);
1618(rowIndex < owner.Items.Count) && (columnIndex < owner.Columns.Count))
src\Framework\System\Windows\Data\MultiBindingExpression.cs (23)
53int count = binding.Bindings.Count;
126if (MutableBindingExpressions.Count == 0)
142if (MutableBindingExpressions.Count == 0)
213int count = MutableBindingExpressions.Count;
238WeakDependencySource[] newSources = CombineSources(-1, MutableBindingExpressions, MutableBindingExpressions.Count, null, commonSources);
283for ( int i = 0; i < MutableBindingExpressions.Count; i++ )
308for ( int i = 0; i < MutableBindingExpressions.Count; i++ )
332for ( int i = 0; i < MutableBindingExpressions.Count; i++ )
370int count = ParentMultiBinding.Bindings.Count;
409int count = MutableBindingExpressions.Count;
457WeakDependencySource[] combinedSources = CombineSources(index, MutableBindingExpressions, MutableBindingExpressions.Count, newSources, commonSources);
483for (int i=0, n=MutableBindingExpressions.Count-1; i<n; ++i)
561int count = MutableBindingExpressions.Count;
630int count = MutableBindingExpressions.Count;
698int count = MutableBindingExpressions.Count;
763int count = MutableBindingExpressions.Count;
774for (int i=MutableBindingExpressions.Count-1; i>=0; --i)
807int count = MutableBindingExpressions.Count;
898int count = MutableBindingExpressions.Count;
933for (int k=0, n=childValues.Count; k<n; ++k)
960int count = MutableBindingExpressions.Count;
1047int n = MutableBindingExpressions.Count;
1165int count = MutableBindingExpressions.Count;
System\ServiceModel\Security\WSSecurityPolicy.cs (41)
478&& alternative.Count == 0)
541&& alternative.Count == 0)
589&& alternative.Count == 0)
666if (alternative.Count == 0)
690if (alternative.Count == 0)
849if (alternative.Count == 0)
935if ((signed == null || signed.Count == 0)
936&& (signedEncrypted == null || signedEncrypted.Count == 0)
937&& (optionalSigned == null || optionalSigned.Count == 0)
938&& (optionalSignedEncrypted == null || optionalSignedEncrypted.Count == 0))
997if ((endorsing == null || endorsing.Count == 0)
998&& (optionalEndorsing == null || optionalEndorsing.Count == 0))
1121while (alternative.Count > 0 && TryImportTokenAssertion(importer, policyContext, alternative, out parameters, out isOptional))
1132if (alternative.Count == 0)
1199while (alternative.Count > 0 && TryImportTokenAssertion(importer, policyContext, alternative, out parameters, out isOptional))
1210if (alternative.Count == 0)
1263while (alternative.Count > 0 && TryImportTokenAssertion(importer, policyContext, alternative, out parameters, out isOptional))
1274if (alternative.Count == 0)
1331if (security.EndpointSupportingTokenParameters.SignedEncrypted.Count > 0 ||
1332security.OptionalEndpointSupportingTokenParameters.SignedEncrypted.Count > 0)
1338if (r.SignedEncrypted.Count > 0)
1345if (r.SignedEncrypted.Count > 0)
1505&& alternative.Count == 0)
1593&& alternative.Count == 0)
1725&& alternative.Count == 0)
1751&& alternative.Count == 0)
1777&& alternative.Count == 0)
1841&& alternatives.Count == 1
1842&& alternatives[0].Count == 1)
1916if (assertions.Count >= 1)
2057&& alternative.Count == 0)
2153&& alternative.Count == 0)
2202&& alternative.Count == 0)
2442&& alternative.Count == 0)
2526&& alternative.Count == 0)
2610&& alternative.Count == 0)
2805&& alternative.Count == 0)
2952for (int i = 0; i < wsdlImporter.Errors.Count; ++i)
2961if (parameters.AlternativeIssuerEndpoints != null && parameters.AlternativeIssuerEndpoints.Count > 0)
2999for (int j = 0; j < contract.Operations.Count; ++j)
3004for (int k = 0; k < operation.Messages.Count; ++k)
System\UriTemplateTable.cs (14)
177Fx.Assert(nextCandidates.Count == 0, "nextCandidates should be empty");
189if (nextCandidates.Count > 1)
191Fx.Assert(AllEquivalent(nextCandidates, 0, nextCandidates.Count), "demux algorithm problem, multiple non-equivalent matches");
194if (nextCandidates.Count == 0)
204if (nextCandidates.Count == 0)
208if (nextCandidates.Count > 1)
210Fx.Assert(AllEquivalent(nextCandidates, 0, nextCandidates.Count), "demux algorithm problem, multiple non-equivalent matches");
246Fx.Assert(nextCandidates.Count >= 1, "At least the first entry in the list should be kept");
265if (c.Count == 0)
269if (c.Count == 1)
487if (this.templates.Count == 0)
508if (fastPathRelativePathSegments.Count != slowPathRelativePathSegments.Count)
512for (int i = 0; i < fastPathRelativePathSegments.Count; ++i)