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
- JapaneseCalendar.cs
- SplitterCancelEvent.cs
- NotImplementedException.cs
- SoundPlayer.cs
- RadioButtonStandardAdapter.cs
- RouteItem.cs
- ApplicationFileParser.cs
- MarkupExtensionReturnTypeAttribute.cs
- EventLogPermissionAttribute.cs
- DispatcherHooks.cs
- ComponentResourceKeyConverter.cs
- TextRange.cs
- FixedTextBuilder.cs
- TableLayoutColumnStyleCollection.cs
- ContentPropertyAttribute.cs
- TraceData.cs
- CursorConverter.cs
- SqlWriter.cs
- DesignOnlyAttribute.cs
- DuplicateWaitObjectException.cs
- EventWaitHandleSecurity.cs
- BinaryParser.cs
- DependsOnAttribute.cs
- ConvertEvent.cs
- MenuCommand.cs
- XPathQilFactory.cs
- ForeignConstraint.cs
- XPathNode.cs
- SynchronizationHandlesCodeDomSerializer.cs
- WebPartConnection.cs
- FormViewDeletedEventArgs.cs
- PrintPreviewGraphics.cs
- X509Certificate2Collection.cs
- ProcessMonitor.cs
- EventsTab.cs
- ObjectDataSourceView.cs
- BackgroundWorker.cs
- SettingsAttributes.cs
- DictionaryEntry.cs
- LinearGradientBrush.cs
- DBDataPermissionAttribute.cs
- HttpResponseInternalWrapper.cs
- MouseEvent.cs
- ValidatorUtils.cs
- EntityDesignerDataSourceView.cs
- ColorTransformHelper.cs
- DefaultTraceListener.cs
- TextServicesContext.cs
- MetadataWorkspace.cs
- CancellationTokenRegistration.cs
- ObjectParameter.cs
- InvokeBinder.cs
- HashFinalRequest.cs
- ActivationProxy.cs
- UInt64Storage.cs
- ToggleButtonAutomationPeer.cs
- OutgoingWebResponseContext.cs
- Application.cs
- AsymmetricSignatureDeformatter.cs
- SHA1.cs
- Identity.cs
- ProcessRequestAsyncResult.cs
- DragDropManager.cs
- XmlSchemaDatatype.cs
- Win32MouseDevice.cs
- SqlStream.cs
- OleDbDataReader.cs
- AnnotationResourceChangedEventArgs.cs
- LassoSelectionBehavior.cs
- GeneratedCodeAttribute.cs
- CollectionEditorDialog.cs
- BufferModesCollection.cs
- EmptyReadOnlyDictionaryInternal.cs
- CardSpacePolicyElement.cs
- HtmlShim.cs
- CommentGlyph.cs
- SettingsPropertyCollection.cs
- SqlDataRecord.cs
- TreeNodeClickEventArgs.cs
- ReachPageContentSerializerAsync.cs
- TreeNodeCollection.cs
- ClientSession.cs
- MemberDomainMap.cs
- HttpCapabilitiesSectionHandler.cs
- ObjectItemConventionAssemblyLoader.cs
- DragDeltaEventArgs.cs
- ACL.cs
- FixedMaxHeap.cs
- QueueSurrogate.cs
- ResourceWriter.cs
- TraceContext.cs
- XmlILTrace.cs
- CultureInfoConverter.cs
- RIPEMD160.cs
- SerializationException.cs
- FormView.cs
- BevelBitmapEffect.cs
- CachedTypeface.cs
- EllipseGeometry.cs
- MemberJoinTreeNode.cs