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
- Expander.cs
- DataRow.cs
- WorkflowDataContext.cs
- AttributeAction.cs
- AppDomainShutdownMonitor.cs
- documentsequencetextview.cs
- SelfSignedCertificate.cs
- arclist.cs
- ButtonBaseAdapter.cs
- PkcsUtils.cs
- RequestBringIntoViewEventArgs.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- Color.cs
- SqlNodeAnnotation.cs
- AccessedThroughPropertyAttribute.cs
- TableCellCollection.cs
- NativeMethods.cs
- Peer.cs
- DocumentPageTextView.cs
- XmlUnspecifiedAttribute.cs
- QilInvokeEarlyBound.cs
- Int32Converter.cs
- AssociatedControlConverter.cs
- LiteralTextParser.cs
- MemoryStream.cs
- StrokeCollectionDefaultValueFactory.cs
- BackgroundFormatInfo.cs
- UnlockInstanceAsyncResult.cs
- DataControlImageButton.cs
- FocusTracker.cs
- HttpCacheVary.cs
- FtpRequestCacheValidator.cs
- SQLByte.cs
- OracleDataAdapter.cs
- SortKey.cs
- TypeLoadException.cs
- As.cs
- VoiceChangeEventArgs.cs
- WebGetAttribute.cs
- LineGeometry.cs
- HideDisabledControlAdapter.cs
- Convert.cs
- XmlValidatingReaderImpl.cs
- DataGridViewAccessibleObject.cs
- DecoderReplacementFallback.cs
- DecimalStorage.cs
- AstTree.cs
- RequestCache.cs
- UInt32.cs
- RemotingSurrogateSelector.cs
- HtmlContainerControl.cs
- Win32Interop.cs
- XsltException.cs
- XmlCharCheckingWriter.cs
- SqlDataRecord.cs
- DateTime.cs
- Image.cs
- EdmToObjectNamespaceMap.cs
- SecurityException.cs
- MissingFieldException.cs
- Grid.cs
- TreeNodeConverter.cs
- TaskHelper.cs
- AdRotator.cs
- HttpResponseWrapper.cs
- ProcessModule.cs
- FileDialogCustomPlaces.cs
- InvalidOleVariantTypeException.cs
- XNodeValidator.cs
- IsolatedStoragePermission.cs
- BoolExpression.cs
- Inflater.cs
- SoapClientProtocol.cs
- WebPartCollection.cs
- GetPageNumberCompletedEventArgs.cs
- DaylightTime.cs
- HtmlEmptyTagControlBuilder.cs
- MetabaseServerConfig.cs
- IisTraceListener.cs
- XamlToRtfParser.cs
- DateTime.cs
- DSASignatureDeformatter.cs
- EntityDataSourceColumn.cs
- DragEvent.cs
- Tokenizer.cs
- WebSysDisplayNameAttribute.cs
- DocumentXmlWriter.cs
- StringFunctions.cs
- Sentence.cs
- AppearanceEditorPart.cs
- HttpModulesSection.cs
- MultitargetUtil.cs
- ValueProviderWrapper.cs
- XmlSchemaDatatype.cs
- PenContext.cs
- DocumentPaginator.cs
- TdsParameterSetter.cs
- EventProviderWriter.cs
- ListControl.cs
- PreProcessor.cs