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
- NavigationWindowAutomationPeer.cs
- Model3DCollection.cs
- FileLevelControlBuilderAttribute.cs
- XamlReaderConstants.cs
- AnonymousIdentificationSection.cs
- CheckBox.cs
- ElementInit.cs
- ClientTargetCollection.cs
- ClientClassGenerator.cs
- PrimitiveXmlSerializers.cs
- ProcessHostServerConfig.cs
- UTF7Encoding.cs
- PageContentCollection.cs
- HtmlInputControl.cs
- SlotInfo.cs
- XslTransformFileEditor.cs
- DefaultTraceListener.cs
- Win32Native.cs
- EventLogSession.cs
- XmlnsCache.cs
- DataGridViewTextBoxCell.cs
- DataSourceXmlTextReader.cs
- InternalConfigEventArgs.cs
- Activator.cs
- Transform.cs
- IntSecurity.cs
- PowerStatus.cs
- DataBindEngine.cs
- WorkflowRuntimeService.cs
- MiniConstructorInfo.cs
- AxisAngleRotation3D.cs
- QualificationDataItem.cs
- VirtualizingPanel.cs
- ApplicationSettingsBase.cs
- _HelperAsyncResults.cs
- CompileXomlTask.cs
- FixedSOMSemanticBox.cs
- SequenceDesignerAccessibleObject.cs
- ReaderWriterLock.cs
- Rect.cs
- VisualStyleRenderer.cs
- RC2CryptoServiceProvider.cs
- RegistryDataKey.cs
- SafeLocalAllocation.cs
- DataGridViewBindingCompleteEventArgs.cs
- FreezableOperations.cs
- InputMethod.cs
- GlyphTypeface.cs
- ModelUtilities.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- CriticalHandle.cs
- SQLBinary.cs
- VideoDrawing.cs
- AppSettingsSection.cs
- ContainerActivationHelper.cs
- DbProviderFactoriesConfigurationHandler.cs
- SqlDelegatedTransaction.cs
- ExpressionTable.cs
- SynchronizingStream.cs
- SiteMapDataSourceView.cs
- loginstatus.cs
- DateTimeValueSerializerContext.cs
- RequiredAttributeAttribute.cs
- LicenseContext.cs
- MouseButton.cs
- XDeferredAxisSource.cs
- ImageMetadata.cs
- ViewBox.cs
- ControlIdConverter.cs
- EncodingStreamWrapper.cs
- SystemResourceKey.cs
- DXD.cs
- SchemaNamespaceManager.cs
- FloaterParaClient.cs
- Signature.cs
- Point3DCollection.cs
- ErrorStyle.cs
- ValidationErrorEventArgs.cs
- EditorBrowsableAttribute.cs
- Margins.cs
- TdsParserHelperClasses.cs
- IsolationInterop.cs
- RegexMatchCollection.cs
- TextContainerHelper.cs
- ScrollContentPresenter.cs
- CategoryNameCollection.cs
- Component.cs
- DataGridViewButtonCell.cs
- AttributeCollection.cs
- TreeViewHitTestInfo.cs
- PagerSettings.cs
- RbTree.cs
- ServiceModelInstallComponent.cs
- PathData.cs
- MsmqIntegrationBinding.cs
- WorkBatch.cs
- SecurityUniqueId.cs
- XmlNotation.cs
- StyleModeStack.cs
- RichTextBoxConstants.cs