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
- WindowsPen.cs
- XmlILConstructAnalyzer.cs
- DLinqDataModelProvider.cs
- AxisAngleRotation3D.cs
- WebPartManagerInternals.cs
- HorizontalAlignConverter.cs
- SignatureToken.cs
- ApplicationServicesHostFactory.cs
- Function.cs
- UndoManager.cs
- TypedDataSetSchemaImporterExtensionFx35.cs
- RadioButtonList.cs
- LineSegment.cs
- DataFormat.cs
- GroupBoxRenderer.cs
- DataGridViewCellPaintingEventArgs.cs
- TextTreeFixupNode.cs
- XmlRawWriterWrapper.cs
- RouteTable.cs
- GridViewColumnHeader.cs
- EventLogPermission.cs
- MediaTimeline.cs
- AmbientLight.cs
- RoleService.cs
- SchemaMerger.cs
- XmlSchemaSequence.cs
- ContextMarshalException.cs
- login.cs
- TextBlock.cs
- TaskExceptionHolder.cs
- CustomBindingElement.cs
- DataContractAttribute.cs
- SerializationStore.cs
- CardSpaceSelector.cs
- DataPager.cs
- ControlPersister.cs
- IndexedEnumerable.cs
- SemanticResultKey.cs
- NullReferenceException.cs
- SerTrace.cs
- FrameworkContextData.cs
- ObjectQueryProvider.cs
- DeferredElementTreeState.cs
- MediaSystem.cs
- StandardOleMarshalObject.cs
- _LocalDataStore.cs
- DiscoveryEndpointValidator.cs
- SqlColumnizer.cs
- WrapperSecurityCommunicationObject.cs
- DataGridViewAutoSizeColumnModeEventArgs.cs
- DrawingImage.cs
- ConversionContext.cs
- TextEditorSpelling.cs
- RegexCompilationInfo.cs
- XmlnsDictionary.cs
- DocumentViewerBaseAutomationPeer.cs
- DataObject.cs
- EmissiveMaterial.cs
- FileSystemEventArgs.cs
- CodeDOMUtility.cs
- SqlEnums.cs
- FormsAuthenticationEventArgs.cs
- BaseTemplateParser.cs
- TextClipboardData.cs
- PhysicalFontFamily.cs
- CalendarItem.cs
- XmlNotation.cs
- SplineQuaternionKeyFrame.cs
- PreProcessor.cs
- ZipIOLocalFileHeader.cs
- XmlDocumentType.cs
- Attachment.cs
- CommonRemoteMemoryBlock.cs
- ChangeInterceptorAttribute.cs
- DynamicUpdateCommand.cs
- SmtpMail.cs
- WebPartEditorCancelVerb.cs
- XamlToRtfParser.cs
- Emitter.cs
- Int32AnimationUsingKeyFrames.cs
- ClientOptions.cs
- ShapeTypeface.cs
- AsyncStreamReader.cs
- BaseParaClient.cs
- PointAnimationUsingKeyFrames.cs
- SystemFonts.cs
- RangeBase.cs
- XmlDeclaration.cs
- EntitySqlQueryState.cs
- WebPartDeleteVerb.cs
- DefaultValueTypeConverter.cs
- ButtonBase.cs
- SafeBitVector32.cs
- PerfCounterSection.cs
- XhtmlBasicFormAdapter.cs
- TextElement.cs
- Screen.cs
- XmlRawWriterWrapper.cs
- ChannelManagerBase.cs
- EncryptedKey.cs