Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- Vector3DAnimationBase.cs
- PrePrepareMethodAttribute.cs
- ObjectDataSourceEventArgs.cs
- BufferedGraphicsContext.cs
- SecurityDescriptor.cs
- TdsParserSafeHandles.cs
- HttpServerVarsCollection.cs
- ModifiableIteratorCollection.cs
- hebrewshape.cs
- JoinElimination.cs
- grammarelement.cs
- LineSegment.cs
- Assert.cs
- NativeMethods.cs
- SynthesizerStateChangedEventArgs.cs
- ZipFileInfoCollection.cs
- LoginCancelEventArgs.cs
- DataGridViewRowPrePaintEventArgs.cs
- PathSegment.cs
- Light.cs
- TreeNodeBindingCollection.cs
- X509Certificate.cs
- FacetDescription.cs
- XomlSerializationHelpers.cs
- RelationshipNavigation.cs
- DeviceContext.cs
- ConvertBinder.cs
- TableAutomationPeer.cs
- PackagePartCollection.cs
- GacUtil.cs
- IPipelineRuntime.cs
- GeometryModel3D.cs
- BitmapEffectRenderDataResource.cs
- FormCollection.cs
- IndependentlyAnimatedPropertyMetadata.cs
- DataBindingHandlerAttribute.cs
- WebPartConnection.cs
- PairComparer.cs
- ModelPropertyImpl.cs
- XmlnsPrefixAttribute.cs
- TransferMode.cs
- URL.cs
- PriorityBindingExpression.cs
- FlowSwitch.cs
- QueryBranchOp.cs
- DataGridViewCellPaintingEventArgs.cs
- DataExpression.cs
- DnsPermission.cs
- ServiceEndpoint.cs
- Tuple.cs
- UnsafeNativeMethods.cs
- NominalTypeEliminator.cs
- LambdaCompiler.Unary.cs
- ImmComposition.cs
- EmulateRecognizeCompletedEventArgs.cs
- TransformCollection.cs
- CheckBoxDesigner.cs
- ByteConverter.cs
- PropertyGrid.cs
- EventRouteFactory.cs
- CodeMemberField.cs
- OracleParameter.cs
- UIElementAutomationPeer.cs
- DataGridViewDesigner.cs
- DataSourceControl.cs
- connectionpool.cs
- Descriptor.cs
- DocumentApplicationState.cs
- DragStartedEventArgs.cs
- CommentEmitter.cs
- RegexRunnerFactory.cs
- PageVisual.cs
- DBNull.cs
- StringConcat.cs
- TemplatedMailWebEventProvider.cs
- WindowsFormsHost.cs
- SqlTrackingService.cs
- AddInSegmentDirectoryNotFoundException.cs
- SpnegoTokenProvider.cs
- ServiceContractListItem.cs
- SqlWriter.cs
- BindUriHelper.cs
- AutomationPatternInfo.cs
- UnauthorizedAccessException.cs
- controlskin.cs
- Root.cs
- DataBoundLiteralControl.cs
- TextServicesDisplayAttributePropertyRanges.cs
- CommonRemoteMemoryBlock.cs
- SHA256.cs
- WorkflowInstance.cs
- clipboard.cs
- SqlCacheDependencyDatabase.cs
- Misc.cs
- ValidatedControlConverter.cs
- PowerModeChangedEventArgs.cs
- DispatcherHooks.cs
- PropertyChangedEventArgs.cs
- ZoomPercentageConverter.cs
- TableLayoutSettingsTypeConverter.cs