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
- AttributeCollection.cs
- PersonalizationEntry.cs
- CollectionChangedEventManager.cs
- DataViewListener.cs
- DataBindingCollection.cs
- DataKeyCollection.cs
- HMACMD5.cs
- Util.cs
- XmlSchemaAppInfo.cs
- DesignSurfaceServiceContainer.cs
- RayMeshGeometry3DHitTestResult.cs
- DBCSCodePageEncoding.cs
- IDReferencePropertyAttribute.cs
- SupportingTokenChannel.cs
- ListControl.cs
- SchemaManager.cs
- FrameworkElementFactory.cs
- XmlArrayAttribute.cs
- CookielessHelper.cs
- Emitter.cs
- BitHelper.cs
- ReferenceAssemblyAttribute.cs
- DetailsViewDeleteEventArgs.cs
- SqlDataRecord.cs
- HwndKeyboardInputProvider.cs
- SqlPersonalizationProvider.cs
- GlobalAllocSafeHandle.cs
- FilteredDataSetHelper.cs
- CompiledIdentityConstraint.cs
- XmlComplianceUtil.cs
- ErrorHandler.cs
- UnauthorizedAccessException.cs
- StackBuilderSink.cs
- SessionStateItemCollection.cs
- CreateParams.cs
- FixedLineResult.cs
- SevenBitStream.cs
- ViewLoader.cs
- RegexWorker.cs
- LinkedList.cs
- SimplePropertyEntry.cs
- TextDecoration.cs
- StringHandle.cs
- CompilerResults.cs
- RayHitTestParameters.cs
- CellCreator.cs
- BindMarkupExtensionSerializer.cs
- EventHandlerList.cs
- ButtonField.cs
- ElementsClipboardData.cs
- EncodingTable.cs
- ExceptionHandlers.cs
- CodeVariableDeclarationStatement.cs
- DependencyObjectPropertyDescriptor.cs
- WebScriptServiceHost.cs
- StringReader.cs
- DataGridTable.cs
- ProcessProtocolHandler.cs
- ViewManager.cs
- BevelBitmapEffect.cs
- PartitionResolver.cs
- Int32CollectionConverter.cs
- DataObjectEventArgs.cs
- ToolZone.cs
- ToolStripScrollButton.cs
- PrefixQName.cs
- TableParaClient.cs
- AppDomainGrammarProxy.cs
- XmlNodeChangedEventArgs.cs
- FixUpCollection.cs
- ElementNotEnabledException.cs
- Nullable.cs
- SecurityProtocol.cs
- RuntimeHelpers.cs
- OptimalTextSource.cs
- GeneralTransform3DTo2DTo3D.cs
- SecurityChannelFactory.cs
- ArgumentValue.cs
- OptionUsage.cs
- Light.cs
- DataFieldConverter.cs
- TrustManagerPromptUI.cs
- DataControlButton.cs
- DriveInfo.cs
- BufferBuilder.cs
- activationcontext.cs
- NumberFormatter.cs
- ApplicationGesture.cs
- BitmapSizeOptions.cs
- ContentPresenter.cs
- XmlUtil.cs
- UInt64Storage.cs
- _TimerThread.cs
- RawStylusInputReport.cs
- SourceSwitch.cs
- UTF32Encoding.cs
- DataServiceEntityAttribute.cs
- MsmqProcessProtocolHandler.cs
- ResourceBinder.cs
- PolygonHotSpot.cs