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
- EventPrivateKey.cs
- HttpListenerTimeoutManager.cs
- QuaternionValueSerializer.cs
- StreamGeometry.cs
- EventWaitHandle.cs
- DefaultAuthorizationContext.cs
- DecryptRequest.cs
- XmlElementAttribute.cs
- CalendarDay.cs
- ManagedFilter.cs
- WindowsFormsSynchronizationContext.cs
- ExpandoObject.cs
- XmlAttributeHolder.cs
- XhtmlBasicPanelAdapter.cs
- WebPartCollection.cs
- RelatedImageListAttribute.cs
- UInt32Converter.cs
- StatusStrip.cs
- UrlRoutingHandler.cs
- DemultiplexingClientMessageFormatter.cs
- WSHttpBindingCollectionElement.cs
- BinaryObjectReader.cs
- FormClosedEvent.cs
- UnsafeNativeMethods.cs
- WorkflowViewService.cs
- ConfigurationPermission.cs
- SubqueryTrackingVisitor.cs
- XmlDocumentFragment.cs
- ObjectItemAttributeAssemblyLoader.cs
- Int32.cs
- StorageMappingItemLoader.cs
- EventData.cs
- CodeIndexerExpression.cs
- CharacterMetrics.cs
- XmlNamespaceManager.cs
- Ref.cs
- RowCache.cs
- XmlBoundElement.cs
- ParameterExpression.cs
- HtmlTernaryTree.cs
- TypeSystem.cs
- MultiBindingExpression.cs
- SystemUdpStatistics.cs
- LateBoundBitmapDecoder.cs
- WebSysDisplayNameAttribute.cs
- Stopwatch.cs
- IisTraceWebEventProvider.cs
- DataServiceContext.cs
- CellQuery.cs
- DnsElement.cs
- localization.cs
- PageWrapper.cs
- SignatureGenerator.cs
- StringOutput.cs
- TransformerInfo.cs
- LexicalChunk.cs
- Boolean.cs
- Page.cs
- TryCatch.cs
- ResourceReferenceKeyNotFoundException.cs
- PropertyTabChangedEvent.cs
- SqlUserDefinedTypeAttribute.cs
- ISFTagAndGuidCache.cs
- FunctionQuery.cs
- DataGridViewColumnConverter.cs
- PhysicalFontFamily.cs
- ControlPaint.cs
- Dictionary.cs
- FastEncoder.cs
- UInt64.cs
- PhoneCallDesigner.cs
- Vertex.cs
- WebServiceData.cs
- FontWeights.cs
- SystemIPInterfaceStatistics.cs
- Int32Animation.cs
- TextSchema.cs
- XPathDocument.cs
- Label.cs
- Identity.cs
- RowBinding.cs
- EmissiveMaterial.cs
- StsCommunicationException.cs
- UpdateDelegates.Generated.cs
- XPathScanner.cs
- RotateTransform3D.cs
- DataTrigger.cs
- ResourceIDHelper.cs
- WorkflowInstanceExtensionCollection.cs
- SqlCommandBuilder.cs
- MultiTouchSystemGestureLogic.cs
- MultipartContentParser.cs
- CqlLexer.cs
- DataSourceCacheDurationConverter.cs
- SendKeys.cs
- BitmapMetadataEnumerator.cs
- _IPv4Address.cs
- ApplyImportsAction.cs
- NodeInfo.cs