Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- ExecutedRoutedEventArgs.cs
- NGCSerializer.cs
- SiteMapDataSource.cs
- AutomationEvent.cs
- UniqueSet.cs
- ListViewAutomationPeer.cs
- FrameworkObject.cs
- SoundPlayer.cs
- RijndaelManagedTransform.cs
- DataList.cs
- ExtendedPropertyDescriptor.cs
- UpDownBase.cs
- UrlUtility.cs
- ValueProviderWrapper.cs
- ModuleElement.cs
- FileLevelControlBuilderAttribute.cs
- ConnectionStringEditor.cs
- CharacterMetrics.cs
- IndexedGlyphRun.cs
- FilteredDataSetHelper.cs
- ResXBuildProvider.cs
- AuthenticationSection.cs
- ResolveNameEventArgs.cs
- MouseWheelEventArgs.cs
- CallbackHandler.cs
- SecurityStateEncoder.cs
- StrokeNodeEnumerator.cs
- TimelineGroup.cs
- MembershipValidatePasswordEventArgs.cs
- HwndStylusInputProvider.cs
- TokenDescriptor.cs
- SourceFileInfo.cs
- mactripleDES.cs
- EndOfStreamException.cs
- QuaternionAnimation.cs
- XsdBuildProvider.cs
- UnitySerializationHolder.cs
- DisposableCollectionWrapper.cs
- SerializationInfoEnumerator.cs
- PropertyValueChangedEvent.cs
- RequestCachingSection.cs
- TextSearch.cs
- MsmqIntegrationSecurity.cs
- DataChangedEventManager.cs
- NameValuePair.cs
- XmlSerializationWriter.cs
- controlskin.cs
- ItemsPresenter.cs
- XamlWriter.cs
- DataGridLinkButton.cs
- GraphicsPathIterator.cs
- Rotation3DAnimation.cs
- OdbcParameter.cs
- BaseDataListPage.cs
- PrivilegeNotHeldException.cs
- ObjectSerializerFactory.cs
- InternalBufferOverflowException.cs
- BamlReader.cs
- WorkflowViewStateService.cs
- HashLookup.cs
- DataPagerFieldCollection.cs
- SchemaCollectionPreprocessor.cs
- XPathDocumentIterator.cs
- SystemResourceHost.cs
- HttpConfigurationSystem.cs
- ActivityBindForm.Designer.cs
- MailAddressCollection.cs
- Update.cs
- DataBoundControlAdapter.cs
- DataContractSerializerSection.cs
- SetStateDesigner.cs
- ColumnCollectionEditor.cs
- BooleanStorage.cs
- sqlmetadatafactory.cs
- Faults.cs
- XmlTextEncoder.cs
- AxImporter.cs
- DesignTableCollection.cs
- ProtocolsConfigurationEntry.cs
- DelimitedListTraceListener.cs
- EntityDataSourceWrapper.cs
- ProxyWebPartConnectionCollection.cs
- PersonalizablePropertyEntry.cs
- DataComponentNameHandler.cs
- CommandID.cs
- InputScopeConverter.cs
- PlanCompilerUtil.cs
- StoreItemCollection.Loader.cs
- HtmlMeta.cs
- WebRequestModuleElementCollection.cs
- ISO2022Encoding.cs
- AttachInfo.cs
- PerformanceCounterManager.cs
- WmiEventSink.cs
- ToolStripDropDownClosingEventArgs.cs
- DependencyProperty.cs
- IPAddress.cs
- TrackingMemoryStreamFactory.cs
- SoapInteropTypes.cs
- UnhandledExceptionEventArgs.cs