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
- TextViewSelectionProcessor.cs
- VerificationException.cs
- PTManager.cs
- RequestBringIntoViewEventArgs.cs
- DataGridColumnCollectionEditor.cs
- DbConnectionStringBuilder.cs
- WorkingDirectoryEditor.cs
- StructuralCache.cs
- OleDbEnumerator.cs
- SectionRecord.cs
- StrongNameUtility.cs
- ConfigXmlAttribute.cs
- EventQueueState.cs
- SortedDictionary.cs
- StrictAndMessageFilter.cs
- diagnosticsswitches.cs
- NodeFunctions.cs
- RelOps.cs
- Context.cs
- InheritanceContextChangedEventManager.cs
- InfoCardTrace.cs
- dataobject.cs
- InputBinding.cs
- WmlObjectListAdapter.cs
- WorkerRequest.cs
- SocketManager.cs
- DBParameter.cs
- UnsafeNativeMethods.cs
- RestClientProxyHandler.cs
- MemberProjectionIndex.cs
- WorkflowTerminatedException.cs
- ArgumentException.cs
- PersonalizationEntry.cs
- TimeSpanSecondsConverter.cs
- RuleEngine.cs
- storepermissionattribute.cs
- ObjectFullSpanRewriter.cs
- AutomationPatternInfo.cs
- ProcessModelSection.cs
- DoubleAnimationUsingKeyFrames.cs
- HttpWebRequestElement.cs
- FixedPage.cs
- Intellisense.cs
- GeneralTransform.cs
- Viewport3DAutomationPeer.cs
- PropertyValidationContext.cs
- EventBuilder.cs
- CellIdBoolean.cs
- LostFocusEventManager.cs
- ProvidePropertyAttribute.cs
- EqualityComparer.cs
- CheckBoxPopupAdapter.cs
- XmlSchemaImport.cs
- Misc.cs
- RijndaelManagedTransform.cs
- NamedPipeConnectionPoolSettings.cs
- DesignerImageAdapter.cs
- TrackingProfile.cs
- SweepDirectionValidation.cs
- Int16AnimationBase.cs
- PolyBezierSegmentFigureLogic.cs
- IgnoreFlushAndCloseStream.cs
- ResXResourceWriter.cs
- SystemDropShadowChrome.cs
- MasterPage.cs
- XmlText.cs
- ExpressionWriter.cs
- MultiView.cs
- Rotation3DAnimation.cs
- DataSetUtil.cs
- DataGridViewLayoutData.cs
- CngUIPolicy.cs
- DataContractSerializerMessageContractImporter.cs
- RelatedView.cs
- DataFieldConverter.cs
- PropagatorResult.cs
- InvalidDataException.cs
- Light.cs
- InProcStateClientManager.cs
- DoWorkEventArgs.cs
- ListView.cs
- PagesChangedEventArgs.cs
- ResourceExpressionBuilder.cs
- tooltip.cs
- X509CertificateClaimSet.cs
- MetafileEditor.cs
- PathHelper.cs
- WebPartConnection.cs
- EntitySqlQueryState.cs
- LogEntrySerialization.cs
- BuildResult.cs
- Grid.cs
- DataGridViewCellEventArgs.cs
- EdmProviderManifest.cs
- CommonDialog.cs
- DataObjectAttribute.cs
- DesignerDataRelationship.cs
- ByteStream.cs
- SchemaNames.cs
- HatchBrush.cs