Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Xml / System / Xml / XPath / Internal / XPathSelfQuery.cs / 1305376 / 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
- ApplicationGesture.cs
- CalendarDataBindingHandler.cs
- XPathCompiler.cs
- SqlClientWrapperSmiStreamChars.cs
- SafeFindHandle.cs
- ViewManager.cs
- AsyncWaitHandle.cs
- UseManagedPresentationBindingElementImporter.cs
- OleDbDataAdapter.cs
- TextHidden.cs
- HtmlSelect.cs
- UIAgentAsyncBeginRequest.cs
- WebPartHelpVerb.cs
- ReadOnlyCollection.cs
- XmlDeclaration.cs
- MailSettingsSection.cs
- CodeDefaultValueExpression.cs
- DateTimePickerDesigner.cs
- Control.cs
- Button.cs
- datacache.cs
- GridViewColumnHeaderAutomationPeer.cs
- ACL.cs
- ToolStripItemEventArgs.cs
- TakeOrSkipWhileQueryOperator.cs
- HostProtectionPermission.cs
- ComPersistableTypeElement.cs
- NamespaceCollection.cs
- SharedPerformanceCounter.cs
- TileBrush.cs
- DNS.cs
- SqlEnums.cs
- EnumerableCollectionView.cs
- DetailsView.cs
- WebRequestModulesSection.cs
- ReferentialConstraint.cs
- Publisher.cs
- ClosableStream.cs
- KeyValueConfigurationCollection.cs
- WsatTransactionHeader.cs
- DbParameterCollectionHelper.cs
- CalendarDateRangeChangingEventArgs.cs
- PropertySet.cs
- WSTrustDec2005.cs
- RecognizerStateChangedEventArgs.cs
- ThicknessAnimation.cs
- validation.cs
- BitmapEffectRenderDataResource.cs
- ReadOnlyCollection.cs
- ArrayTypeMismatchException.cs
- JavaScriptString.cs
- TemplateBaseAction.cs
- IconConverter.cs
- EnumType.cs
- SystemSounds.cs
- XmlQueryContext.cs
- ServiceDesigner.cs
- SettingsSection.cs
- Interlocked.cs
- ListBoxItemWrapperAutomationPeer.cs
- SynchronizedInputProviderWrapper.cs
- SharedUtils.cs
- FtpWebRequest.cs
- FontNamesConverter.cs
- CollaborationHelperFunctions.cs
- CompletionCallbackWrapper.cs
- HuffCodec.cs
- MobileUserControl.cs
- HMACSHA384.cs
- SplitterPanel.cs
- XmlMembersMapping.cs
- ImageUrlEditor.cs
- TextCompositionManager.cs
- ClientSponsor.cs
- MetafileHeaderWmf.cs
- ObjectCloneHelper.cs
- ChildrenQuery.cs
- ClusterRegistryConfigurationProvider.cs
- ButtonChrome.cs
- IncrementalHitTester.cs
- XamlBrushSerializer.cs
- PixelFormats.cs
- OperationCanceledException.cs
- AdPostCacheSubstitution.cs
- TextWriter.cs
- XmlC14NWriter.cs
- RoleService.cs
- XmlParserContext.cs
- MemberRestriction.cs
- TableLayoutSettingsTypeConverter.cs
- ObjectPersistData.cs
- EarlyBoundInfo.cs
- DataGridViewRowConverter.cs
- CodeSnippetExpression.cs
- RangeValuePatternIdentifiers.cs
- BaseAsyncResult.cs
- OpenFileDialog.cs
- BuildManagerHost.cs
- FixUp.cs
- DockEditor.cs