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
- AssemblyBuilder.cs
- GroupDescription.cs
- ConcurrentStack.cs
- TdsParserSafeHandles.cs
- SlotInfo.cs
- AssemblyInfo.cs
- InternalConfigConfigurationFactory.cs
- ProjectionCamera.cs
- storepermissionattribute.cs
- Decoder.cs
- GlyphRunDrawing.cs
- IndependentAnimationStorage.cs
- WorkflowPrinting.cs
- XmlEncApr2001.cs
- HttpInputStream.cs
- Setter.cs
- TdsParserHelperClasses.cs
- LinqDataSourceValidationException.cs
- TypefaceCollection.cs
- HandlerBase.cs
- WeakKeyDictionary.cs
- ComponentResourceKey.cs
- BlurBitmapEffect.cs
- QuestionEventArgs.cs
- TextBlockAutomationPeer.cs
- OleDbTransaction.cs
- ReadOnlyMetadataCollection.cs
- WindowsUpDown.cs
- SqlCacheDependencyDatabaseCollection.cs
- QilXmlReader.cs
- DiscoveryRequestHandler.cs
- BinaryMessageEncodingElement.cs
- MonthChangedEventArgs.cs
- SelectionProcessor.cs
- TreeNodeEventArgs.cs
- DataServiceEntityAttribute.cs
- Table.cs
- HttpPostedFile.cs
- ControlBuilderAttribute.cs
- MenuBase.cs
- DataGridCommandEventArgs.cs
- PageCatalogPart.cs
- Win32PrintDialog.cs
- AppDomainProtocolHandler.cs
- CategoryAttribute.cs
- ZipPackage.cs
- DataGrid.cs
- ConfigPathUtility.cs
- WebServiceMethodData.cs
- SafeCoTaskMem.cs
- AssemblyHash.cs
- MaterializeFromAtom.cs
- InkCanvasFeedbackAdorner.cs
- AssertFilter.cs
- MultilineStringConverter.cs
- DESCryptoServiceProvider.cs
- RepeatBehavior.cs
- HashRepartitionEnumerator.cs
- XhtmlBasicTextViewAdapter.cs
- OutOfMemoryException.cs
- SubqueryRules.cs
- MutexSecurity.cs
- ActivationProxy.cs
- DeviceSpecific.cs
- Ops.cs
- ApplicationServicesHostFactory.cs
- DynamicRendererThreadManager.cs
- RealProxy.cs
- PersonalizationProviderHelper.cs
- DbTransaction.cs
- UpdateRecord.cs
- FontDifferentiator.cs
- Animatable.cs
- _NegoState.cs
- CellConstantDomain.cs
- FormatSettings.cs
- AudienceUriMode.cs
- HwndHostAutomationPeer.cs
- CachingParameterInspector.cs
- FlowSwitch.cs
- SecureEnvironment.cs
- PasswordTextContainer.cs
- Exception.cs
- PrintController.cs
- Trace.cs
- AlignmentYValidation.cs
- EntityDesignerDataSourceView.cs
- XmlSchemaSimpleContentRestriction.cs
- XmlBoundElement.cs
- DataGridTable.cs
- FileReader.cs
- WindowsListViewGroup.cs
- Helper.cs
- Journal.cs
- Utils.cs
- Module.cs
- _AutoWebProxyScriptHelper.cs
- StaticResourceExtension.cs
- PageRequestManager.cs
- BrowsableAttribute.cs