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
- CursorConverter.cs
- BaseResourcesBuildProvider.cs
- ValueTypeFixupInfo.cs
- ObjectAssociationEndMapping.cs
- UmAlQuraCalendar.cs
- ProcessHostServerConfig.cs
- WebPartCollection.cs
- MouseButton.cs
- Guid.cs
- TextTreeUndoUnit.cs
- PackWebRequest.cs
- CustomCredentialPolicy.cs
- BufferedGraphicsContext.cs
- StringInfo.cs
- UpdateTranslator.cs
- InvokePattern.cs
- FactoryGenerator.cs
- RawStylusInputCustomData.cs
- ContractsBCL.cs
- SqlDataSourceEnumerator.cs
- ProfessionalColorTable.cs
- CompilerResults.cs
- DataBoundControlAdapter.cs
- ActivationArguments.cs
- GridViewRowPresenter.cs
- Roles.cs
- TiffBitmapEncoder.cs
- TreeChangeInfo.cs
- WebRequest.cs
- ParameterCollection.cs
- ICspAsymmetricAlgorithm.cs
- Timer.cs
- TextBoxAutoCompleteSourceConverter.cs
- EventMappingSettingsCollection.cs
- FontTypeConverter.cs
- PropertyValueUIItem.cs
- Comparer.cs
- DefaultSettingsSection.cs
- HwndStylusInputProvider.cs
- StateDesignerConnector.cs
- FolderBrowserDialog.cs
- PenContexts.cs
- EntityContainerEmitter.cs
- MetaData.cs
- SettingsBindableAttribute.cs
- Misc.cs
- SimpleWorkerRequest.cs
- SecurityManager.cs
- TextTreeFixupNode.cs
- AttributeCollection.cs
- WpfGeneratedKnownProperties.cs
- OrthographicCamera.cs
- ImportContext.cs
- DockingAttribute.cs
- StaticFileHandler.cs
- XmlReader.cs
- TextElementCollectionHelper.cs
- Accessible.cs
- SourceLineInfo.cs
- XmlSerializerFactory.cs
- TextLineResult.cs
- MeasurementDCInfo.cs
- BitmapVisualManager.cs
- DataGridBoolColumn.cs
- XPathDescendantIterator.cs
- FileRecordSequenceCompletedAsyncResult.cs
- SoapProcessingBehavior.cs
- RangeContentEnumerator.cs
- TextRangeAdaptor.cs
- ChildChangedEventArgs.cs
- ProtocolsConfiguration.cs
- GroupQuery.cs
- AspCompat.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- PlainXmlDeserializer.cs
- Subtree.cs
- TripleDES.cs
- DbMetaDataFactory.cs
- IconHelper.cs
- ItemType.cs
- StringFormat.cs
- CountAggregationOperator.cs
- SqlDataSourceFilteringEventArgs.cs
- DecimalAnimationBase.cs
- Panel.cs
- HelloMessage11.cs
- SqlDataSourceEnumerator.cs
- TreeViewImageIndexConverter.cs
- StylusCollection.cs
- CodeAttributeDeclarationCollection.cs
- ObjectDataSourceMethodEventArgs.cs
- PTManager.cs
- CommentAction.cs
- List.cs
- ElementNotEnabledException.cs
- DispatcherObject.cs
- WorkflowQueue.cs
- TextDpi.cs
- Pool.cs
- Zone.cs