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
- HttpDictionary.cs
- GiveFeedbackEvent.cs
- COM2IVsPerPropertyBrowsingHandler.cs
- MenuCommandsChangedEventArgs.cs
- QuaternionRotation3D.cs
- NativeMethods.cs
- TypeInitializationException.cs
- InlinedLocationReference.cs
- HotCommands.cs
- ErrorHandler.cs
- PolicyStatement.cs
- AuthenticatingEventArgs.cs
- InvalidProgramException.cs
- Vector3DCollectionConverter.cs
- TranslateTransform3D.cs
- VariableReference.cs
- ActivityDesignerAccessibleObject.cs
- FileCodeGroup.cs
- _CommandStream.cs
- ScrollChrome.cs
- AsyncDataRequest.cs
- ClientSession.cs
- StandardToolWindows.cs
- ModelUIElement3D.cs
- NotifyIcon.cs
- ListItem.cs
- GenericWebPart.cs
- EventLogPermission.cs
- SelectedDatesCollection.cs
- XPathNodePointer.cs
- SqlNodeAnnotation.cs
- Msec.cs
- MultiView.cs
- FontWeights.cs
- HttpCacheParams.cs
- CompilationSection.cs
- LayoutUtils.cs
- SafeNativeMethods.cs
- MimeMapping.cs
- cookiecontainer.cs
- EnumValAlphaComparer.cs
- Message.cs
- ObjectListCommandCollection.cs
- SQLUtility.cs
- RubberbandSelector.cs
- ConfigXmlReader.cs
- DiscardableAttribute.cs
- CapabilitiesRule.cs
- AddressHeader.cs
- CodeSubDirectoriesCollection.cs
- _Rfc2616CacheValidators.cs
- GregorianCalendarHelper.cs
- TextBoxAutomationPeer.cs
- ResolveMatches11.cs
- ChtmlCalendarAdapter.cs
- ConfigXmlElement.cs
- ListBase.cs
- Attributes.cs
- MouseCaptureWithinProperty.cs
- NullReferenceException.cs
- Matrix.cs
- DataBoundControl.cs
- WorkflowServiceBehavior.cs
- FamilyMapCollection.cs
- DBSqlParser.cs
- XmlComplianceUtil.cs
- ConfigLoader.cs
- SoapFormatter.cs
- While.cs
- ToolStripStatusLabel.cs
- NameValuePair.cs
- EntityConnection.cs
- FontWeight.cs
- ProviderSettingsCollection.cs
- XmlDataLoader.cs
- ControlBindingsCollection.cs
- WorkflowDefinitionDispenser.cs
- HierarchicalDataSourceControl.cs
- TextTrailingWordEllipsis.cs
- ZipIOLocalFileHeader.cs
- HtmlElementCollection.cs
- WindowsGraphicsWrapper.cs
- DataControlFieldTypeEditor.cs
- DependencyPropertyConverter.cs
- UnsafeNativeMethodsMilCoreApi.cs
- OverflowException.cs
- Geometry3D.cs
- OdbcConnectionStringbuilder.cs
- ProfilePropertySettingsCollection.cs
- WebPartConnectionsCloseVerb.cs
- CharEntityEncoderFallback.cs
- CardSpaceException.cs
- ProgressBarAutomationPeer.cs
- CacheModeConverter.cs
- Tuple.cs
- CapabilitiesState.cs
- BezierSegment.cs
- RelationshipFixer.cs
- AdornerDecorator.cs
- CodeAttributeDeclaration.cs