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
- XmlSerializableWriter.cs
- SqlUnionizer.cs
- EntitySetRetriever.cs
- SemanticResolver.cs
- URI.cs
- RoleGroup.cs
- ServiceThrottle.cs
- Zone.cs
- GroupBoxRenderer.cs
- FileResponseElement.cs
- NetTcpSection.cs
- TreeNodeStyleCollection.cs
- MenuRendererClassic.cs
- AsymmetricSignatureFormatter.cs
- StyleXamlTreeBuilder.cs
- ReadOnlyDataSource.cs
- BrushConverter.cs
- ListViewItem.cs
- ClientScriptManager.cs
- ListBindingConverter.cs
- TrackBar.cs
- TransactionalPackage.cs
- HeaderedItemsControl.cs
- ServiceContractGenerationContext.cs
- ServerValidateEventArgs.cs
- RegisterResponseInfo.cs
- StoreAnnotationsMap.cs
- XmlWrappingReader.cs
- CategoryAttribute.cs
- AudienceUriMode.cs
- ReadOnlyDataSource.cs
- COM2TypeInfoProcessor.cs
- HtmlInputPassword.cs
- DetailsViewUpdatedEventArgs.cs
- SafeBuffer.cs
- ListViewGroupItemCollection.cs
- SqlDataReaderSmi.cs
- AvtEvent.cs
- XPathEmptyIterator.cs
- HttpModulesInstallComponent.cs
- DictionaryChange.cs
- SafeTokenHandle.cs
- FormViewDeleteEventArgs.cs
- XmlMapping.cs
- SourceChangedEventArgs.cs
- RadioButtonStandardAdapter.cs
- ReverseInheritProperty.cs
- ObjectContext.cs
- SemanticKeyElement.cs
- BaseProcessor.cs
- Rotation3DAnimationBase.cs
- xdrvalidator.cs
- PersonalizationProvider.cs
- SettingsPropertyWrongTypeException.cs
- XmlCountingReader.cs
- StorageAssociationSetMapping.cs
- DataGridViewCellConverter.cs
- BreakRecordTable.cs
- KernelTypeValidation.cs
- RemotingServices.cs
- TypedLocationWrapper.cs
- DeclarativeConditionsCollection.cs
- HtmlElementEventArgs.cs
- FactoryRecord.cs
- WebContext.cs
- BaseAutoFormat.cs
- ViewCellRelation.cs
- InlineCategoriesDocument.cs
- UriTemplateEquivalenceComparer.cs
- CodeRegionDirective.cs
- NoneExcludedImageIndexConverter.cs
- Trustee.cs
- DynamicDiscoSearcher.cs
- SoapServerMethod.cs
- ProgressBarBrushConverter.cs
- LicenseProviderAttribute.cs
- TransformDescriptor.cs
- Crypto.cs
- CommandHelpers.cs
- SerializationFieldInfo.cs
- GeneralTransform3DTo2D.cs
- AssertUtility.cs
- TraceUtility.cs
- TemplatedMailWebEventProvider.cs
- XsltArgumentList.cs
- InvokePattern.cs
- HtmlElementEventArgs.cs
- StreamFormatter.cs
- EndPoint.cs
- HierarchicalDataTemplate.cs
- Boolean.cs
- CompilerHelpers.cs
- AlignmentXValidation.cs
- InkCanvasSelection.cs
- PropertyGridEditorPart.cs
- ProcessInputEventArgs.cs
- TableLayoutPanel.cs
- AsyncOperationManager.cs
- MembershipUser.cs
- TimeSpan.cs