void MoveNextInCollection(CollectionDataNode dataNode) { if (dataNode.Items != null && element.childElementIndex < dataNode.Items.Count) { if (element.childElementIndex == 0) this.context.IncrementItemCount(-dataNode.Items.Count); IDataNode item = dataNode.Items[element.childElementIndex++]; SetNextElement(item, dataNode.ItemName, dataNode.ItemNamespace, GetPrefix(dataNode.ItemNamespace)); } else { this.internalNodeType = ExtensionDataNodeType.EndElement; element.childElementIndex = 0; } }
private void MoveNextInCollection(CollectionDataNode dataNode) { if ((dataNode.Items != null) && (this.element.childElementIndex < dataNode.Items.Count)) { if (this.element.childElementIndex == 0) { this.context.IncrementItemCount(-dataNode.Items.Count); } IDataNode node = dataNode.Items[this.element.childElementIndex++]; this.SetNextElement(node, dataNode.ItemName, dataNode.ItemNamespace, GetPrefix(dataNode.ItemNamespace)); } else { this.internalNodeType = ExtensionDataNodeType.EndElement; this.element.childElementIndex = 0; } }