Code:
/ DotNET / DotNET / 8.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
- VisualProxy.cs
- RC2CryptoServiceProvider.cs
- RuntimeConfigLKG.cs
- TextSerializer.cs
- SqlEnums.cs
- DataGridColumnEventArgs.cs
- DeobfuscatingStream.cs
- FontFaceLayoutInfo.cs
- ScriptingJsonSerializationSection.cs
- FileRecordSequenceHelper.cs
- Menu.cs
- ListViewSelectEventArgs.cs
- WriteFileContext.cs
- EventWaitHandle.cs
- AttachedPropertyBrowsableAttribute.cs
- SrgsRulesCollection.cs
- GiveFeedbackEvent.cs
- NotSupportedException.cs
- InProcStateClientManager.cs
- BaseHashHelper.cs
- DesigntimeLicenseContext.cs
- WebPartManagerInternals.cs
- __FastResourceComparer.cs
- OdbcErrorCollection.cs
- GroupStyle.cs
- GrammarBuilderDictation.cs
- XDeferredAxisSource.cs
- InvalidPrinterException.cs
- SBCSCodePageEncoding.cs
- Vector3DCollection.cs
- MeshGeometry3D.cs
- DocumentViewerBase.cs
- SafeCryptoHandles.cs
- DockPatternIdentifiers.cs
- EntityWrapperFactory.cs
- DataSourceXmlAttributeAttribute.cs
- ApplicationInfo.cs
- SimpleTextLine.cs
- SimpleColumnProvider.cs
- TreeView.cs
- Vector.cs
- SurrogateChar.cs
- FirstMatchCodeGroup.cs
- TagPrefixCollection.cs
- OleDbTransaction.cs
- DockingAttribute.cs
- LinqDataSourceUpdateEventArgs.cs
- RuntimeIdentifierPropertyAttribute.cs
- XmlSchemaExporter.cs
- ControlDesignerState.cs
- UInt32Storage.cs
- ThaiBuddhistCalendar.cs
- RoleBoolean.cs
- Currency.cs
- ConstantSlot.cs
- ToolStripRenderer.cs
- EdmSchemaAttribute.cs
- RegexWorker.cs
- BamlTreeUpdater.cs
- SizeAnimationBase.cs
- ExceptionList.cs
- InfiniteIntConverter.cs
- DataGridCaption.cs
- SecureUICommand.cs
- WindowsTab.cs
- NamespaceList.cs
- ClientRolePrincipal.cs
- DeploymentSection.cs
- HttpListenerException.cs
- StickyNoteAnnotations.cs
- TranslateTransform3D.cs
- WebPartConnectionsDisconnectVerb.cs
- MailHeaderInfo.cs
- UserCancellationException.cs
- SqlTriggerContext.cs
- Parsers.cs
- followingsibling.cs
- GatewayDefinition.cs
- TextElement.cs
- ServicesUtilities.cs
- UnmanagedHandle.cs
- GlobalEventManager.cs
- AuthenticationConfig.cs
- SchemaCollectionCompiler.cs
- MetadataWorkspace.cs
- BasicExpandProvider.cs
- AsyncContentLoadedEventArgs.cs
- ConfigurationProperty.cs
- SystemIPAddressInformation.cs
- SpellerStatusTable.cs
- SqlConnectionStringBuilder.cs
- PropertyCollection.cs
- smtpconnection.cs
- DefaultAsyncDataDispatcher.cs
- HtmlInputText.cs
- TreeView.cs
- EncodingInfo.cs
- MemberNameValidator.cs
- DateTime.cs
- StateMachineWorkflowDesigner.cs