Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- TemplateBindingExtension.cs
- RectangleConverter.cs
- HttpDebugHandler.cs
- DataTableMapping.cs
- WebMessageEncoderFactory.cs
- JavaScriptString.cs
- FillRuleValidation.cs
- ObservableCollectionDefaultValueFactory.cs
- IntPtr.cs
- ExecutionContext.cs
- Invariant.cs
- UrlPath.cs
- SiteMap.cs
- ConfigXmlText.cs
- RowToParametersTransformer.cs
- LayoutUtils.cs
- RelatedPropertyManager.cs
- TextRunTypographyProperties.cs
- UIElementIsland.cs
- Enum.cs
- BuilderElements.cs
- DigitShape.cs
- ReferenceSchema.cs
- ArithmeticException.cs
- TableStyle.cs
- CustomErrorsSectionWrapper.cs
- PipeSecurity.cs
- TaskFileService.cs
- DbDataRecord.cs
- RangeExpression.cs
- CommonDialog.cs
- ExpandableObjectConverter.cs
- Utilities.cs
- OleDbDataReader.cs
- SpotLight.cs
- ProfileGroupSettingsCollection.cs
- TreeNode.cs
- VarRefManager.cs
- SplitContainer.cs
- CompiledQueryCacheKey.cs
- WmlCalendarAdapter.cs
- ApplicationGesture.cs
- DataGridViewColumn.cs
- CompiledWorkflowDefinitionContext.cs
- ExpressionConverter.cs
- ControlTemplate.cs
- EndpointAddressAugust2004.cs
- InvalidProgramException.cs
- Parser.cs
- sqlinternaltransaction.cs
- DbParameterHelper.cs
- ExplicitDiscriminatorMap.cs
- NativeWindow.cs
- GlyphCache.cs
- BinaryNode.cs
- SecurityTokenProviderContainer.cs
- XmlUnspecifiedAttribute.cs
- EntityDataSourceContainerNameItem.cs
- SAPICategories.cs
- ClrPerspective.cs
- MultipleViewPattern.cs
- FlowDecisionDesigner.xaml.cs
- KeyValueConfigurationCollection.cs
- LightweightCodeGenerator.cs
- StatusBarItemAutomationPeer.cs
- BindingValueChangedEventArgs.cs
- HyperLink.cs
- WebPartCloseVerb.cs
- GeometryModel3D.cs
- TextTreeRootNode.cs
- TrackBarRenderer.cs
- MailDefinition.cs
- EdmMember.cs
- MappedMetaModel.cs
- MaterializeFromAtom.cs
- TypeInfo.cs
- UnsafeNativeMethodsCLR.cs
- EntityDataSourceMemberPath.cs
- ParserHooks.cs
- FSWPathEditor.cs
- MimeImporter.cs
- SystemFonts.cs
- Stackframe.cs
- OpacityConverter.cs
- MbpInfo.cs
- DiscoveryReference.cs
- TimeSpan.cs
- Choices.cs
- DbXmlEnabledProviderManifest.cs
- HtmlSelect.cs
- HybridWebProxyFinder.cs
- FtpCachePolicyElement.cs
- SetIterators.cs
- RuntimeResourceSet.cs
- HttpSocketManager.cs
- Timer.cs
- AbstractExpressions.cs
- DbProviderServices.cs
- DrawingBrush.cs
- PageSettings.cs