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
- HttpCacheVaryByContentEncodings.cs
- XmlBinaryReader.cs
- UntrustedRecipientException.cs
- ListViewAutomationPeer.cs
- MatrixTransform.cs
- ScrollEventArgs.cs
- HealthMonitoringSectionHelper.cs
- NavigatorInput.cs
- ChtmlPageAdapter.cs
- CheckBox.cs
- NameValueCollection.cs
- SendParametersContent.cs
- SubpageParagraph.cs
- BitmapImage.cs
- XmlQueryContext.cs
- WindowProviderWrapper.cs
- PersonalizationStateInfo.cs
- InputGestureCollection.cs
- PageContentAsyncResult.cs
- ChangeBlockUndoRecord.cs
- SortableBindingList.cs
- Classification.cs
- OpenTypeLayoutCache.cs
- Interop.cs
- FloatAverageAggregationOperator.cs
- MouseButton.cs
- ManualResetEvent.cs
- RenderingEventArgs.cs
- CryptoApi.cs
- FormatException.cs
- SchemaTypeEmitter.cs
- PageContentCollection.cs
- WebPartMenu.cs
- HotSpotCollection.cs
- DataGridViewCellParsingEventArgs.cs
- ByteStream.cs
- SharedConnectionInfo.cs
- PathTooLongException.cs
- HostVisual.cs
- HeaderedContentControl.cs
- EventLogTraceListener.cs
- ResXFileRef.cs
- PageThemeBuildProvider.cs
- AttachedAnnotation.cs
- PlatformNotSupportedException.cs
- httpstaticobjectscollection.cs
- NavigationPropertyAccessor.cs
- SequenceFullException.cs
- CultureInfoConverter.cs
- CacheDependency.cs
- Point3DAnimationUsingKeyFrames.cs
- ItemsControl.cs
- PkcsMisc.cs
- ToolStripOverflow.cs
- BindingExpressionUncommonField.cs
- MarkupCompiler.cs
- TCPClient.cs
- ConstraintCollection.cs
- DataStorage.cs
- MainMenu.cs
- ValidationResult.cs
- FillErrorEventArgs.cs
- OptimizerPatterns.cs
- BindingNavigatorDesigner.cs
- WorkflowMarkupSerializer.cs
- LicenseException.cs
- AppDomain.cs
- NaturalLanguageHyphenator.cs
- RedirectionProxy.cs
- XmlSerializerSection.cs
- ListBindingConverter.cs
- StringToken.cs
- storepermission.cs
- KeyManager.cs
- NumericUpDownAccelerationCollection.cs
- DodSequenceMerge.cs
- WorkflowInstanceExtensionProvider.cs
- DateTimeConverter.cs
- LessThan.cs
- NamespaceListProperty.cs
- AppSettingsReader.cs
- DataContractSerializerFaultFormatter.cs
- WindowsGraphics.cs
- EndpointBehaviorElement.cs
- WSFederationHttpBinding.cs
- NetPeerTcpBinding.cs
- PipelineComponent.cs
- GetResponse.cs
- ProviderMetadata.cs
- Base64Encoder.cs
- ConfigurationValidatorAttribute.cs
- Translator.cs
- HwndSourceKeyboardInputSite.cs
- DynamicActionMessageFilter.cs
- ASCIIEncoding.cs
- AuthenticationConfig.cs
- CheckedPointers.cs
- XPathMessageContext.cs
- SetterBase.cs
- SqlNotificationRequest.cs