Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / Data / System / NewXml / BaseTreeIterator.cs / 1 / BaseTreeIterator.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// [....]
// [....]
// [....]
//-----------------------------------------------------------------------------
namespace System.Xml {
using System;
using System.Data;
using System.Diagnostics;
// Iterates over non-attribute nodes
internal abstract class BaseTreeIterator {
protected DataSetMapper mapper;
internal BaseTreeIterator( DataSetMapper mapper ) {
this.mapper = mapper;
}
internal abstract void Reset();
internal abstract XmlNode CurrentNode { get; }
internal abstract bool Next();
internal abstract bool NextRight();
internal bool NextRowElement() {
while ( Next() ) {
if ( OnRowElement() )
return true;
}
return false;
}
internal bool NextRightRowElement() {
if ( NextRight() ) {
if ( OnRowElement() )
return true;
return NextRowElement();
}
return false;
}
// Returns true if the current node is on a row element (head of a region)
internal bool OnRowElement() {
XmlBoundElement be = CurrentNode as XmlBoundElement;
return (be != null) && (be.Row != null);
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MediaSystem.cs
- Environment.cs
- FloatUtil.cs
- ClientCredentialsSecurityTokenManager.cs
- DataGridViewDataErrorEventArgs.cs
- QueryContinueDragEventArgs.cs
- CngAlgorithm.cs
- CodeMemberProperty.cs
- LinkClickEvent.cs
- XPathDocumentBuilder.cs
- GenericTextProperties.cs
- DllNotFoundException.cs
- SoapHelper.cs
- ISAPIWorkerRequest.cs
- KeyedCollection.cs
- ISFClipboardData.cs
- ThicknessKeyFrameCollection.cs
- FormViewRow.cs
- SchemaImporterExtension.cs
- ButtonAutomationPeer.cs
- MsmqAppDomainProtocolHandler.cs
- SafeCloseHandleCritical.cs
- TextParaClient.cs
- ExtensionWindowResizeGrip.cs
- UnitySerializationHolder.cs
- ExpressionParser.cs
- TabPage.cs
- StructureChangedEventArgs.cs
- CodeMemberField.cs
- ButtonAutomationPeer.cs
- UpdateTranslator.cs
- EdmValidator.cs
- CodePropertyReferenceExpression.cs
- SurrogateSelector.cs
- MarkupObject.cs
- HtmlTableCellCollection.cs
- DefaultHttpHandler.cs
- ChannelProtectionRequirements.cs
- HtmlWindow.cs
- ViewCellSlot.cs
- SerializationAttributes.cs
- FormViewUpdateEventArgs.cs
- ellipse.cs
- ListSortDescriptionCollection.cs
- ZeroOpNode.cs
- Stopwatch.cs
- WSDualHttpSecurityMode.cs
- HybridDictionary.cs
- SmiConnection.cs
- SecureStringHasher.cs
- XmlElementCollection.cs
- OracleBFile.cs
- InputLanguageManager.cs
- NonVisualControlAttribute.cs
- CustomErrorCollection.cs
- XmlSchemaAttributeGroup.cs
- ObjectSecurity.cs
- ServiceReference.cs
- ByteStreamGeometryContext.cs
- InstanceView.cs
- TrustSection.cs
- EmptyControlCollection.cs
- BitFlagsGenerator.cs
- TransactionTable.cs
- DictionaryTraceRecord.cs
- MexBindingBindingCollectionElement.cs
- Win32Exception.cs
- KeySplineConverter.cs
- SiteMapProvider.cs
- HandleRef.cs
- EntitySqlQueryBuilder.cs
- StylusSystemGestureEventArgs.cs
- AuthenticationException.cs
- XmlSchemaGroupRef.cs
- XmlNamespaceDeclarationsAttribute.cs
- followingquery.cs
- XmlSchemaSimpleContentRestriction.cs
- ConfigXmlElement.cs
- EventMetadata.cs
- TemplateLookupAction.cs
- Debugger.cs
- Parser.cs
- ConnectionInterfaceCollection.cs
- PropertyItem.cs
- KeyProperty.cs
- Propagator.cs
- MsmqHostedTransportConfiguration.cs
- ServiceContractViewControl.Designer.cs
- GregorianCalendarHelper.cs
- AuthStoreRoleProvider.cs
- SqlCommandSet.cs
- MaskInputRejectedEventArgs.cs
- UnhandledExceptionEventArgs.cs
- shaperfactoryquerycachekey.cs
- ListViewContainer.cs
- XsltOutput.cs
- FormViewRow.cs
- ListItem.cs
- XamlFilter.cs
- ThaiBuddhistCalendar.cs