Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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.
//
// [....]
// [....]
// [....]
//-----------------------------------------------------------------------------
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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TextLineBreak.cs
- StylusButtonCollection.cs
- RuleSetReference.cs
- ChildrenQuery.cs
- EncoderReplacementFallback.cs
- ScopedKnownTypes.cs
- RoleManagerModule.cs
- TableColumn.cs
- recordstatefactory.cs
- SharedStatics.cs
- Error.cs
- RectangleConverter.cs
- DiagnosticTraceSchemas.cs
- UnmanagedMemoryStream.cs
- DuplicateMessageDetector.cs
- XmlSchemaSimpleTypeRestriction.cs
- TypeBuilder.cs
- XmlSchemaIdentityConstraint.cs
- SslStream.cs
- TcpHostedTransportConfiguration.cs
- ToolZone.cs
- RegexRunner.cs
- CodeSubDirectory.cs
- Listbox.cs
- SemanticValue.cs
- PageParserFilter.cs
- SmtpClient.cs
- PointLightBase.cs
- BaseDataBoundControl.cs
- MouseGesture.cs
- ClickablePoint.cs
- SerializationException.cs
- CqlParserHelpers.cs
- CharEntityEncoderFallback.cs
- Domain.cs
- VisualProxy.cs
- ServicePoint.cs
- XNameTypeConverter.cs
- TrackingMemoryStreamFactory.cs
- EmptyWithCancelationCheckWorkItem.cs
- SessionParameter.cs
- PseudoWebRequest.cs
- GroupBoxRenderer.cs
- LinkUtilities.cs
- Win32PrintDialog.cs
- DecoderFallback.cs
- ToolstripProfessionalRenderer.cs
- PropertyGridCommands.cs
- SmiRecordBuffer.cs
- GeneratedView.cs
- BitmapEffectvisualstate.cs
- ConfigXmlWhitespace.cs
- ExpressionCopier.cs
- BaseParaClient.cs
- ConsoleTraceListener.cs
- Config.cs
- AuthenticatingEventArgs.cs
- Marshal.cs
- XmlSchemaException.cs
- DigitShape.cs
- EventDriven.cs
- LabelLiteral.cs
- SchemaImporterExtensionElement.cs
- rsa.cs
- GlyphInfoList.cs
- CodeComment.cs
- ReadOnlyHierarchicalDataSource.cs
- DataGridViewIntLinkedList.cs
- InputMethodStateTypeInfo.cs
- DescendentsWalkerBase.cs
- SQLDoubleStorage.cs
- FontResourceCache.cs
- FormsAuthenticationUserCollection.cs
- TreeWalker.cs
- Vector3DAnimationUsingKeyFrames.cs
- TabControl.cs
- PerfCounters.cs
- Utils.cs
- Int16AnimationUsingKeyFrames.cs
- FreeFormDragDropManager.cs
- AdapterDictionary.cs
- HebrewNumber.cs
- ProviderSettings.cs
- TableLayoutSettings.cs
- ImageMapEventArgs.cs
- SoapAttributeAttribute.cs
- TraceSection.cs
- OracleConnectionFactory.cs
- ListViewInsertEventArgs.cs
- X509CertificateInitiatorServiceCredential.cs
- ContentWrapperAttribute.cs
- AppDomainShutdownMonitor.cs
- SerializationBinder.cs
- ServerValidateEventArgs.cs
- IgnoreFlushAndCloseStream.cs
- SrgsToken.cs
- TableLayoutSettingsTypeConverter.cs
- SqlXmlStorage.cs
- InstanceData.cs
- _PooledStream.cs