Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- ArgIterator.cs
- SiteMap.cs
- RoleGroupCollection.cs
- InputScope.cs
- cache.cs
- OdbcHandle.cs
- StylusPoint.cs
- EnumUnknown.cs
- XPathNodeHelper.cs
- PropVariant.cs
- CacheSection.cs
- RequestSecurityTokenForGetBrowserToken.cs
- XhtmlBasicLabelAdapter.cs
- JoinSymbol.cs
- RegisteredDisposeScript.cs
- OleDbParameter.cs
- DesignerDataColumn.cs
- UnsafeNativeMethods.cs
- RuntimeHandles.cs
- GridItem.cs
- BindingManagerDataErrorEventArgs.cs
- Deflater.cs
- InternalCache.cs
- CommandConverter.cs
- cookiecontainer.cs
- ToolTip.cs
- FtpWebResponse.cs
- HttpChannelListener.cs
- DataGridItemEventArgs.cs
- SafeLibraryHandle.cs
- FixedDocumentSequencePaginator.cs
- XmlWhitespace.cs
- StringArrayConverter.cs
- MemoryFailPoint.cs
- BitHelper.cs
- ToolStripSplitStackLayout.cs
- PackageRelationshipSelector.cs
- SkewTransform.cs
- TextProperties.cs
- InternalBufferOverflowException.cs
- TemplateBindingExpression.cs
- DataTableMappingCollection.cs
- XmlSerializationReader.cs
- TypeExtensionConverter.cs
- XmlQueryOutput.cs
- HtmlControlDesigner.cs
- CodeArrayCreateExpression.cs
- SoapCodeExporter.cs
- TraceInternal.cs
- TextProperties.cs
- WebPartDisplayModeCancelEventArgs.cs
- QilCloneVisitor.cs
- unsafeIndexingFilterStream.cs
- SerialReceived.cs
- DataView.cs
- XmlSignificantWhitespace.cs
- SplitterCancelEvent.cs
- CodeIndexerExpression.cs
- DtdParser.cs
- XmlSerializerOperationGenerator.cs
- NativeMethods.cs
- WizardStepBase.cs
- MouseCaptureWithinProperty.cs
- HtmlTernaryTree.cs
- GlyphRunDrawing.cs
- CompiledXpathExpr.cs
- SecurityIdentifierElement.cs
- ComponentEditorPage.cs
- PageCodeDomTreeGenerator.cs
- MappedMetaModel.cs
- Decoder.cs
- DelegateTypeInfo.cs
- HttpNamespaceReservationInstallComponent.cs
- XComponentModel.cs
- DynamicPropertyReader.cs
- EmptyReadOnlyDictionaryInternal.cs
- UnicastIPAddressInformationCollection.cs
- DispatcherExceptionEventArgs.cs
- PrinterSettings.cs
- EntityDataSourceMemberPath.cs
- RetriableClipboard.cs
- HtmlLink.cs
- RequestResizeEvent.cs
- MatrixIndependentAnimationStorage.cs
- TableChangeProcessor.cs
- DataExchangeServiceBinder.cs
- DataGridViewCellStyleEditor.cs
- WSSecurityPolicy11.cs
- ChildrenQuery.cs
- AsymmetricSignatureDeformatter.cs
- NotifyInputEventArgs.cs
- ChangeNode.cs
- SessionState.cs
- ByteFacetDescriptionElement.cs
- FormCollection.cs
- AvTrace.cs
- X509Utils.cs
- CompModSwitches.cs
- WebPartConnectionsCancelVerb.cs
- DrawingContext.cs