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
- SQLSingle.cs
- BaseAsyncResult.cs
- Message.cs
- LogExtent.cs
- X509SecurityTokenProvider.cs
- AuthorizationSection.cs
- IgnoreSectionHandler.cs
- SevenBitStream.cs
- UnmanagedMarshal.cs
- Activator.cs
- JapaneseCalendar.cs
- CreateParams.cs
- ExpandCollapseProviderWrapper.cs
- CodeExporter.cs
- BindToObject.cs
- SqlDesignerDataSourceView.cs
- AsymmetricKeyExchangeDeformatter.cs
- Transform.cs
- DataGridViewColumnCollection.cs
- TranslateTransform3D.cs
- ElementAtQueryOperator.cs
- NativeObjectSecurity.cs
- CommandTreeTypeHelper.cs
- AppLevelCompilationSectionCache.cs
- TextRangeSerialization.cs
- CultureInfoConverter.cs
- ObjectDataSourceDesigner.cs
- ScrollBar.cs
- FontStyle.cs
- RefreshPropertiesAttribute.cs
- SafeViewOfFileHandle.cs
- CodePageEncoding.cs
- ProjectionRewriter.cs
- Viewport2DVisual3D.cs
- ExtendedPropertyCollection.cs
- ToolStripDropDownClosingEventArgs.cs
- ObjectItemAssemblyLoader.cs
- Point.cs
- ToolStripItemEventArgs.cs
- TypedTableBaseExtensions.cs
- HttpListenerResponse.cs
- JsonQueryStringConverter.cs
- RemoteWebConfigurationHost.cs
- ProcessHostConfigUtils.cs
- DynamicResourceExtensionConverter.cs
- ExecutedRoutedEventArgs.cs
- NoPersistProperty.cs
- ImportCatalogPart.cs
- ProcessHost.cs
- arabicshape.cs
- CollectionsUtil.cs
- MasterPageParser.cs
- ScriptDescriptor.cs
- StorageSetMapping.cs
- ListenUriMode.cs
- Identity.cs
- TdsParserHelperClasses.cs
- RouteItem.cs
- Logging.cs
- SQLByte.cs
- InvokePattern.cs
- ReachPageContentSerializer.cs
- HMACSHA384.cs
- Group.cs
- GridViewColumnHeaderAutomationPeer.cs
- XslTransform.cs
- TemplateBindingExpressionConverter.cs
- OptimizedTemplateContent.cs
- EncryptedPackageFilter.cs
- PackageFilter.cs
- ClientSettingsProvider.cs
- Transform.cs
- AccessViolationException.cs
- RowUpdatedEventArgs.cs
- HtmlHistory.cs
- ErrorLog.cs
- EventHandlerService.cs
- DoubleCollection.cs
- EventEntry.cs
- DataPagerCommandEventArgs.cs
- NotFiniteNumberException.cs
- RuleRef.cs
- AppDomainFactory.cs
- WebControl.cs
- EncryptedKey.cs
- Queue.cs
- EntityDataSourceDesignerHelper.cs
- KnownBoxes.cs
- ScriptBehaviorDescriptor.cs
- DesignerAttribute.cs
- FocusManager.cs
- ParagraphResult.cs
- HttpRuntimeSection.cs
- DPAPIProtectedConfigurationProvider.cs
- ManagementNamedValueCollection.cs
- RemoteWebConfigurationHostStream.cs
- XmlReflectionMember.cs
- PagerSettings.cs
- CompModSwitches.cs
- TemplateContainer.cs