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
- EventHandlers.cs
- ReadOnlyDictionary.cs
- mediapermission.cs
- COM2EnumConverter.cs
- X509WindowsSecurityToken.cs
- TcpClientSocketManager.cs
- Site.cs
- InstalledFontCollection.cs
- TabControl.cs
- COAUTHINFO.cs
- CachedTypeface.cs
- SoapMessage.cs
- MDIWindowDialog.cs
- Assembly.cs
- PageThemeParser.cs
- NetNamedPipeBinding.cs
- DataListItem.cs
- XmlSchemaType.cs
- UInt64Storage.cs
- TargetParameterCountException.cs
- DiscoveryMessageSequenceGenerator.cs
- TextParagraph.cs
- GridItemCollection.cs
- PageBreakRecord.cs
- TraceLog.cs
- CompiledXpathExpr.cs
- GrowingArray.cs
- DiscoveryClientDocuments.cs
- DropDownList.cs
- UntrustedRecipientException.cs
- CompiledXpathExpr.cs
- RIPEMD160Managed.cs
- UpDownBase.cs
- CustomAttributeFormatException.cs
- TranslateTransform3D.cs
- AspNetRouteServiceHttpHandler.cs
- Track.cs
- _NegoState.cs
- TypeDescriptionProvider.cs
- DataServiceRequestOfT.cs
- IOException.cs
- TemplateBindingExtensionConverter.cs
- SqlMethods.cs
- SoapConverter.cs
- DataBinding.cs
- VSDExceptions.cs
- AdPostCacheSubstitution.cs
- SerializerWriterEventHandlers.cs
- RtfNavigator.cs
- ExternalException.cs
- SqlClientPermission.cs
- DateTimeConverter2.cs
- ExtendLockAsyncResult.cs
- SmtpSection.cs
- Normalizer.cs
- ManagementOptions.cs
- TextTreePropertyUndoUnit.cs
- SemaphoreFullException.cs
- EnvironmentPermission.cs
- PassportAuthenticationModule.cs
- BrowserCapabilitiesCompiler.cs
- SecurityRuntime.cs
- NativeMethods.cs
- EventLogPermissionEntryCollection.cs
- AccessViolationException.cs
- FontDifferentiator.cs
- FillErrorEventArgs.cs
- MenuItemBinding.cs
- InstanceLockLostException.cs
- SafeNativeMethods.cs
- XmlLanguage.cs
- FileLogRecordHeader.cs
- SqlErrorCollection.cs
- FontFaceLayoutInfo.cs
- FormattedText.cs
- TransformValueSerializer.cs
- Validator.cs
- XmlExtensionFunction.cs
- DocumentReferenceCollection.cs
- SectionInput.cs
- DisplayNameAttribute.cs
- OracleCommandSet.cs
- TypeForwardedToAttribute.cs
- DataGridTextBoxColumn.cs
- CompositeActivityDesigner.cs
- EdmTypeAttribute.cs
- SchemaInfo.cs
- CharEnumerator.cs
- DeferredElementTreeState.cs
- ConditionalBranch.cs
- NamedPermissionSet.cs
- EntityContainerEntitySet.cs
- ReferenceService.cs
- RepeaterCommandEventArgs.cs
- SecurityContext.cs
- ZoneLinkButton.cs
- OdbcParameterCollection.cs
- Pointer.cs
- UpDownEvent.cs
- HttpListenerPrefixCollection.cs