Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- OleAutBinder.cs
- Application.cs
- WorkflowMarkupSerializationException.cs
- AppSecurityManager.cs
- ParentQuery.cs
- NetCodeGroup.cs
- Walker.cs
- UrlMapping.cs
- RadioButton.cs
- WindowAutomationPeer.cs
- XmlSchemaSequence.cs
- Choices.cs
- AVElementHelper.cs
- LoadRetryHandler.cs
- Types.cs
- StringUtil.cs
- LifetimeServices.cs
- TraceContextEventArgs.cs
- glyphs.cs
- CommandHelper.cs
- StringAnimationBase.cs
- DataError.cs
- PermissionSet.cs
- TextEditorLists.cs
- ApplicationManager.cs
- CurrencyManager.cs
- BitmapEffectDrawingContextWalker.cs
- DictionaryContent.cs
- EventRecord.cs
- SecurityContextKeyIdentifierClause.cs
- securitycriticaldataClass.cs
- ValueExpressions.cs
- MissingMemberException.cs
- MessageQueuePermissionEntry.cs
- SqlDataSourceConfigureFilterForm.cs
- ToolStripContentPanelRenderEventArgs.cs
- KnowledgeBase.cs
- SourceSwitch.cs
- OdbcTransaction.cs
- BuilderInfo.cs
- RSAOAEPKeyExchangeFormatter.cs
- ActionFrame.cs
- HttpHandlerAction.cs
- AudioFormatConverter.cs
- PolyBezierSegment.cs
- _SingleItemRequestCache.cs
- AnnotationComponentChooser.cs
- ScriptControl.cs
- odbcmetadatafactory.cs
- ScrollItemPattern.cs
- DataGridViewCellCollection.cs
- MasterPageBuildProvider.cs
- LinkDescriptor.cs
- RuleSettingsCollection.cs
- DataControlField.cs
- ScriptingAuthenticationServiceSection.cs
- DBBindings.cs
- SafeRegistryHandle.cs
- StringAnimationUsingKeyFrames.cs
- DebugViewWriter.cs
- TabControlToolboxItem.cs
- EventLog.cs
- SolidColorBrush.cs
- X509Chain.cs
- Stackframe.cs
- XmlObjectSerializer.cs
- UnknownBitmapDecoder.cs
- SelectiveScrollingGrid.cs
- _HTTPDateParse.cs
- BinaryExpressionHelper.cs
- ClockGroup.cs
- ProcessModelInfo.cs
- ValueUnavailableException.cs
- Point4DValueSerializer.cs
- RequestCacheValidator.cs
- ModelItemDictionary.cs
- UpdateException.cs
- QilValidationVisitor.cs
- ContextQuery.cs
- NavigationProperty.cs
- TiffBitmapEncoder.cs
- CompoundFileDeflateTransform.cs
- UpWmlMobileTextWriter.cs
- PartitionResolver.cs
- Vector3DAnimation.cs
- EnumBuilder.cs
- XmlSchemaNotation.cs
- followingquery.cs
- SocketElement.cs
- AutoResizedEvent.cs
- VideoDrawing.cs
- CodeAssignStatement.cs
- TextComposition.cs
- ProxyHelper.cs
- DataObjectEventArgs.cs
- XmlWellformedWriterHelpers.cs
- PixelFormat.cs
- ExtensionElement.cs
- HMACMD5.cs
- BaseProcessor.cs