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 / 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
- CssStyleCollection.cs
- Component.cs
- WebConvert.cs
- RIPEMD160Managed.cs
- StringSource.cs
- TypeListConverter.cs
- ListBoxItem.cs
- JumpList.cs
- ResourcesBuildProvider.cs
- ByteStream.cs
- XPathEmptyIterator.cs
- KnownTypesHelper.cs
- PolicyVersion.cs
- UIElementParaClient.cs
- PageCatalogPart.cs
- DateTimeValueSerializerContext.cs
- TabControl.cs
- MemberExpression.cs
- ResXResourceSet.cs
- XmlSchemaParticle.cs
- WebServiceErrorEvent.cs
- FixedSOMContainer.cs
- UInt64Converter.cs
- DispatchChannelSink.cs
- PassportAuthenticationModule.cs
- XmlTextReader.cs
- InputDevice.cs
- DataPagerCommandEventArgs.cs
- ActivityWithResultConverter.cs
- AvTraceDetails.cs
- Inline.cs
- cookiecontainer.cs
- XmlEntity.cs
- Viewport2DVisual3D.cs
- XmlUtil.cs
- ValidatedControlConverter.cs
- SinglePageViewer.cs
- PeerDuplexChannel.cs
- _BaseOverlappedAsyncResult.cs
- ProjectionPath.cs
- CommandExpr.cs
- StringReader.cs
- PeerNameResolver.cs
- SizeFConverter.cs
- VisualStyleRenderer.cs
- MethodExpr.cs
- XsltLibrary.cs
- OleDbErrorCollection.cs
- BoolLiteral.cs
- PropertyStore.cs
- SapiGrammar.cs
- DetailsViewCommandEventArgs.cs
- GenericIdentity.cs
- OverlappedAsyncResult.cs
- MenuItemBinding.cs
- templategroup.cs
- AmbientLight.cs
- SaveFileDialog.cs
- UserPreferenceChangingEventArgs.cs
- CurrentTimeZone.cs
- ValueExpressions.cs
- AnnotationResourceChangedEventArgs.cs
- SiteMapSection.cs
- DesignTimeTemplateParser.cs
- BidOverLoads.cs
- ADMembershipUser.cs
- RegexTree.cs
- WebPartUtil.cs
- LinkClickEvent.cs
- ChannelOptions.cs
- NetworkAddressChange.cs
- TableLayoutPanelCodeDomSerializer.cs
- CompiledQuery.cs
- MTConfigUtil.cs
- ResourceManager.cs
- SRGSCompiler.cs
- ClusterUtils.cs
- GlobalId.cs
- PropertyGridEditorPart.cs
- CompoundFileIOPermission.cs
- HandlerMappingMemo.cs
- XPathNavigatorReader.cs
- IfAction.cs
- MemoryRecordBuffer.cs
- Int64Storage.cs
- SendMailErrorEventArgs.cs
- Parallel.cs
- EndpointNameMessageFilter.cs
- LayoutSettings.cs
- DatatypeImplementation.cs
- EmptyStringExpandableObjectConverter.cs
- LocationSectionRecord.cs
- XsdDateTime.cs
- ExtendedPropertyDescriptor.cs
- StateChangeEvent.cs
- webeventbuffer.cs
- CompModSwitches.cs
- MetricEntry.cs
- TextTreeUndo.cs
- ParseHttpDate.cs