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
- SystemIcons.cs
- AssertSection.cs
- RichTextBoxAutomationPeer.cs
- BasicExpandProvider.cs
- TreeViewCancelEvent.cs
- Model3DGroup.cs
- oledbmetadatacollectionnames.cs
- TextSerializer.cs
- DataExpression.cs
- SchemaImporterExtensionElementCollection.cs
- AsyncDataRequest.cs
- IssuanceLicense.cs
- XmlMemberMapping.cs
- Binding.cs
- DbParameterCollectionHelper.cs
- DragStartedEventArgs.cs
- PopupControlService.cs
- FacetDescriptionElement.cs
- RowSpanVector.cs
- OptionalRstParameters.cs
- NCryptNative.cs
- SqlTypeConverter.cs
- PagedDataSource.cs
- DrawingServices.cs
- ManualWorkflowSchedulerService.cs
- autovalidator.cs
- DragEventArgs.cs
- CharEnumerator.cs
- MDIControlStrip.cs
- LockedBorderGlyph.cs
- HttpConfigurationSystem.cs
- IndicFontClient.cs
- BulletedListDesigner.cs
- DesignerCommandAdapter.cs
- LocatorGroup.cs
- DbMetaDataCollectionNames.cs
- ZipIOFileItemStream.cs
- HttpModulesSection.cs
- QilChoice.cs
- FileEnumerator.cs
- FixedTextSelectionProcessor.cs
- HttpCacheParams.cs
- RuntimeResourceSet.cs
- FilteredXmlReader.cs
- _CacheStreams.cs
- SamlNameIdentifierClaimResource.cs
- UserControlDesigner.cs
- GeometryGroup.cs
- ListControl.cs
- StateMachineTimers.cs
- DateTimeFormatInfo.cs
- ActivationArguments.cs
- ClassValidator.cs
- _NTAuthentication.cs
- ColumnMapTranslator.cs
- FixUp.cs
- D3DImage.cs
- XmlUtf8RawTextWriter.cs
- PropertyDescriptors.cs
- FormsAuthenticationModule.cs
- HtmlTableCellCollection.cs
- ContentElement.cs
- SqlDataSourceView.cs
- ObjectListField.cs
- DocumentXmlWriter.cs
- DataSvcMapFile.cs
- TextTabProperties.cs
- WebPartTransformer.cs
- DataRow.cs
- SafeNativeMethodsCLR.cs
- NativeMethods.cs
- JsonClassDataContract.cs
- ElementHostAutomationPeer.cs
- TrustLevelCollection.cs
- Renderer.cs
- Visitors.cs
- DrawTreeNodeEventArgs.cs
- BamlRecords.cs
- SqlExpressionNullability.cs
- IIS7UserPrincipal.cs
- HwndTarget.cs
- BinaryFormatterWriter.cs
- EventLogger.cs
- DefaultPrintController.cs
- XmlElementCollection.cs
- StoreContentChangedEventArgs.cs
- MapPathBasedVirtualPathProvider.cs
- PersonalizationProviderHelper.cs
- ScopedKnownTypes.cs
- SubordinateTransaction.cs
- BoolLiteral.cs
- SqlBooleanizer.cs
- TextViewBase.cs
- RecognitionEventArgs.cs
- DropSource.cs
- GacUtil.cs
- DocumentOrderComparer.cs
- QueryResult.cs
- CipherData.cs
- WebPartConnectionsConfigureVerb.cs