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

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- IndexedString.cs
- ReadOnlyPropertyMetadata.cs
- TextCompositionEventArgs.cs
- NamedPipeTransportBindingElement.cs
- DeviceContext.cs
- ConcurrentBag.cs
- ValueUtilsSmi.cs
- TextTreeTextBlock.cs
- DbExpressionVisitor_TResultType.cs
- BuildResult.cs
- MetadataItemCollectionFactory.cs
- HandoffBehavior.cs
- DockPatternIdentifiers.cs
- HideDisabledControlAdapter.cs
- SQLString.cs
- InkPresenter.cs
- ObjectAnimationBase.cs
- AllMembershipCondition.cs
- EditorPartChrome.cs
- CodeDefaultValueExpression.cs
- ToolStripScrollButton.cs
- ContainerParagraph.cs
- MSHTMLHost.cs
- SendActivityDesignerTheme.cs
- _AutoWebProxyScriptWrapper.cs
- TraceXPathNavigator.cs
- HyperLinkColumn.cs
- XmlSchemaRedefine.cs
- Rotation3DKeyFrameCollection.cs
- VariableAction.cs
- ExpressionBinding.cs
- WaitForChangedResult.cs
- HttpRequestWrapper.cs
- ToolboxComponentsCreatedEventArgs.cs
- DependentList.cs
- EventLogLink.cs
- SiteMapHierarchicalDataSourceView.cs
- Vector3DAnimation.cs
- ProfilePropertyNameValidator.cs
- CapabilitiesRule.cs
- ConnectionStringsExpressionBuilder.cs
- PageCache.cs
- GAC.cs
- ComplexTypeEmitter.cs
- QilGeneratorEnv.cs
- WindowsFormsHost.cs
- UnsafePeerToPeerMethods.cs
- ToolStripDropDownMenu.cs
- COM2ComponentEditor.cs
- PeerNodeTraceRecord.cs
- TargetException.cs
- CompressionTracing.cs
- RoutingSection.cs
- RequestNavigateEventArgs.cs
- SymbolType.cs
- FrameworkObject.cs
- CodeFieldReferenceExpression.cs
- TagPrefixAttribute.cs
- MessageQueueInstaller.cs
- SplitContainer.cs
- ProcessModule.cs
- XmlTextReaderImpl.cs
- WSDualHttpBindingElement.cs
- AnimationStorage.cs
- _AutoWebProxyScriptHelper.cs
- RewritingPass.cs
- SqlException.cs
- SettingsSection.cs
- SubclassTypeValidatorAttribute.cs
- SqlProfileProvider.cs
- InlineCollection.cs
- TextChange.cs
- BaseDataListDesigner.cs
- BufferManager.cs
- DbConnectionPool.cs
- ApplicationServicesHostFactory.cs
- WebBrowserDesigner.cs
- Rotation3DAnimation.cs
- SecurityToken.cs
- XmlDataSourceNodeDescriptor.cs
- TypedRowHandler.cs
- ViewValidator.cs
- SchemaAttDef.cs
- entityreference_tresulttype.cs
- XmlText.cs
- GraphicsContainer.cs
- SeekStoryboard.cs
- IisTraceWebEventProvider.cs
- ISAPIWorkerRequest.cs
- MsdtcWrapper.cs
- SchemaNamespaceManager.cs
- ComponentResourceKeyConverter.cs
- ArgumentOutOfRangeException.cs
- ResolveResponseInfo.cs
- PlainXmlDeserializer.cs
- TagPrefixAttribute.cs
- PackagePartCollection.cs
- CaseInsensitiveOrdinalStringComparer.cs
- CompiledQueryCacheEntry.cs
- TiffBitmapDecoder.cs