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
- DefaultValidator.cs
- SRDisplayNameAttribute.cs
- XmlChoiceIdentifierAttribute.cs
- ProcessModuleDesigner.cs
- IisTraceListener.cs
- EditorZoneAutoFormat.cs
- ObjectQueryState.cs
- Attributes.cs
- DisplayInformation.cs
- MiniMapControl.xaml.cs
- CalendarKeyboardHelper.cs
- ResourceCategoryAttribute.cs
- TypeConverterHelper.cs
- MultiplexingDispatchMessageFormatter.cs
- XmlArrayItemAttribute.cs
- WebException.cs
- IPEndPoint.cs
- DataBindEngine.cs
- IList.cs
- InternalEnumValidator.cs
- PopupControlService.cs
- TransformCollection.cs
- InternalControlCollection.cs
- CompiledELinqQueryState.cs
- TypeUtil.cs
- SimpleLine.cs
- ReferencedAssembly.cs
- MessageDecoder.cs
- InteropBitmapSource.cs
- AutomationIdentifierGuids.cs
- Wildcard.cs
- RestClientProxyHandler.cs
- ScrollChrome.cs
- HtmlSelect.cs
- CounterSampleCalculator.cs
- DiscoveryClientReferences.cs
- IncrementalCompileAnalyzer.cs
- ProbeMatchesCD1.cs
- ButtonChrome.cs
- SignatureResourcePool.cs
- GradientStop.cs
- HexParser.cs
- TabRenderer.cs
- ProofTokenCryptoHandle.cs
- ConfigurationSettings.cs
- DataGridViewHeaderCell.cs
- DynamicActivityProperty.cs
- SqlResolver.cs
- unsafenativemethodstextservices.cs
- ProvidePropertyAttribute.cs
- XsdBuilder.cs
- ParallelLoopState.cs
- FixedSOMFixedBlock.cs
- ToolStripMenuItem.cs
- BulletChrome.cs
- ActivityExecutorDelegateInfo.cs
- BindingManagerDataErrorEventArgs.cs
- WrappingXamlSchemaContext.cs
- TypeName.cs
- ReturnEventArgs.cs
- IncrementalCompileAnalyzer.cs
- WindowsToolbarItemAsMenuItem.cs
- FakeModelPropertyImpl.cs
- SslStream.cs
- ModelItemDictionaryImpl.cs
- StateDesigner.TransitionInfo.cs
- RowToFieldTransformer.cs
- SecureStringHasher.cs
- SqlDataSourceEnumerator.cs
- MachineKeyConverter.cs
- DbUpdateCommandTree.cs
- SSmlParser.cs
- StringCollection.cs
- SerializableTypeCodeDomSerializer.cs
- LoadedOrUnloadedOperation.cs
- IdentityValidationException.cs
- SrgsRuleRef.cs
- RuntimeConfigLKG.cs
- RSAPKCS1SignatureDeformatter.cs
- TreeViewItem.cs
- NodeCounter.cs
- MenuAutoFormat.cs
- SoapSchemaMember.cs
- SQLResource.cs
- IgnoreFileBuildProvider.cs
- Tag.cs
- WindowsTokenRoleProvider.cs
- Column.cs
- CommandID.cs
- UpdateTracker.cs
- Object.cs
- DocComment.cs
- PackageDigitalSignatureManager.cs
- TextEditorTyping.cs
- XhtmlBasicFormAdapter.cs
- Parameter.cs
- DesignerCapabilities.cs
- Serializer.cs
- DataGridViewCellStyleEditor.cs
- DataGridHeaderBorder.cs