Implemented interface member:
property
Count
System.Collections.ICollection.Count
1 override of Count
System.Data.Common (1)
System\Data\DataRowCollection.cs (1)
36
public override int
Count
=> _list.Count;
199 references to Count
Accessibility_Core_App (1)
DataBindingExample.cs (1)
92
int col_Count = dataSet.Tables[0].Columns.
Count
;
Microsoft.Data.Analysis (2)
DataFrame.IO.cs (2)
146
if (table.Columns.
Count
== 0)
155
if (table.Columns.
Count
!= columnsCount)
PresentationFramework-SystemData (1)
SystemDataExtension.cs (1)
196
if (0 <= index && index < table.Columns.
Count
)
System.Data.Common (192)
System\Data\Common\DataColumnMapping.cs (1)
94
if ((0 <= index) && (index < columns.
Count
))
System\Data\Common\DataTableMapping.cs (1)
141
if ((0 <= index) && (index < tables.
Count
))
System\Data\ConstraintCollection.cs (5)
386
for (int i = 0; i < Table.ChildRelations.
Count
; i++)
396
for (int i = 0; i < Table.ParentRelations.
Count
; i++)
427
for (int i = 0; i < _table.ParentRelations.
Count
; i++)
431
for (int i = 0; i < _table.ChildRelations.
Count
; i++)
596
int count =
Count
;
System\Data\DataColumn.cs (4)
743
for (int i = 0; i < _table.Constraints.
Count
; i++)
1564
var parentRelations = new DataRelation[Table!.ParentRelations.
Count
];
1650
for (int i = 0; i < rels.
Count
; i++)
1662
for (int i = 0; i < rels.
Count
; i++)
System\Data\DataColumnCollection.cs (6)
489
for (int i = 0; i < _table.ParentRelations.
Count
; i++)
500
for (int i = 0; i < _table.ChildRelations.
Count
; i++)
511
for (int i = 0; i < _table.Constraints.
Count
; i++)
696
int count =
Count
;
721
for (int i = 0; i <
Count
; i++)
770
if (0 > newPosition || newPosition >
Count
- 1)
System\Data\DataError.cs (1)
141
int newCapacity = Math.Min(_count * 2, column.Table!.Columns.
Count
);
System\Data\DataRelationCollection.cs (2)
261
int count =
Count
;
402
int relationCount =
Count
;
System\Data\DataRow.cs (5)
425
object[] values = new object[_columns.
Count
];
440
if (_columns.
Count
< value.Length)
1401
for (int i = 0; i < _columns.
Count
; i++)
1413
for (int i = 0; i < _columns.
Count
; i++)
1424
for (int i = 0; i < _columns.
Count
; i++)
System\Data\DataRowComparer.cs (3)
155
int count = leftRow.Table.Columns.
Count
;
156
if (count != rightRow.Table.Columns.
Count
)
187
if (row.Table.Columns.
Count
> 0)
System\Data\DataSet.cs (42)
134
for (int i = 0; i < Tables.
Count
; i++)
352
info.AddValue("DataSet.Tables.Count", Tables.
Count
);
355
for (int i = 0; i < Tables.
Count
; i++)
369
for (int i = 0; i < Tables.
Count
; i++)
378
for (int i = 0; i < Tables.
Count
; i++)
390
for (int i = 0; i < Tables.
Count
; i++)
490
for (int i = 0; i < Tables.
Count
; i++)
856
for (int i = 0; i < Tables.
Count
; i++)
1004
for (int i = 0; i < Tables.
Count
; i++)
1065
for (int i = 0; i < Tables.
Count
; i++)
1096
for (int i = 0; i < Tables.
Count
; i++)
1101
for (int i = 0; i < Tables.
Count
; i++)
1123
for (int i = 0; i < Tables.
Count
; i++)
1153
if (ds.Tables.
Count
> 0) // To clean up all the schema in strong typed dataset.
1171
for (int i = 0; i < tbls.
Count
; i++)
1180
for (int i = 0; i < tbls.
Count
; i++)
1183
for (int j = 0; j < constraints.
Count
; j++)
1202
for (int i = 0; i < rels.
Count
; i++)
1230
for (int i = 0; i < tbls.
Count
; i++)
1279
for (int i = 0; i < Tables.
Count
; i++)
1283
for (int j = 0; j < table.Columns.
Count
; j++)
1338
TableChanges[] bitMatrix = new TableChanges[Tables.
Count
];
1423
int relationCount = relations.
Count
;
1553
for (int i = 0; i < Tables.
Count
; i++)
2098
if (Tables.
Count
== 0)
2225
if (!fSchemaFound && Tables.
Count
== 0)
2252
if (!fSchemaFound && Tables.
Count
== 0 && !topNode.HasChildNodes)
2309
if (!fSchemaFound && Tables.
Count
== 0)
3234
for (int i = 0; i < Tables.
Count
; i++)
3243
for (int i = 0; i < Tables.
Count
; i++)
3270
for (int i = 0; i < Tables.
Count
; i++)
3291
for (int i = 0; i < Tables.
Count
; i++)
3294
for (int j = 0; j < cons.
Count
;)
3323
for (int i = 0; i < Relations.
Count
; i++)
3334
for (int i = 0; i < Tables.
Count
; i++)
3337
for (int j = 0; j < constraints.
Count
; j++)
3363
for (int i = 0; i < Relations.
Count
; i++)
3374
for (int i = 0; i < Tables.
Count
; i++)
3377
for (int j = 0; j < constraints.
Count
; j++)
3668
if (Tables.
Count
== 0)
3673
var dataTables = new DataTable[Tables.
Count
];
3674
for (int i = 0; i < Tables.
Count
; i++)
System\Data\DataTable.cs (43)
329
Debug.Assert(ds.Tables.
Count
== 1, "There should be exactly 1 table here");
368
info.AddValue("DataTable.Columns.Count", Columns.
Count
);
382
for (int i = 0; i < Columns.
Count
; i++)
455
Debug.Assert(Columns.
Count
== 0, "There is column in Table");
529
for (int i = 0; i < Constraints.
Count
; i++)
665
int colCount = Columns.
Count
;
676
int colCount = Columns.
Count
;
692
int colCount = Columns.
Count
;
802
for (int i = 0; i < Columns.
Count
; i++)
2335
if (clone.Columns.
Count
> 0) // To clean up all the schema in strong typed dataset.
2370
if ((destinationTable != null && destinationTable.Columns.
Count
> 0))
2426
for (int i = 0; i < clmns.
Count
; i++)
2434
for (int i = 0; i < clmns.
Count
; i++)
2454
for (int j = 0; j < Constraints.
Count
; j++)
2484
for (int j = 0; j < Constraints.
Count
; j++)
2711
for (int i = 0; i < Columns.
Count
; i++)
2807
int columnCount = _columnCollection.
Count
;
3389
int colCount = _columnCollection.
Count
; // Perf: use the readonly columnCollection field directly
3425
int count = _columnCollection.
Count
;
4037
int count = dr.
Count
;
4045
count = dr.
Count
;
4180
int columnCount = _columnCollection.
Count
;
4190
int constraintCount = _constraintCollection.
Count
;
4357
for (int j = 0; j < ParentRelations.
Count
; j++)
4367
for (int j = 0; j < ChildRelations.
Count
; j++)
4860
for (int i = Columns.
Count
- 1; i >= position; i--)
4908
int columnsCount = Columns.
Count
;
4909
int relationsCount = ChildRelations.
Count
;
5052
for (int count = values.Length; count < _columnCollection.
Count
; count++)
5780
if (Columns.
Count
== 0)
5795
if (Columns.
Count
== 0)
5924
if (!fSchemaFound && Columns.
Count
== 0)
5943
if (!fSchemaFound && Columns.
Count
== 0)
6022
if (Columns.
Count
== 0)
6048
if (Columns.
Count
== 0)
6175
if (Columns.
Count
== 0)
6225
if (Columns.
Count
== 0)
6252
if (Columns.
Count
== 0)
6549
if (Columns.
Count
== 0)
6890
for (int tableIndex = 0; tableIndex < ds.Tables.
Count
; ++tableIndex)
6912
for (int tableIndex = 0; tableIndex < _targetDS.Tables.
Count
; ++tableIndex)
7238
for (int j = 0; j < ParentRelations.
Count
; j++)
7270
for (int j = 0; j < ChildRelations.
Count
; j++)
System\Data\DataTableCollection.cs (2)
405
if (table.ChildRelations.
Count
!= 0 || table.ParentRelations.
Count
!= 0)
System\Data\DataTableReader.cs (1)
288
return _currentDataTable.Columns.
Count
;
System\Data\DataView.cs (1)
1695
columnNames = new string[Table!.Columns.
Count
];
System\Data\DataViewManagerListItemTypeDescriptor.cs (1)
120
int tableCount = dataSet.Tables.
Count
;
System\Data\DataViewSettingCollection.cs (1)
135
return (ds == null) ? 0 : ds.Tables.
Count
;
System\Data\Filter\AggregateNode.cs (2)
89
if (relations.
Count
> 1)
93
if (relations.
Count
== 1)
System\Data\Filter\LookupNode.cs (1)
42
if (relations.
Count
> 1)
System\Data\ForeignKeyConstraint.cs (1)
909
for (int i = 0; i < rels.
Count
; i++)
System\Data\Merger.cs (7)
67
for (int i = 0; i < source.Tables.
Count
; i++)
79
for (int i = 0; i < source.Relations.
Count
; i++)
354
int oldCount = targetTable.Columns.
Count
;
355
for (int i = 0; i < table.Columns.
Count
; i++)
396
for (int i = oldCount; i < targetTable.Columns.
Count
; i++)
461
for (int i = 0; i < source.Tables.
Count
; i++)
472
for (int i = 0; i < table.Constraints.
Count
; i++)
System\Data\ProviderBase\SchemaMapping.cs (5)
583
bool alwaysCreateColumns = ((_dataTable.Columns.
Count
== 0) && ((_tableMapping.ColumnMappings == null) || (_tableMapping.ColumnMappings.Count == 0)) && (mappingAction == MissingMappingAction.Passthrough));
781
|| (0 == _dataTable.Columns.
Count
));
1089
int constraintCount = constraints.
Count
;
1227
int mappingCount = columnCollection.
Count
;
1250
_mappedDataValues = new object[columnCollection.
Count
];
System\Data\RecordManager.cs (4)
69
for (int i = 0; i < _table.Columns.
Count
; i++)
127
int count = _table._columnCollection.
Count
;
154
int count = _table._columnCollection.
Count
;
225
int count = _table.Columns.
Count
;
System\Data\Select.cs (1)
299
_candidateColumns = new ColumnInfo[_table.Columns.
Count
];
System\Data\Selection.cs (1)
101
IndexField[] fields = new IndexField[columns.
Count
];
System\Data\XDRSchema.cs (1)
613
for (int j = 0; j < childRelations.
Count
; j++)
System\Data\XmlDataLoader.cs (3)
203
int cCols = columns.
Count
;
716
object[] foundColumns = new object[collection.
Count
];
887
object[] foundColumns = new object[collection.
Count
];
System\Data\xmlsaver.cs (19)
350
for (int t = 0; t < ds.Tables.
Count
; t++)
357
for (int c = 0; c < table.Columns.
Count
; c++)
366
for (int r = 0; r < ds.Relations.
Count
; r++)
510
if (table.ParentRelations.
Count
== 0)
515
for (int j = 0; j < table.ParentRelations.
Count
; j++)
767
rels = new DataRelation[ds.Relations.
Count
];
768
for (int i = 0; i < ds.Relations.
Count
; i++)
1796
int cCount = columns.
Count
;
1807
for (int j = 0; j < childRelations.
Count
; j++)
1925
for (int j = 0; j < childRelations.
Count
; j++)
1996
for (int i = 0; i < constraints.
Count
; i++)
2281
for (int i = 0; i < ds.Tables.
Count
; i++)
2375
for (int i = 0; i < _ds!.Tables.
Count
; ++i)
2393
for (int i = 0; i < _ds!.Tables.
Count
; ++i)
2431
int colCount = table.Columns.
Count
;
2507
int colCount = table.Columns.
Count
;
2732
if (table.ParentRelations.
Count
== 0)
2737
for (int j = 0; j < table.ParentRelations.
Count
; j++)
2779
int colCount = row.Table.Columns.
Count
;
System\Data\XMLSchema.cs (14)
103
for (int i = 0; i <= table.Columns.
Count
; i++)
443
for (int i = 0; i < rels.
Count
; ++i)
659
bool newDataSet = (ds.Tables.
Count
== 0);
815
for (int j = 0; j < childRelations.
Count
; j++)
834
if (FromInference && ds.Tables.
Count
== 0 && string.Equals(ds.DataSetName, "NewDataSet", StringComparison.Ordinal))
844
if (ds.Tables.
Count
> 0)
953
for (int j = 0; j < childRelations.
Count
; j++)
1485
if (!FromInference || (isSimpleContent && table.Columns.
Count
== 0))
1642
for (int i = 0; i < table!.Columns.
Count
; i++)
1714
for (int j = 0; j < childRelations.
Count
; j++)
2075
if (ordinal > -1 && ordinal < table.Columns.
Count
)
2177
if (ordinal > -1 && ordinal < table.Columns.
Count
)
2534
if (ordinal > -1 && ordinal < table.Columns.
Count
)
2719
List<DataTable> _tableList = new List<DataTable>(_ds.Tables.
Count
);
System\Data\XmlToDatasetMap.cs (3)
95
ColumnsSchemaMap = new XmlNodeIdHashtable(tableSchema.Columns.
Count
);
264
_tableSchemaMap = new XmlNodeIdHashtable(dataSet.Tables.
Count
);
287
_tableSchemaMap = new XmlNodeIdHashtable(dataSet.Tables.
Count
);
System\Xml\DataPointer.cs (1)
125
int cColumns = columns.
Count
;
System\Xml\DataSetMappper.cs (1)
377
for (; iColumn < columns.
Count
; iColumn++)
System\Xml\XmlDataDocument.cs (7)
196
if (_dataSet.Tables.
Count
> 0)
283
if (_dataSet.Tables.
Count
> 0)
819
int cCols = columns.
Count
;
3044
if (ds == null || ds.Tables.
Count
== 0)
3050
retValue = new DataTable[ds.Tables.
Count
];
3058
retValue = new DataTable[ds!.Tables.
Count
];
3063
if (dt.ParentRelations.
Count
== 0)
System\Xml\XPathNodePointer.cs (2)
549
int cColumns = columns.
Count
;
569
int iColumn = (col != null) ? col.Ordinal - 1 : columns.
Count
- 1;
System.Data.Odbc (3)
src\libraries\Common\src\System\Data\ProviderBase\DbMetaDataFactory.cs (2)
80
for (int i = 0; i < destinationColumns.
Count
; i++)
176
object[] values = new object[resultTable.Columns.
Count
];
System\Data\Odbc\OdbcMetaDataFactory.cs (1)
1074
values = new object[resultTable.Columns.
Count
];