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
- TcpTransportManager.cs
- CopyAction.cs
- CallbackValidatorAttribute.cs
- AddInBase.cs
- SafeLibraryHandle.cs
- WebRequest.cs
- SHA512Cng.cs
- ExpressionReplacer.cs
- RegionInfo.cs
- DataTableNewRowEvent.cs
- ChannelProtectionRequirements.cs
- TypeDependencyAttribute.cs
- BaseAutoFormat.cs
- ProxyHelper.cs
- EntityCommand.cs
- NamespaceCollection.cs
- NamespaceInfo.cs
- PrintEvent.cs
- MergeExecutor.cs
- NonVisualControlAttribute.cs
- Vector3DValueSerializer.cs
- ModulesEntry.cs
- Typeface.cs
- XmlDocumentFragment.cs
- SqlCommand.cs
- QueryOperationResponseOfT.cs
- PresentationAppDomainManager.cs
- BitmapPalettes.cs
- DockProviderWrapper.cs
- MenuCommand.cs
- FontNameConverter.cs
- QueryExecutionOption.cs
- MessageBox.cs
- XmlHelper.cs
- ReceiveParametersContent.cs
- MulticastIPAddressInformationCollection.cs
- Crypto.cs
- XmlSchemaDocumentation.cs
- XmlExtensionFunction.cs
- ListenerAdapter.cs
- WebControlAdapter.cs
- WindowsListViewItemCheckBox.cs
- MonitoringDescriptionAttribute.cs
- SettingsAttributes.cs
- TypedAsyncResult.cs
- CommunicationException.cs
- SingleObjectCollection.cs
- ButtonStandardAdapter.cs
- PartialClassGenerationTaskInternal.cs
- CollectionViewSource.cs
- GridViewRowEventArgs.cs
- MatrixConverter.cs
- HandlerMappingMemo.cs
- SelfIssuedTokenFactoryCredential.cs
- Button.cs
- CaseCqlBlock.cs
- WebBrowserBase.cs
- CryptoApi.cs
- ObjectList.cs
- BinaryMethodMessage.cs
- ToolStripManager.cs
- ShaderEffect.cs
- XmlReflectionMember.cs
- MainMenu.cs
- RemotingServices.cs
- StringFormat.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- RtfToXamlLexer.cs
- QuaternionAnimationUsingKeyFrames.cs
- DispatchChannelSink.cs
- Msec.cs
- GetRecipientListRequest.cs
- ObjectReaderCompiler.cs
- ValidatorAttribute.cs
- ButtonAutomationPeer.cs
- ExpressionVisitor.cs
- FormsAuthenticationUser.cs
- QueryRewriter.cs
- updatecommandorderer.cs
- SectionInformation.cs
- AssemblyAssociatedContentFileAttribute.cs
- RemotingConfigParser.cs
- AQNBuilder.cs
- FullTextBreakpoint.cs
- ListViewItemSelectionChangedEvent.cs
- UIntPtr.cs
- CompressStream.cs
- _NtlmClient.cs
- AttributedMetaModel.cs
- MethodImplAttribute.cs
- ListViewGroup.cs
- TableItemStyle.cs
- RectangleF.cs
- PropertyGridView.cs
- DataGridViewAutoSizeModeEventArgs.cs
- RelationshipType.cs
- UnsafeNativeMethods.cs
- LayoutExceptionEventArgs.cs
- ErrorTableItemStyle.cs
- DefaultObjectMappingItemCollection.cs