Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Xml / System / Xml / XPath / Internal / XPathSelfQuery.cs / 1305376 / 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
- rsa.cs
- AnnouncementService.cs
- WriteableOnDemandStream.cs
- ParallelTimeline.cs
- SerializationAttributes.cs
- RestrictedTransactionalPackage.cs
- Proxy.cs
- BindingContext.cs
- input.cs
- PixelShader.cs
- WebPartTransformer.cs
- TypeSource.cs
- ExpressionBuilderContext.cs
- PointF.cs
- __FastResourceComparer.cs
- XmlComplianceUtil.cs
- QueryOutputWriter.cs
- StateChangeEvent.cs
- WebPartHeaderCloseVerb.cs
- BlockingCollection.cs
- CharAnimationUsingKeyFrames.cs
- Guid.cs
- DbConnectionFactory.cs
- TextWriterTraceListener.cs
- UIElement.cs
- DesignerVerbCollection.cs
- StrokeRenderer.cs
- SBCSCodePageEncoding.cs
- SignatureDescription.cs
- SkinIDTypeConverter.cs
- UTF32Encoding.cs
- WebProxyScriptElement.cs
- ToolStripMenuItemDesigner.cs
- Vector3DAnimationUsingKeyFrames.cs
- DragEvent.cs
- TextTreeTextElementNode.cs
- ActivityTypeDesigner.xaml.cs
- AnimatedTypeHelpers.cs
- DrawingContext.cs
- DrawListViewItemEventArgs.cs
- AesManaged.cs
- DataErrorValidationRule.cs
- DoubleConverter.cs
- CharacterMetrics.cs
- PropVariant.cs
- CompressStream.cs
- ProviderConnectionPoint.cs
- WhileDesigner.xaml.cs
- XmlElementList.cs
- FieldToken.cs
- TimersDescriptionAttribute.cs
- Quaternion.cs
- _HeaderInfoTable.cs
- MarginsConverter.cs
- regiisutil.cs
- InfoCardMasterKey.cs
- SuppressedPackageProperties.cs
- CodeGen.cs
- HashCryptoHandle.cs
- ListParagraph.cs
- DetailsViewRowCollection.cs
- RelationshipConverter.cs
- LogicalMethodInfo.cs
- ProfilePropertySettings.cs
- SystemIPInterfaceProperties.cs
- SQLResource.cs
- TableLayoutCellPaintEventArgs.cs
- SchemaElementLookUpTable.cs
- PageParserFilter.cs
- ProfilePropertyNameValidator.cs
- WebControlParameterProxy.cs
- ExpressionPrefixAttribute.cs
- DataGridViewHitTestInfo.cs
- SHA512.cs
- TypeBrowser.xaml.cs
- InputProcessorProfiles.cs
- ServiceProviders.cs
- ExtractCollection.cs
- CodeDesigner.cs
- FixedSOMPage.cs
- WebSysDefaultValueAttribute.cs
- RecommendedAsConfigurableAttribute.cs
- SafeRightsManagementPubHandle.cs
- ValueConversionAttribute.cs
- DrawingServices.cs
- unitconverter.cs
- TreeNodeStyle.cs
- SerialReceived.cs
- DateTimeValueSerializerContext.cs
- _OSSOCK.cs
- WindowsAuthenticationModule.cs
- DefaultParameterValueAttribute.cs
- RenderTargetBitmap.cs
- SqlServices.cs
- ProviderMetadata.cs
- VirtualDirectoryMapping.cs
- CalendarDateRange.cs
- ThicknessAnimation.cs
- ZoneMembershipCondition.cs
- CodeGeneratorOptions.cs