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
- ConstraintConverter.cs
- WorkflowDesignerColors.cs
- ObjectHandle.cs
- UIElement3D.cs
- ListViewInsertionMark.cs
- RtfNavigator.cs
- IDispatchConstantAttribute.cs
- SqlProviderServices.cs
- WindowsIPAddress.cs
- DataGridViewDataErrorEventArgs.cs
- XmlTextReader.cs
- SchemaAttDef.cs
- QueryCacheManager.cs
- SessionEndedEventArgs.cs
- DataGridViewLayoutData.cs
- ListView.cs
- IdleTimeoutMonitor.cs
- WeakKeyDictionary.cs
- LinearGradientBrush.cs
- BoundConstants.cs
- DocumentsTrace.cs
- WorkflowMarkupSerializationManager.cs
- Pts.cs
- BinaryFormatter.cs
- HwndHostAutomationPeer.cs
- NotifyIcon.cs
- Internal.cs
- EntityClientCacheKey.cs
- TextRangeAdaptor.cs
- TextBoxBase.cs
- StateBag.cs
- SourceSwitch.cs
- StylusPointProperty.cs
- XmlWhitespace.cs
- EFTableProvider.cs
- ReadWriteObjectLock.cs
- ScriptingJsonSerializationSection.cs
- TransformGroup.cs
- HttpStreamXmlDictionaryReader.cs
- FigureParaClient.cs
- UIntPtr.cs
- DataKeyCollection.cs
- ComPlusTypeValidator.cs
- ReturnEventArgs.cs
- ThreadExceptionDialog.cs
- Opcode.cs
- EncodingDataItem.cs
- SaveFileDialogDesigner.cs
- PropertyConverter.cs
- SemaphoreFullException.cs
- EndpointConfigContainer.cs
- ServiceBuildProvider.cs
- TableAutomationPeer.cs
- SessionStateModule.cs
- SqlDataReader.cs
- VectorKeyFrameCollection.cs
- EUCJPEncoding.cs
- ValueUnavailableException.cs
- TextContainerChangeEventArgs.cs
- SecUtil.cs
- ImageListUtils.cs
- ZipIOCentralDirectoryBlock.cs
- IfAction.cs
- OdbcStatementHandle.cs
- TypeBuilder.cs
- QuaternionConverter.cs
- WindowInteractionStateTracker.cs
- HtmlTitle.cs
- XmlSchemaAttributeGroup.cs
- DateTimePicker.cs
- DataSet.cs
- AxHostDesigner.cs
- FeatureManager.cs
- AnimationStorage.cs
- WindowCollection.cs
- Helpers.cs
- PropertyOrder.cs
- ReflectionTypeLoadException.cs
- Configuration.cs
- FlowDocumentReader.cs
- Win32SafeHandles.cs
- WebException.cs
- CDSCollectionETWBCLProvider.cs
- TrackingServices.cs
- SqlBuilder.cs
- EntitySetDataBindingList.cs
- EntityDesignerBuildProvider.cs
- SystemResourceHost.cs
- Timer.cs
- CDSCollectionETWBCLProvider.cs
- StdValidatorsAndConverters.cs
- DataSvcMapFile.cs
- BuildProvidersCompiler.cs
- CompositeDispatchFormatter.cs
- XamlSerializer.cs
- SuppressMessageAttribute.cs
- SecurityIdentifierElement.cs
- LabelEditEvent.cs
- EventManager.cs
- WinFormsSecurity.cs