Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Data / System / NewXml / BaseTreeIterator.cs / 1305376 / BaseTreeIterator.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //[....] //----------------------------------------------------------------------------- namespace System.Xml { // 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 { // 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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Convert.cs
- basenumberconverter.cs
- QueueException.cs
- BidirectionalDictionary.cs
- SchemaMapping.cs
- BitmapEffectDrawingContextWalker.cs
- Assembly.cs
- AnalyzedTree.cs
- DataGridItem.cs
- TemplateControlParser.cs
- ObjectDataSource.cs
- DeclarativeExpressionConditionDeclaration.cs
- InputLanguage.cs
- SpecularMaterial.cs
- SafeWaitHandle.cs
- clipboard.cs
- HtmlAnchor.cs
- SignedXmlDebugLog.cs
- Event.cs
- DesignSurfaceEvent.cs
- EnvironmentPermission.cs
- MenuItemCollection.cs
- ProtocolElement.cs
- HtmlHistory.cs
- DateTimeConstantAttribute.cs
- ScrollContentPresenter.cs
- EntityDataSourceDataSelection.cs
- InitializerFacet.cs
- Expander.cs
- SqlConnectionStringBuilder.cs
- HeaderCollection.cs
- XmlSchemaDatatype.cs
- SqlRetyper.cs
- DateTimeFormatInfo.cs
- DesignerTextWriter.cs
- IOException.cs
- DataGridColumn.cs
- IndexedString.cs
- VisualBasicHelper.cs
- WebBodyFormatMessageProperty.cs
- KnownTypesProvider.cs
- ElementsClipboardData.cs
- VersionedStreamOwner.cs
- ImageMetadata.cs
- FixedTextPointer.cs
- AttributeUsageAttribute.cs
- ListParagraph.cs
- XPathParser.cs
- ExpressionPrinter.cs
- TransactionValidationBehavior.cs
- ShaperBuffers.cs
- MaskedTextProvider.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- WsdlBuildProvider.cs
- DataIdProcessor.cs
- httpstaticobjectscollection.cs
- XmlAggregates.cs
- DataGridPageChangedEventArgs.cs
- CachedPathData.cs
- ClassData.cs
- PageSetupDialog.cs
- CfgParser.cs
- DataColumnPropertyDescriptor.cs
- IdentityNotMappedException.cs
- ToolBar.cs
- PageBuildProvider.cs
- OracleMonthSpan.cs
- ArglessEventHandlerProxy.cs
- GridItemPatternIdentifiers.cs
- XmlHierarchyData.cs
- BooleanSwitch.cs
- BinaryNode.cs
- RuntimeConfigLKG.cs
- DSGeneratorProblem.cs
- ContentPropertyAttribute.cs
- AttributeProviderAttribute.cs
- FontStretchConverter.cs
- SymbolMethod.cs
- ObjectSpanRewriter.cs
- RequestBringIntoViewEventArgs.cs
- WebBrowserDocumentCompletedEventHandler.cs
- IconBitmapDecoder.cs
- MethodToken.cs
- LocalizationParserHooks.cs
- Comparer.cs
- WindowsNonControl.cs
- CodeArrayCreateExpression.cs
- WS2007HttpBinding.cs
- AsyncOperationManager.cs
- HttpSysSettings.cs
- DataGridViewButtonCell.cs
- DbSetClause.cs
- ServiceBusyException.cs
- FocusWithinProperty.cs
- CodeConstructor.cs
- CommandField.cs
- DBSqlParserTableCollection.cs
- BaseCollection.cs
- TextPenaltyModule.cs
- SubpageParaClient.cs