Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- WebPartUserCapability.cs
- WebBrowserDocumentCompletedEventHandler.cs
- GlobalProxySelection.cs
- StdRegProviderWrapper.cs
- DbProviderFactories.cs
- XPathParser.cs
- XmlILAnnotation.cs
- ValidationPropertyAttribute.cs
- BinaryFormatter.cs
- DataServiceProcessingPipelineEventArgs.cs
- NameValueFileSectionHandler.cs
- ObjectConverter.cs
- ExpressionBinding.cs
- SelectionEditingBehavior.cs
- EventLogStatus.cs
- Attribute.cs
- X509ClientCertificateCredentialsElement.cs
- ObjectConverter.cs
- SqlClientWrapperSmiStream.cs
- HScrollProperties.cs
- NumericPagerField.cs
- SmtpSection.cs
- AssemblyAttributesGoHere.cs
- CodeSubDirectoriesCollection.cs
- GridErrorDlg.cs
- SqlGenerator.cs
- ManifestResourceInfo.cs
- SQLInt64Storage.cs
- AesCryptoServiceProvider.cs
- BrowserPolicyValidator.cs
- App.cs
- MenuItemCollectionEditor.cs
- SpecialFolderEnumConverter.cs
- Win32SafeHandles.cs
- httpstaticobjectscollection.cs
- ValidationHelper.cs
- LambdaCompiler.Logical.cs
- DataSvcMapFileSerializer.cs
- HtmlInputReset.cs
- COM2ExtendedUITypeEditor.cs
- ClientSettingsStore.cs
- ExtenderProvidedPropertyAttribute.cs
- DbDeleteCommandTree.cs
- TextBox.cs
- PreservationFileWriter.cs
- COM2DataTypeToManagedDataTypeConverter.cs
- DataBoundLiteralControl.cs
- IndexerNameAttribute.cs
- __ConsoleStream.cs
- ImageFormatConverter.cs
- BreakSafeBase.cs
- ExpandableObjectConverter.cs
- XmlIterators.cs
- DataFieldConverter.cs
- TraceUtility.cs
- MeasureItemEvent.cs
- FixedSOMFixedBlock.cs
- EpmSourceTree.cs
- srgsitem.cs
- ToolStripRenderEventArgs.cs
- RegexCharClass.cs
- CssTextWriter.cs
- TreeViewDataItemAutomationPeer.cs
- GregorianCalendarHelper.cs
- CodeDirectionExpression.cs
- RtfToXamlReader.cs
- DataGridViewColumnConverter.cs
- DataGridViewUtilities.cs
- EventWaitHandleSecurity.cs
- SudsParser.cs
- _ConnectStream.cs
- WpfXamlLoader.cs
- TTSEvent.cs
- DataServiceRequestException.cs
- GPRECT.cs
- UnsafeNativeMethods.cs
- SendContent.cs
- XmlPropertyBag.cs
- Automation.cs
- RegexGroupCollection.cs
- HttpResponse.cs
- TextParaClient.cs
- WorkflowServiceHost.cs
- TextPatternIdentifiers.cs
- ProtectedConfigurationSection.cs
- NullableFloatMinMaxAggregationOperator.cs
- PriorityQueue.cs
- TextTreeRootNode.cs
- TextModifierScope.cs
- ClientOperation.cs
- FormViewPagerRow.cs
- XmlEntityReference.cs
- StreamSecurityUpgradeInitiatorAsyncResult.cs
- MouseButton.cs
- ObjectDataSourceDisposingEventArgs.cs
- CheckedListBox.cs
- DBDataPermission.cs
- DataException.cs
- GeometryConverter.cs
- BindingManagerDataErrorEventArgs.cs