Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / Xml / System / Xml / XPath / Internal / XPathSelfQuery.cs / 1 / XPathSelfQuery.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- namespace MS.Internal.Xml.XPath { using System; using System.Xml; using System.Xml.XPath; using System.Diagnostics; internal sealed class XPathSelfQuery : BaseAxisQuery { public XPathSelfQuery(Query qyInput, string Name, string Prefix, XPathNodeType Type) : base(qyInput, Name, Prefix, Type) {} private XPathSelfQuery(XPathSelfQuery other) : base(other) { } public override XPathNavigator Advance() { while ((currentNode = qyInput.Advance()) != null) { if (matches(currentNode)) { position = 1; return currentNode; } } return null; } public override XPathNodeIterator Clone() { return new XPathSelfQuery(this); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- namespace MS.Internal.Xml.XPath { using System; using System.Xml; using System.Xml.XPath; using System.Diagnostics; internal sealed class XPathSelfQuery : BaseAxisQuery { public XPathSelfQuery(Query qyInput, string Name, string Prefix, XPathNodeType Type) : base(qyInput, Name, Prefix, Type) {} private XPathSelfQuery(XPathSelfQuery other) : base(other) { } public override XPathNavigator Advance() { while ((currentNode = qyInput.Advance()) != null) { if (matches(currentNode)) { position = 1; return currentNode; } } return null; } public override XPathNodeIterator Clone() { return new XPathSelfQuery(this); } } } // 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
- Line.cs
- Ipv6Element.cs
- SystemIPInterfaceStatistics.cs
- CompiledRegexRunner.cs
- DocobjHost.cs
- FrameworkTextComposition.cs
- SimpleHandlerFactory.cs
- RTLAwareMessageBox.cs
- GridViewRowEventArgs.cs
- XPathScanner.cs
- DataGridHeaderBorder.cs
- PatternMatcher.cs
- DataGridViewColumnDividerDoubleClickEventArgs.cs
- DictionarySectionHandler.cs
- EnumerableCollectionView.cs
- ListBoxItemWrapperAutomationPeer.cs
- FixedTextBuilder.cs
- WpfKnownMemberInvoker.cs
- AppendHelper.cs
- AutomationElement.cs
- AspCompat.cs
- SpeechRecognitionEngine.cs
- ObjectHandle.cs
- AsyncSerializedWorker.cs
- CategoryNameCollection.cs
- CodePropertyReferenceExpression.cs
- EnumBuilder.cs
- OdbcFactory.cs
- MapPathBasedVirtualPathProvider.cs
- EditingCommands.cs
- WSDualHttpSecurityElement.cs
- ErrorInfoXmlDocument.cs
- ICspAsymmetricAlgorithm.cs
- XsdBuildProvider.cs
- LinqDataSourceUpdateEventArgs.cs
- XmlDataSourceNodeDescriptor.cs
- StringResourceManager.cs
- ServiceModelActivationSectionGroup.cs
- WindowsScrollBar.cs
- XmlProcessingInstruction.cs
- ImageListStreamer.cs
- ColumnReorderedEventArgs.cs
- PropertyGridEditorPart.cs
- SerializerDescriptor.cs
- Base64Encoder.cs
- InvalidateEvent.cs
- MD5.cs
- SymDocumentType.cs
- SHA384Cng.cs
- RubberbandSelector.cs
- SafeIUnknown.cs
- PolyLineSegmentFigureLogic.cs
- XamlWriter.cs
- LoginCancelEventArgs.cs
- EditBehavior.cs
- NavigationService.cs
- Cursors.cs
- Solver.cs
- OptionUsage.cs
- mediaeventshelper.cs
- PagesSection.cs
- DrawingImage.cs
- DataGridCommandEventArgs.cs
- SystemNetworkInterface.cs
- InvariantComparer.cs
- BindingManagerDataErrorEventArgs.cs
- PointF.cs
- GenerateScriptTypeAttribute.cs
- FontStretch.cs
- JsonFaultDetail.cs
- SystemResources.cs
- RayMeshGeometry3DHitTestResult.cs
- AesCryptoServiceProvider.cs
- UTF7Encoding.cs
- ReachFixedDocumentSerializer.cs
- UrlMapping.cs
- Int32KeyFrameCollection.cs
- LinqMaximalSubtreeNominator.cs
- Codec.cs
- CodeAccessPermission.cs
- InkPresenter.cs
- BindingExpressionBase.cs
- MailDefinition.cs
- MonthChangedEventArgs.cs
- ReadWriteSpinLock.cs
- GridSplitterAutomationPeer.cs
- DateTimeOffset.cs
- _Semaphore.cs
- DataBoundControlDesigner.cs
- ArgumentFixer.cs
- WindowsMenu.cs
- EventManager.cs
- ChangePasswordAutoFormat.cs
- ExceptionHandler.cs
- InvalidPrinterException.cs
- DocumentPaginator.cs
- ToolStripScrollButton.cs
- TextTreeUndoUnit.cs
- SmtpDigestAuthenticationModule.cs
- SlipBehavior.cs