Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- TemporaryBitmapFile.cs
- securitymgrsite.cs
- CqlIdentifiers.cs
- WebPageTraceListener.cs
- StorageInfo.cs
- LogReserveAndAppendState.cs
- SiteMembershipCondition.cs
- RoleManagerModule.cs
- SetStateEventArgs.cs
- SurrogateEncoder.cs
- VisualProxy.cs
- MenuItemAutomationPeer.cs
- CustomCategoryAttribute.cs
- RemoteHelper.cs
- IsolatedStorageFilePermission.cs
- CodeDirectionExpression.cs
- MessageBox.cs
- UIElement3D.cs
- TogglePattern.cs
- CaseInsensitiveOrdinalStringComparer.cs
- CompositeActivityDesigner.cs
- Overlapped.cs
- MetaModel.cs
- OutputCacheProfile.cs
- FlowDocumentScrollViewer.cs
- StylusButtonEventArgs.cs
- COM2ExtendedTypeConverter.cs
- HtmlInputPassword.cs
- WebPartEditVerb.cs
- TableCellCollection.cs
- OleDbError.cs
- OracleParameterCollection.cs
- LongTypeConverter.cs
- Parser.cs
- SqlInternalConnectionSmi.cs
- Point4DValueSerializer.cs
- TextRangeEditTables.cs
- RSAPKCS1SignatureDeformatter.cs
- GridViewCancelEditEventArgs.cs
- TripleDES.cs
- NegatedCellConstant.cs
- FormsAuthenticationEventArgs.cs
- SqlLiftWhereClauses.cs
- DataDocumentXPathNavigator.cs
- SymLanguageVendor.cs
- ThumbAutomationPeer.cs
- ThemeInfoAttribute.cs
- FunctionDescription.cs
- SoapBinding.cs
- QueryContinueDragEvent.cs
- SrgsGrammar.cs
- EmissiveMaterial.cs
- MessageHeaderDescription.cs
- AttributeCollection.cs
- SolidColorBrush.cs
- ObservableCollectionDefaultValueFactory.cs
- SynthesizerStateChangedEventArgs.cs
- COM2PropertyDescriptor.cs
- CoTaskMemUnicodeSafeHandle.cs
- BulletedList.cs
- _ScatterGatherBuffers.cs
- EncoderBestFitFallback.cs
- ExpandCollapsePattern.cs
- ScriptResourceInfo.cs
- BindStream.cs
- WorkflowElementDialog.cs
- Vector3DAnimation.cs
- PointValueSerializer.cs
- columnmapfactory.cs
- AttributeTableBuilder.cs
- HatchBrush.cs
- BooleanSwitch.cs
- InstanceData.cs
- PrintDialog.cs
- MtomMessageEncoder.cs
- UserControlFileEditor.cs
- GraphicsState.cs
- PrinterResolution.cs
- OptimalBreakSession.cs
- DataRecordInfo.cs
- ErasingStroke.cs
- JsonReader.cs
- ResourceDefaultValueAttribute.cs
- Propagator.Evaluator.cs
- SchemaMapping.cs
- GradientStopCollection.cs
- SoapFault.cs
- ACE.cs
- WasHttpHandlersInstallComponent.cs
- RemotingService.cs
- TextEditorMouse.cs
- CodeGeneratorOptions.cs
- DefaultEventAttribute.cs
- ConfigurationConverterBase.cs
- ParameterCollection.cs
- StorageAssociationSetMapping.cs
- GuidelineCollection.cs
- WebPartMovingEventArgs.cs
- DirectoryGroupQuery.cs
- ZoneButton.cs