Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / Xml / System / Xml / Dom / XmlLinkedNode.cs / 1 / XmlLinkedNode.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- namespace System.Xml { // Gets the node immediately preceeding or following this node. public abstract class XmlLinkedNode: XmlNode { internal XmlLinkedNode next; internal XmlLinkedNode(): base() { next = null; } internal XmlLinkedNode( XmlDocument doc ): base( doc ) { next = null; } // Gets the node immediately preceding this node. public override XmlNode PreviousSibling { get { XmlNode parent = ParentNode; if (parent != null) { XmlNode node = parent.FirstChild; while (node != null) { XmlNode nextSibling = node.NextSibling; if (nextSibling == this) { break; } node = nextSibling; } return node; } return null; } } // Gets the node immediately following this node. public override XmlNode NextSibling { get { XmlNode parent = ParentNode; if (parent != null) { if (next != parent.FirstChild) return next; } return null; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WorkflowViewElement.cs
- BooleanExpr.cs
- SchemaElementDecl.cs
- ProxyFragment.cs
- _ProxyChain.cs
- CommandManager.cs
- StringArrayConverter.cs
- SafeSecurityHelper.cs
- ColorEditor.cs
- SafeTimerHandle.cs
- DataBindingHandlerAttribute.cs
- DBSqlParserColumnCollection.cs
- TreeNodeBindingCollection.cs
- UserControl.cs
- EntityViewGenerator.cs
- TransportChannelListener.cs
- BitmapMetadataEnumerator.cs
- RefreshInfo.cs
- ToolStripLocationCancelEventArgs.cs
- ParserStreamGeometryContext.cs
- EditorAttribute.cs
- TableItemStyle.cs
- HandleTable.cs
- SiblingIterators.cs
- DuplicateWaitObjectException.cs
- SelectionWordBreaker.cs
- CustomWebEventKey.cs
- WS2007FederationHttpBindingCollectionElement.cs
- SortedSetDebugView.cs
- TextBlockAutomationPeer.cs
- ServiceErrorHandler.cs
- SessionEndingEventArgs.cs
- Int64.cs
- DurableEnlistmentState.cs
- TransformedBitmap.cs
- HttpListenerResponse.cs
- TypeUnloadedException.cs
- PropertyValueChangedEvent.cs
- ReturnEventArgs.cs
- SchemaElementDecl.cs
- ToolStripTextBox.cs
- EntityCollectionChangedParams.cs
- SelectionRangeConverter.cs
- ExpressionTextBox.xaml.cs
- OdbcEnvironmentHandle.cs
- LineMetrics.cs
- ReservationNotFoundException.cs
- Condition.cs
- Dynamic.cs
- RequestResizeEvent.cs
- TypeElement.cs
- ScrollBarRenderer.cs
- UIElement.cs
- LocationSectionRecord.cs
- ScriptModule.cs
- SamlSubjectStatement.cs
- ControlCollection.cs
- AsnEncodedData.cs
- LogAppendAsyncResult.cs
- MimeTypeAttribute.cs
- SspiHelper.cs
- CodeGroup.cs
- CellParagraph.cs
- InstanceData.cs
- InProcStateClientManager.cs
- PaginationProgressEventArgs.cs
- DataBoundControlHelper.cs
- Renderer.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- _KerberosClient.cs
- Component.cs
- ColorAnimation.cs
- Int32KeyFrameCollection.cs
- XmlHierarchicalDataSourceView.cs
- ObjectAssociationEndMapping.cs
- ImmutablePropertyDescriptorGridEntry.cs
- EndpointFilterProvider.cs
- SQLDoubleStorage.cs
- MatrixCamera.cs
- StreamingContext.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- ColumnHeader.cs
- TypeInitializationException.cs
- SchemaTypeEmitter.cs
- securitycriticaldataformultiplegetandset.cs
- CodeTypeReference.cs
- DefaultPropertyAttribute.cs
- DBSqlParserColumn.cs
- XmlSerializerFactory.cs
- WhitespaceRule.cs
- MSAAWinEventWrap.cs
- PrefixHandle.cs
- OdbcCommand.cs
- ServerIdentity.cs
- GcSettings.cs
- StreamInfo.cs
- CacheVirtualItemsEvent.cs
- BulletChrome.cs
- AuthenticatedStream.cs
- Lazy.cs