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
- WebExceptionStatus.cs
- DataConnectionHelper.cs
- AssemblyCacheEntry.cs
- FunctionImportElement.cs
- DPTypeDescriptorContext.cs
- CopyNodeSetAction.cs
- Calendar.cs
- AdornerDecorator.cs
- SafeRightsManagementEnvironmentHandle.cs
- PackageRelationshipSelector.cs
- Clock.cs
- SpellerHighlightLayer.cs
- CounterNameConverter.cs
- List.cs
- ElementHost.cs
- WebConfigurationHost.cs
- VersionedStreamOwner.cs
- BamlResourceSerializer.cs
- IgnoreSection.cs
- SecurityStateEncoder.cs
- HttpVersion.cs
- TargetParameterCountException.cs
- EncoderParameter.cs
- DataGridViewRowCollection.cs
- FileLevelControlBuilderAttribute.cs
- DbConnectionPool.cs
- XmlObjectSerializerWriteContext.cs
- ListViewVirtualItemsSelectionRangeChangedEvent.cs
- SafeSecurityHandles.cs
- MetadataHelper.cs
- OrCondition.cs
- HttpCapabilitiesSectionHandler.cs
- Stackframe.cs
- __TransparentProxy.cs
- SizeAnimationClockResource.cs
- FileDialogPermission.cs
- EnumValAlphaComparer.cs
- UnhandledExceptionEventArgs.cs
- MenuScrollingVisibilityConverter.cs
- httpserverutility.cs
- ImageCodecInfo.cs
- AndCondition.cs
- XPathExpr.cs
- TextBoxBase.cs
- SimpleBitVector32.cs
- TextBox.cs
- UnsafePeerToPeerMethods.cs
- _PooledStream.cs
- Queue.cs
- CoreChannel.cs
- DecimalConverter.cs
- EntityFunctions.cs
- TextTreeUndoUnit.cs
- SessionStateItemCollection.cs
- DynamicActionMessageFilter.cs
- XmlQueryStaticData.cs
- HwndHostAutomationPeer.cs
- HtmlWindow.cs
- DBConcurrencyException.cs
- Registry.cs
- ToolStripDropDownClosingEventArgs.cs
- GcSettings.cs
- DatagridviewDisplayedBandsData.cs
- DbConnectionPoolGroupProviderInfo.cs
- DataAccessor.cs
- FieldMetadata.cs
- DataColumnMappingCollection.cs
- XmlQuerySequence.cs
- SparseMemoryStream.cs
- InputLanguageEventArgs.cs
- InheritanceContextHelper.cs
- RequestBringIntoViewEventArgs.cs
- TransactionTable.cs
- RepeaterItem.cs
- translator.cs
- FirewallWrapper.cs
- TypeConverterHelper.cs
- ExtensionWindow.cs
- TdsParserSessionPool.cs
- ProcessModule.cs
- StringFormat.cs
- XmlnsPrefixAttribute.cs
- TimeoutHelper.cs
- Helpers.cs
- DefaultPrintController.cs
- TypeSystemProvider.cs
- precedingsibling.cs
- MsmqAppDomainProtocolHandler.cs
- ContactManager.cs
- FixedSOMGroup.cs
- PlatformNotSupportedException.cs
- DescendentsWalker.cs
- BatchParser.cs
- DomNameTable.cs
- SeparatorAutomationPeer.cs
- TextRange.cs
- MenuItem.cs
- DefaultTextStoreTextComposition.cs
- PrinterResolution.cs
- StylusTip.cs