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
- SizeAnimation.cs
- SqlBulkCopy.cs
- TextParagraphView.cs
- OTFRasterizer.cs
- TableRowCollection.cs
- BitmapEffectrendercontext.cs
- FixedSOMLineRanges.cs
- WeakKeyDictionary.cs
- XmlUrlResolver.cs
- TextAdaptor.cs
- StringBuilder.cs
- ImageIndexConverter.cs
- StrongNamePublicKeyBlob.cs
- ServiceAuthorizationElement.cs
- ToolStripItemCollection.cs
- WebServicesDescriptionAttribute.cs
- PopupRootAutomationPeer.cs
- BulletChrome.cs
- ElementNotAvailableException.cs
- ResourcesBuildProvider.cs
- Line.cs
- RTTypeWrapper.cs
- GetParentChain.cs
- PerformanceCounterPermissionEntryCollection.cs
- TypeBuilder.cs
- sapiproxy.cs
- MarkerProperties.cs
- DependencyPropertyConverter.cs
- ItemList.cs
- URL.cs
- ViewBox.cs
- DesignerForm.cs
- DnsPermission.cs
- XmlAttribute.cs
- Exception.cs
- MaterialGroup.cs
- EmptyQuery.cs
- XmlDataLoader.cs
- TypeGeneratedEventArgs.cs
- FontDriver.cs
- EnvironmentPermission.cs
- Codec.cs
- PixelShader.cs
- RunInstallerAttribute.cs
- RectangleGeometry.cs
- SmiMetaData.cs
- ListBindableAttribute.cs
- GlobalItem.cs
- XPathChildIterator.cs
- IndexedGlyphRun.cs
- FileInfo.cs
- InputBindingCollection.cs
- MaterialGroup.cs
- SHA256Managed.cs
- DictionaryMarkupSerializer.cs
- SafeSerializationManager.cs
- unsafenativemethodsother.cs
- InkCanvas.cs
- DataRowView.cs
- ComponentConverter.cs
- CombinedGeometry.cs
- GcHandle.cs
- XhtmlStyleClass.cs
- HostingEnvironmentSection.cs
- StringUtil.cs
- InputLanguageSource.cs
- SqlDuplicator.cs
- NameTable.cs
- EventListenerClientSide.cs
- _NegoStream.cs
- DataServiceResponse.cs
- OledbConnectionStringbuilder.cs
- TraceUtility.cs
- Calendar.cs
- StoryFragments.cs
- AssemblyBuilder.cs
- ListViewSortEventArgs.cs
- SlotInfo.cs
- DataGridItemEventArgs.cs
- Query.cs
- XamlGridLengthSerializer.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- SqlDataSourceParameterParser.cs
- Single.cs
- PersonalizationStateQuery.cs
- RegexParser.cs
- DomainConstraint.cs
- PermissionListSet.cs
- AccessViolationException.cs
- Compiler.cs
- ValidatorCompatibilityHelper.cs
- ConditionalAttribute.cs
- SamlSubject.cs
- XPathDescendantIterator.cs
- PostBackOptions.cs
- WinFormsComponentEditor.cs
- ContainerSelectorBehavior.cs
- UnsafeNativeMethodsTablet.cs
- AssertSection.cs
- PropertyManager.cs