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
- HtmlControlPersistable.cs
- Animatable.cs
- Pen.cs
- AssemblyNameEqualityComparer.cs
- TextEditorSelection.cs
- ResourceManager.cs
- ItemAutomationPeer.cs
- TraceShell.cs
- HyperLinkStyle.cs
- SpanIndex.cs
- TextServicesProperty.cs
- SelfSignedCertificate.cs
- TransactionTable.cs
- TaiwanLunisolarCalendar.cs
- RequestCachePolicy.cs
- ReliabilityContractAttribute.cs
- MetadataPropertyvalue.cs
- XmlSchemaNotation.cs
- ControlDesigner.cs
- FlowDecisionDesigner.xaml.cs
- PageThemeBuildProvider.cs
- FormViewModeEventArgs.cs
- ExpressionWriter.cs
- RequestBringIntoViewEventArgs.cs
- FileLogRecordEnumerator.cs
- InkCanvasSelectionAdorner.cs
- TypeUtil.cs
- DbConnectionOptions.cs
- FormatException.cs
- LogEntryUtils.cs
- PolygonHotSpot.cs
- InputEventArgs.cs
- DrawToolTipEventArgs.cs
- TextEditorContextMenu.cs
- TypeDelegator.cs
- PlainXmlDeserializer.cs
- DocumentPageHost.cs
- XmlSerializableWriter.cs
- MethodImplAttribute.cs
- ContextMarshalException.cs
- SmtpReplyReader.cs
- ScriptReferenceEventArgs.cs
- SqlRowUpdatingEvent.cs
- OLEDB_Util.cs
- TagPrefixCollection.cs
- DataBoundLiteralControl.cs
- ObjectParameterCollection.cs
- NameValueSectionHandler.cs
- InputBinder.cs
- QilIterator.cs
- PersistStreamTypeWrapper.cs
- BinaryWriter.cs
- MessageDecoder.cs
- DataGridViewDataConnection.cs
- SecurityTokenProvider.cs
- Substitution.cs
- ListSortDescription.cs
- SizeAnimationBase.cs
- Vector.cs
- ContextBase.cs
- AvTraceFormat.cs
- EntityDataSourceContextDisposingEventArgs.cs
- WMIGenerator.cs
- DataGridColumnCollectionEditor.cs
- ObjectAnimationBase.cs
- ArgumentOutOfRangeException.cs
- XmlDictionaryWriter.cs
- ListDataBindEventArgs.cs
- SQLString.cs
- DbConnectionPoolCounters.cs
- RuntimeTrackingProfile.cs
- PartialList.cs
- SessionParameter.cs
- TextTreeRootTextBlock.cs
- SimpleRecyclingCache.cs
- FrameworkPropertyMetadata.cs
- DebuggerService.cs
- DesignerValidatorAdapter.cs
- PenLineCapValidation.cs
- ActivityMarkupSerializationProvider.cs
- NameNode.cs
- DesignBinding.cs
- TraceProvider.cs
- DockPanel.cs
- BaseAddressElementCollection.cs
- SqlFacetAttribute.cs
- CalendarButtonAutomationPeer.cs
- AnimatedTypeHelpers.cs
- TreeViewItem.cs
- UICuesEvent.cs
- RoleManagerEventArgs.cs
- CodeGen.cs
- SignatureToken.cs
- Compiler.cs
- SystemIcmpV6Statistics.cs
- TextAutomationPeer.cs
- ContextProperty.cs
- CssTextWriter.cs
- SerialStream.cs
- DecoratedNameAttribute.cs