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
- Win32.cs
- AdRotator.cs
- HttpException.cs
- PreservationFileWriter.cs
- OleDbStruct.cs
- InheritanceContextChangedEventManager.cs
- GridEntryCollection.cs
- ProfileService.cs
- ExternalFile.cs
- ResourceProperty.cs
- FlowDocumentPageViewerAutomationPeer.cs
- TrailingSpaceComparer.cs
- ItemCollection.cs
- AuthenticationService.cs
- ToolboxDataAttribute.cs
- SystemIPv4InterfaceProperties.cs
- WasHttpHandlersInstallComponent.cs
- RotationValidation.cs
- ReferencedType.cs
- VectorAnimationUsingKeyFrames.cs
- PrintPageEvent.cs
- ProviderSettings.cs
- FixedHyperLink.cs
- RecordManager.cs
- SqlDataSource.cs
- XmlILStorageConverter.cs
- PriorityItem.cs
- UnauthorizedAccessException.cs
- BindingExpression.cs
- PropertyMetadata.cs
- PermissionAttributes.cs
- ControlBuilder.cs
- TextBoxAutomationPeer.cs
- Util.cs
- GetChildSubtree.cs
- ActivityExecutionFilter.cs
- RootProfilePropertySettingsCollection.cs
- SQLChars.cs
- ResourceManager.cs
- CallbackValidator.cs
- WindowsFormsSectionHandler.cs
- Internal.cs
- ImageListImage.cs
- EventSinkHelperWriter.cs
- ProxyWebPartConnectionCollection.cs
- SqlOuterApplyReducer.cs
- ThreadPool.cs
- CurrencyWrapper.cs
- Stacktrace.cs
- EndpointDispatcher.cs
- ConfigurationManagerInternalFactory.cs
- MeasureItemEvent.cs
- SpellCheck.cs
- VisualBrush.cs
- Highlights.cs
- HitTestParameters.cs
- MemberDescriptor.cs
- TextParagraphProperties.cs
- HttpCookieCollection.cs
- JsonReader.cs
- Atom10FormatterFactory.cs
- GeneralTransform2DTo3D.cs
- AccessDataSource.cs
- ItemCollection.cs
- ExtenderProvidedPropertyAttribute.cs
- FeatureAttribute.cs
- XmlSchemaFacet.cs
- PipeSecurity.cs
- PropertiesTab.cs
- LifetimeServices.cs
- XmlMemberMapping.cs
- EncryptedData.cs
- ConfigXmlElement.cs
- TPLETWProvider.cs
- ZipIOFileItemStream.cs
- ReferencedType.cs
- SqlRemoveConstantOrderBy.cs
- ColorMap.cs
- GridViewUpdatedEventArgs.cs
- ImageListStreamer.cs
- XmlSerializerVersionAttribute.cs
- DataGridViewTextBoxColumn.cs
- RelatedView.cs
- DeobfuscatingStream.cs
- IConvertible.cs
- ReadOnlyHierarchicalDataSource.cs
- PointHitTestParameters.cs
- NodeLabelEditEvent.cs
- AutoResetEvent.cs
- EncoderNLS.cs
- XmlTextWriter.cs
- InputLanguageManager.cs
- SortExpressionBuilder.cs
- HuffmanTree.cs
- Environment.cs
- CodeCommentStatementCollection.cs
- DbReferenceCollection.cs
- HorizontalAlignConverter.cs
- MaterialCollection.cs
- Internal.cs