Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Data / System / NewXml / BaseTreeIterator.cs / 1305376 / BaseTreeIterator.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //[....] //----------------------------------------------------------------------------- namespace System.Xml { // 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 { // 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
- DataRecordInternal.cs
- CacheMemory.cs
- HttpClientProtocol.cs
- WindowsIdentity.cs
- ExpressionBuilder.cs
- DefaultTextStore.cs
- SafeNativeMethods.cs
- UrlPropertyAttribute.cs
- TitleStyle.cs
- ResourceManager.cs
- Attribute.cs
- WebDisplayNameAttribute.cs
- DataSet.cs
- TempFiles.cs
- EllipseGeometry.cs
- NumericUpDownAccelerationCollection.cs
- ProcessRequestArgs.cs
- MetadataSource.cs
- BaseCAMarshaler.cs
- MergeLocalizationDirectives.cs
- ViewCellSlot.cs
- TimelineClockCollection.cs
- _ContextAwareResult.cs
- HostDesigntimeLicenseContext.cs
- EpmContentDeSerializer.cs
- XsltException.cs
- XmlC14NWriter.cs
- Color.cs
- AttributeTable.cs
- GridEntry.cs
- MailSettingsSection.cs
- RecordsAffectedEventArgs.cs
- DataControlFieldCollection.cs
- TextParagraphCache.cs
- NetworkInformationException.cs
- PrintControllerWithStatusDialog.cs
- DropShadowBitmapEffect.cs
- DataGridCellEditEndingEventArgs.cs
- SecurityVerifiedMessage.cs
- FontUnitConverter.cs
- DbConnectionPoolIdentity.cs
- WindowInteropHelper.cs
- PeerTransportCredentialType.cs
- OperationInvokerTrace.cs
- FreezableDefaultValueFactory.cs
- DynamicResourceExtensionConverter.cs
- SafeRegistryHandle.cs
- LinqDataSourceValidationException.cs
- ConnectorSelectionGlyph.cs
- CollectionConverter.cs
- DataMemberConverter.cs
- ParameterBuilder.cs
- BeginEvent.cs
- VSWCFServiceContractGenerator.cs
- SmtpNetworkElement.cs
- SpellerInterop.cs
- SerializationException.cs
- DataPagerFieldCollection.cs
- WebPartDisplayModeCollection.cs
- Positioning.cs
- FixedSOMTable.cs
- NameValuePermission.cs
- Pointer.cs
- EntityException.cs
- ETagAttribute.cs
- AsymmetricAlgorithm.cs
- QueryCacheManager.cs
- SqlFunctionAttribute.cs
- templategroup.cs
- SupportsEventValidationAttribute.cs
- SoapReflectionImporter.cs
- DelayLoadType.cs
- ProvidersHelper.cs
- StatusBarDrawItemEvent.cs
- ThaiBuddhistCalendar.cs
- PeerChannelFactory.cs
- GeneratedView.cs
- URL.cs
- Helpers.cs
- FrameworkRichTextComposition.cs
- QuaternionIndependentAnimationStorage.cs
- NonParentingControl.cs
- tibetanshape.cs
- EntityDataSourceColumn.cs
- SqlUtils.cs
- SqlCacheDependencyDatabase.cs
- ToolStripPanel.cs
- CustomValidator.cs
- DataMisalignedException.cs
- EmptyStringExpandableObjectConverter.cs
- FlowDocumentView.cs
- StylusEventArgs.cs
- ParserStreamGeometryContext.cs
- Decimal.cs
- BeginEvent.cs
- CompilerError.cs
- bindurihelper.cs
- SpeechSeg.cs
- RadioButton.cs
- GridViewColumnHeaderAutomationPeer.cs