Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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. // //[....] //----------------------------------------------------------------------------- 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- UITypeEditors.cs
- EventEntry.cs
- ServiceConfigurationTraceRecord.cs
- CodeConditionStatement.cs
- CodeLabeledStatement.cs
- ToolTip.cs
- ClientReliableChannelBinder.cs
- DetailsViewDeleteEventArgs.cs
- SoundPlayer.cs
- CodePrimitiveExpression.cs
- EllipseGeometry.cs
- ToolBarButton.cs
- SqlHelper.cs
- unsafeIndexingFilterStream.cs
- CircleHotSpot.cs
- InlinedAggregationOperatorEnumerator.cs
- NaturalLanguageHyphenator.cs
- ProgressBarHighlightConverter.cs
- DelayedRegex.cs
- SubordinateTransaction.cs
- ISessionStateStore.cs
- Emitter.cs
- StringInfo.cs
- Vertex.cs
- ProtocolElement.cs
- FormatConvertedBitmap.cs
- StylusEventArgs.cs
- AuthenticateEventArgs.cs
- TraceRecord.cs
- UrlMapping.cs
- TargetInvocationException.cs
- XmlSchemaSimpleTypeList.cs
- PolyBezierSegment.cs
- CharEnumerator.cs
- TreeViewImageKeyConverter.cs
- IsolatedStorageSecurityState.cs
- FontUnitConverter.cs
- HostingEnvironmentSection.cs
- AccessViolationException.cs
- ChangeBlockUndoRecord.cs
- SoapHeaders.cs
- Encoding.cs
- TimeIntervalCollection.cs
- UnhandledExceptionEventArgs.cs
- FloaterParagraph.cs
- VariableValue.cs
- DataControlImageButton.cs
- IntSecurity.cs
- ReceiveMessageContent.cs
- PixelFormats.cs
- PermissionRequestEvidence.cs
- SecUtil.cs
- WebPartVerbsEventArgs.cs
- DataRecordObjectView.cs
- SynchronizedMessageSource.cs
- BindingNavigator.cs
- EndOfStreamException.cs
- ServicesUtilities.cs
- DisableDpiAwarenessAttribute.cs
- Fx.cs
- HwndStylusInputProvider.cs
- ExpressionNode.cs
- DataSourceDesigner.cs
- ContentElementAutomationPeer.cs
- ChangePassword.cs
- WebPartUserCapability.cs
- HMACSHA512.cs
- objectquery_tresulttype.cs
- SpecularMaterial.cs
- FieldBuilder.cs
- OleDbParameterCollection.cs
- StateMachineDesignerPaint.cs
- NamespaceCollection.cs
- DateTimePicker.cs
- CryptoHelper.cs
- SettingsAttributeDictionary.cs
- DispatcherOperation.cs
- FormViewModeEventArgs.cs
- RecordBuilder.cs
- StringUtil.cs
- ToolStripItemDataObject.cs
- SapiInterop.cs
- Geometry.cs
- CompilerCollection.cs
- Comparer.cs
- ConditionalWeakTable.cs
- RuleSettings.cs
- ObfuscateAssemblyAttribute.cs
- ButtonBaseAutomationPeer.cs
- VectorCollection.cs
- JsonFormatReaderGenerator.cs
- InteropBitmapSource.cs
- BamlLocalizabilityResolver.cs
- reliableinputsessionchannel.cs
- ZipIOFileItemStream.cs
- Messages.cs
- VirtualPathProvider.cs
- DeleteCardRequest.cs
- XmlSchemaObject.cs
- HttpException.cs