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
- unitconverter.cs
- AuditLog.cs
- VectorCollectionConverter.cs
- DifferencingCollection.cs
- IntSecurity.cs
- LinkedList.cs
- IdlingCommunicationPool.cs
- CriticalExceptions.cs
- InstanceKeyNotReadyException.cs
- PageRouteHandler.cs
- InternalRelationshipCollection.cs
- HostingPreferredMapPath.cs
- Transform.cs
- DataGridViewButtonCell.cs
- AssemblyAttributes.cs
- configsystem.cs
- PageCatalogPart.cs
- DataServiceExpressionVisitor.cs
- ResourceDescriptionAttribute.cs
- DynamicPropertyHolder.cs
- XmlDataSourceDesigner.cs
- SqlTransaction.cs
- Axis.cs
- ListBindableAttribute.cs
- DtdParser.cs
- StdValidatorsAndConverters.cs
- FormsIdentity.cs
- EntityDataSourceEntityTypeFilterItem.cs
- MaterialGroup.cs
- SoapSchemaImporter.cs
- FilterElement.cs
- VBCodeProvider.cs
- ToolBarButton.cs
- ReadOnlyActivityGlyph.cs
- StringComparer.cs
- CreateUserWizard.cs
- GrabHandleGlyph.cs
- ProfileService.cs
- IsolatedStorage.cs
- XmlSchemaProviderAttribute.cs
- SecondaryViewProvider.cs
- BasicKeyConstraint.cs
- CryptoApi.cs
- SymmetricKey.cs
- _FtpDataStream.cs
- EventWaitHandle.cs
- CultureNotFoundException.cs
- LogWriteRestartAreaState.cs
- DataGridView.cs
- ModuleElement.cs
- CombinedGeometry.cs
- ClientSettingsStore.cs
- TemplateKey.cs
- RoleManagerSection.cs
- WebPartDisplayModeCollection.cs
- Subset.cs
- BamlRecordReader.cs
- AsyncOperation.cs
- ResourceReader.cs
- StrongNamePublicKeyBlob.cs
- UrlPath.cs
- LinkLabelLinkClickedEvent.cs
- XmlExtensionFunction.cs
- DragEvent.cs
- BamlLocalizationDictionary.cs
- Function.cs
- OdbcUtils.cs
- SortDescription.cs
- JpegBitmapDecoder.cs
- HtmlUtf8RawTextWriter.cs
- StyleSheetRefUrlEditor.cs
- UIElement3D.cs
- LinqDataSourceDisposeEventArgs.cs
- TextRunCache.cs
- StrongTypingException.cs
- ProjectionCamera.cs
- SettingsPropertyWrongTypeException.cs
- OracleTimeSpan.cs
- RangeValidator.cs
- HtmlButton.cs
- StructuredType.cs
- DataReceivedEventArgs.cs
- InteropAutomationProvider.cs
- TraceRecord.cs
- DesignUtil.cs
- AppDomainAttributes.cs
- DataPager.cs
- ProtocolsConfigurationEntry.cs
- LocalFileSettingsProvider.cs
- StateManagedCollection.cs
- EntityDataSourceChangedEventArgs.cs
- AsyncPostBackTrigger.cs
- ConfigurationManagerInternal.cs
- BuildProviderCollection.cs
- ComponentResourceKey.cs
- WeakHashtable.cs
- ExpressionDumper.cs
- FontNamesConverter.cs
- TextWriter.cs
- WebPartDisplayModeCancelEventArgs.cs