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
- MissingManifestResourceException.cs
- MenuItemBinding.cs
- Timer.cs
- GeometryDrawing.cs
- Tokenizer.cs
- ViewRendering.cs
- JoinSymbol.cs
- XmlSchemaValidationException.cs
- ConfigurationPropertyCollection.cs
- EditingMode.cs
- EnumValidator.cs
- DataRowIndexBuffer.cs
- RawStylusInputReport.cs
- EncryptedPackage.cs
- WinEventWrap.cs
- SqlGatherConsumedAliases.cs
- HighlightVisual.cs
- ExpressionBuilderContext.cs
- TakeQueryOptionExpression.cs
- TrackingServices.cs
- MimePart.cs
- UInt64Converter.cs
- GeneralTransform3DCollection.cs
- Literal.cs
- AudienceUriMode.cs
- NamespaceInfo.cs
- MULTI_QI.cs
- LayoutExceptionEventArgs.cs
- MethodSet.cs
- ProviderUtil.cs
- _OverlappedAsyncResult.cs
- CorePropertiesFilter.cs
- StylusPointProperties.cs
- GetPageNumberCompletedEventArgs.cs
- MetadataPropertyAttribute.cs
- PageBorderless.cs
- SqlCacheDependencyDatabase.cs
- GeneralTransform.cs
- MSAANativeProvider.cs
- LinqDataSourceInsertEventArgs.cs
- EventBuilder.cs
- VisualBrush.cs
- SafeBitVector32.cs
- EntityCollection.cs
- WindowsProgressbar.cs
- CodeMethodInvokeExpression.cs
- MetricEntry.cs
- MultipartContentParser.cs
- IntellisenseTextBox.designer.cs
- Math.cs
- FrameworkRichTextComposition.cs
- ParentQuery.cs
- HtmlTitle.cs
- NamespaceTable.cs
- SurrogateSelector.cs
- OutKeywords.cs
- SQLRoleProvider.cs
- ContextMarshalException.cs
- ArcSegment.cs
- NullableIntAverageAggregationOperator.cs
- NaturalLanguageHyphenator.cs
- SchemaMerger.cs
- BinaryFormatterWriter.cs
- XamlFilter.cs
- InternalConfigRoot.cs
- PermissionSetTriple.cs
- AdRotator.cs
- RepeatButtonAutomationPeer.cs
- MiniConstructorInfo.cs
- DataGridRowHeaderAutomationPeer.cs
- DynamicRenderer.cs
- Pair.cs
- CorrelationTokenInvalidatedHandler.cs
- DataGridRow.cs
- XmlSchemaElement.cs
- Metadata.cs
- EmptyControlCollection.cs
- WSSecureConversation.cs
- ServerValidateEventArgs.cs
- Semaphore.cs
- DetailsViewPagerRow.cs
- DataGridViewLayoutData.cs
- oledbconnectionstring.cs
- RijndaelManaged.cs
- ResXResourceReader.cs
- ThrowHelper.cs
- Utilities.cs
- XmlSchemaCollection.cs
- DefaultTraceListener.cs
- IPAddress.cs
- TableProviderWrapper.cs
- ProcessingInstructionAction.cs
- SyndicationLink.cs
- Peer.cs
- DataSourceProvider.cs
- ParseChildrenAsPropertiesAttribute.cs
- SSmlParser.cs
- OleDbDataReader.cs
- ParserStack.cs
- ColorContext.cs