// See the LICENSE file in the project root for more information.
using System.Collections;
+using System.Collections.Generic;
using System.Data.Common;
using System.Diagnostics;
using System.Globalization;
private readonly DataSet _dataSet;
private XmlToDatasetMap _nodeToSchemaMap = null;
private readonly Hashtable _nodeToRowMap;
- private readonly Stack _childRowsStack = null;
+ private readonly Stack<DataRow> _childRowsStack = null;
private readonly Hashtable _htableExcludedNS = null;
private readonly bool _fIsXdr = false;
internal bool _isDiffgram = false;
_fIsXdr = IsXdr;
// Allocate the stack and create the mappings
- _childRowsStack = new Stack(50);
+ _childRowsStack = new Stack<DataRow>(50);
_topMostNode = topNode;
_ignoreSchema = ignoreSchema;
// Allocate the stack and create the mappings
- _childRowsStack = new Stack(50);
+ _childRowsStack = new Stack<DataRow>(50);
_topMostNode = topNode;
_ignoreSchema = ignoreSchema;
}
while (entryChild < _childRowsStack.Count)
{ // Process child rows we might have
- DataRow childRow = (DataRow)_childRowsStack.Pop();
+ DataRow childRow = _childRowsStack.Pop();
// Get row from the stack
bool unchanged = (childRow.RowState == DataRowState.Unchanged);
// Is data the same as before?
while (entryChild < _childRowsStack.Count)
{ // Process child rows we might have
- DataRow childRow = (DataRow)_childRowsStack.Pop();
+ DataRow childRow = _childRowsStack.Pop();
// Get row from the stack
bool unchanged = (childRow.RowState == DataRowState.Unchanged);
// Is data the same as before?