Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- DotNetATv1WindowsLogEntryDeserializer.cs
- prefixendpointaddressmessagefilter.cs
- WebPartCatalogCloseVerb.cs
- XsdDuration.cs
- XmlEncoding.cs
- CompilationRelaxations.cs
- UnsafeCollabNativeMethods.cs
- VerticalAlignConverter.cs
- DataKeyArray.cs
- DefaultParameterValueAttribute.cs
- xdrvalidator.cs
- EntityContainerEntitySetDefiningQuery.cs
- TimeoutValidationAttribute.cs
- StylusSystemGestureEventArgs.cs
- RadioButtonStandardAdapter.cs
- XmlFormatExtensionAttribute.cs
- DataGridToolTip.cs
- AssociationEndMember.cs
- XmlSiteMapProvider.cs
- AlignmentXValidation.cs
- SecurityChannelFactory.cs
- XsltFunctions.cs
- EventMap.cs
- PeerObject.cs
- EndEvent.cs
- PasswordTextNavigator.cs
- Odbc32.cs
- PropertyIDSet.cs
- ListManagerBindingsCollection.cs
- SHA512Managed.cs
- Image.cs
- WebPartConnectionsEventArgs.cs
- RegexRunnerFactory.cs
- UnionExpr.cs
- TemplateColumn.cs
- Span.cs
- StateManagedCollection.cs
- CqlIdentifiers.cs
- SamlSecurityToken.cs
- PathParser.cs
- UnsafeNativeMethods.cs
- ShowExpandedMultiValueConverter.cs
- DbMetaDataCollectionNames.cs
- KeyConverter.cs
- OptimisticConcurrencyException.cs
- RectValueSerializer.cs
- XmlTextReaderImpl.cs
- NotifyParentPropertyAttribute.cs
- OleDbConnection.cs
- Mouse.cs
- StringDictionary.cs
- EdgeProfileValidation.cs
- ControlPropertyNameConverter.cs
- DataListDesigner.cs
- AliasedSlot.cs
- SmtpAuthenticationManager.cs
- ManagedWndProcTracker.cs
- XslAst.cs
- ConfigurationValidatorAttribute.cs
- TimerElapsedEvenArgs.cs
- CommandConverter.cs
- ThreadInterruptedException.cs
- EntityProviderServices.cs
- OutOfMemoryException.cs
- CapabilitiesPattern.cs
- MetadataItemSerializer.cs
- Wrapper.cs
- FieldBuilder.cs
- ProcessDesigner.cs
- ComponentManagerBroker.cs
- WebPermission.cs
- TypefaceMap.cs
- InternalBase.cs
- ConnectionManagementElement.cs
- EventLogInformation.cs
- SerializationSectionGroup.cs
- WorkflowView.cs
- Converter.cs
- TextEvent.cs
- SmtpNetworkElement.cs
- ServiceDiscoveryElement.cs
- ProfileInfo.cs
- StaticTextPointer.cs
- SafeUserTokenHandle.cs
- WebPartTransformerCollection.cs
- EventProxy.cs
- ReflectionHelper.cs
- HostingEnvironmentWrapper.cs
- Accessors.cs
- DiagnosticTraceRecords.cs
- SystemGatewayIPAddressInformation.cs
- MdiWindowListItemConverter.cs
- Journal.cs
- VirtualPath.cs
- BlurBitmapEffect.cs
- Variable.cs
- PermissionToken.cs
- SecurityMode.cs
- FormViewCommandEventArgs.cs
- Vector3DCollection.cs