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
- FtpCachePolicyElement.cs
- ResourceDefaultValueAttribute.cs
- Currency.cs
- DesignOnlyAttribute.cs
- HitTestWithGeometryDrawingContextWalker.cs
- _SslStream.cs
- ViewGenResults.cs
- ThaiBuddhistCalendar.cs
- BlurEffect.cs
- ChangeConflicts.cs
- MouseWheelEventArgs.cs
- CheckableControlBaseAdapter.cs
- ComPlusServiceHost.cs
- CheckedListBox.cs
- CellParagraph.cs
- ObjectDataSourceMethodEventArgs.cs
- WindowsStatic.cs
- FlowDocumentReaderAutomationPeer.cs
- DataSourceProvider.cs
- RowToFieldTransformer.cs
- PageThemeCodeDomTreeGenerator.cs
- FixedDocumentSequencePaginator.cs
- InputScopeNameConverter.cs
- _AcceptOverlappedAsyncResult.cs
- ClientScriptManager.cs
- LinqDataSourceDeleteEventArgs.cs
- StickyNoteHelper.cs
- Decoder.cs
- BaseParaClient.cs
- BrushConverter.cs
- StringHandle.cs
- CompositeScriptReference.cs
- HttpWebRequestElement.cs
- XmlSchemaDatatype.cs
- BrowserCapabilitiesFactoryBase.cs
- WrapPanel.cs
- DataGridViewTopLeftHeaderCell.cs
- XpsDigitalSignature.cs
- oledbmetadatacollectionnames.cs
- ColorMatrix.cs
- XmlAutoDetectWriter.cs
- SQLRoleProvider.cs
- LayoutInformation.cs
- FileChangesMonitor.cs
- ASCIIEncoding.cs
- WeakReadOnlyCollection.cs
- ParsedAttributeCollection.cs
- GroupBoxDesigner.cs
- Formatter.cs
- WebConvert.cs
- SystemException.cs
- CodeStatement.cs
- RawStylusActions.cs
- DLinqTableProvider.cs
- DesignerRegion.cs
- StorageSetMapping.cs
- CompareValidator.cs
- ObjectContextServiceProvider.cs
- DBConnectionString.cs
- QueryTask.cs
- BaseCodePageEncoding.cs
- NativeCppClassAttribute.cs
- ProgressChangedEventArgs.cs
- ImagingCache.cs
- DispatchChannelSink.cs
- PreloadedPackages.cs
- PinProtectionHelper.cs
- InstanceLockedException.cs
- MemoryFailPoint.cs
- MenuItemCollection.cs
- PersonalizationStateInfoCollection.cs
- IntegerValidatorAttribute.cs
- ContentPresenter.cs
- AttributeXamlType.cs
- Rfc2898DeriveBytes.cs
- GridViewUpdateEventArgs.cs
- DataGridDetailsPresenterAutomationPeer.cs
- MetadataExporter.cs
- TextServicesManager.cs
- InputMethodStateTypeInfo.cs
- ApplicationBuildProvider.cs
- SHA1CryptoServiceProvider.cs
- DefaultPrintController.cs
- WsatTransactionInfo.cs
- DnsPermission.cs
- OpenFileDialog.cs
- HttpResponseHeader.cs
- Attributes.cs
- BamlLocalizer.cs
- MethodInfo.cs
- Icon.cs
- UpdateRecord.cs
- DocumentViewerConstants.cs
- PolicyChain.cs
- UriTemplatePathPartiallyEquivalentSet.cs
- BinaryObjectWriter.cs
- Selection.cs
- Image.cs
- SQLBinary.cs
- SqlDataSourceCommandParser.cs