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
- AttachmentService.cs
- CodeTypeDelegate.cs
- SafeNativeMethods.cs
- EventPropertyMap.cs
- ProjectionCamera.cs
- FontResourceCache.cs
- ReferentialConstraint.cs
- DataPagerFieldItem.cs
- ResourceExpressionEditorSheet.cs
- AvtEvent.cs
- PersistenceProviderElement.cs
- ConfigXmlCDataSection.cs
- IconConverter.cs
- XAMLParseException.cs
- Menu.cs
- LocalizableAttribute.cs
- SqlAliasesReferenced.cs
- CryptoHandle.cs
- ScrollViewerAutomationPeer.cs
- PropertyChangingEventArgs.cs
- DataGridViewCellConverter.cs
- WebPartDeleteVerb.cs
- GridErrorDlg.cs
- SiblingIterators.cs
- ListBox.cs
- SoapServerProtocol.cs
- TimeoutValidationAttribute.cs
- TypeConverter.cs
- webeventbuffer.cs
- ToolboxItem.cs
- InputProcessorProfiles.cs
- WindowPattern.cs
- SqlRecordBuffer.cs
- UrlMappingCollection.cs
- FilterQuery.cs
- TrustSection.cs
- TransformGroup.cs
- FlagsAttribute.cs
- GraphicsPath.cs
- SerialErrors.cs
- __Filters.cs
- SecurityResources.cs
- LineProperties.cs
- XmlBaseWriter.cs
- BamlLocalizationDictionary.cs
- StylesEditorDialog.cs
- HttpListenerPrefixCollection.cs
- WebDescriptionAttribute.cs
- prefixendpointaddressmessagefilter.cs
- GridViewItemAutomationPeer.cs
- EntityParameterCollection.cs
- DataList.cs
- Group.cs
- MediaContextNotificationWindow.cs
- GraphicsState.cs
- SqlClientWrapperSmiStreamChars.cs
- ToolStripControlHost.cs
- ObjectMaterializedEventArgs.cs
- ConnectionInterfaceCollection.cs
- SystemUnicastIPAddressInformation.cs
- Table.cs
- SafeFileMappingHandle.cs
- Tablet.cs
- Ticks.cs
- DataTableNewRowEvent.cs
- CaseInsensitiveOrdinalStringComparer.cs
- DrawingBrush.cs
- AsmxEndpointPickerExtension.cs
- IntSecurity.cs
- EncodingDataItem.cs
- BamlRecordReader.cs
- Error.cs
- PriorityItem.cs
- DataGridTable.cs
- MessageVersion.cs
- GPPOINT.cs
- ChannelSinkStacks.cs
- Menu.cs
- ContextProperty.cs
- FontNamesConverter.cs
- ReflectEventDescriptor.cs
- SamlAuthenticationStatement.cs
- ResourceReferenceExpression.cs
- NaturalLanguageHyphenator.cs
- FileFormatException.cs
- DispatcherEventArgs.cs
- RecommendedAsConfigurableAttribute.cs
- StateDesigner.Layouts.cs
- MailDefinition.cs
- TdsParserHelperClasses.cs
- ErrorHandler.cs
- EventListener.cs
- CatalogZoneDesigner.cs
- DashStyles.cs
- AccessDataSource.cs
- EntityStoreSchemaGenerator.cs
- ContainerParagraph.cs
- StagingAreaInputItem.cs
- SQLBoolean.cs
- PropertyGridCommands.cs