public void PopulatingPublicProperties() { this.RowCount = GetRowCount(); this.ColumnCount = GetColumnCount(); this.ColumnNames = GetColumnNames(); List <ResultSetRow> list = new List <ResultSetRow> (); if (!IsClosed() && this.Rows != null) { // Build ResultSetRow List. while (MoveToNext()) { ResultSetRow resultSetRow = new ResultSetRow(CurrentRow, Columns); list.Add(resultSetRow); } MoveToFirst(); // reset current position } this.RowsList = list.ToArray(); }
public void PopulatingPublicProperties() { this.RowCount = GetRowCount (); this.ColumnCount = GetColumnCount (); this.ColumnNames = GetColumnNames (); List<ResultSetRow> list = new List<ResultSetRow> (); if (!IsClosed () && this.Rows != null) { // Build ResultSetRow List. while (MoveToNext()) { ResultSetRow resultSetRow = new ResultSetRow (CurrentRow, Columns); list.Add (resultSetRow); } MoveToFirst (); // reset current position } this.RowsList = list.ToArray (); }