Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- GraphicsContainer.cs
- StateMachineDesignerPaint.cs
- UpdatePanelTriggerCollection.cs
- DecoderFallbackWithFailureFlag.cs
- RelationshipWrapper.cs
- DataKeyCollection.cs
- CounterSample.cs
- Set.cs
- GradientStop.cs
- BamlTreeMap.cs
- MasterPage.cs
- _SpnDictionary.cs
- CompModHelpers.cs
- EdmRelationshipRoleAttribute.cs
- parserscommon.cs
- ConfigXmlText.cs
- SolidBrush.cs
- StorageEntitySetMapping.cs
- HtmlTernaryTree.cs
- System.Data.OracleClient_BID.cs
- SwitchElementsCollection.cs
- Color.cs
- PagePropertiesChangingEventArgs.cs
- EmptyArray.cs
- SecurityContextKeyIdentifierClause.cs
- Number.cs
- DataGridViewRow.cs
- ConsumerConnectionPoint.cs
- OdbcStatementHandle.cs
- StrongNameKeyPair.cs
- ConnectionPointCookie.cs
- IERequestCache.cs
- DoubleLinkListEnumerator.cs
- WindowsTokenRoleProvider.cs
- CryptoApi.cs
- CompareInfo.cs
- RadioButtonStandardAdapter.cs
- DataGridToolTip.cs
- ContentAlignmentEditor.cs
- MethodBuilder.cs
- XmlNavigatorStack.cs
- SatelliteContractVersionAttribute.cs
- AssociatedControlConverter.cs
- EventNotify.cs
- PageCatalogPartDesigner.cs
- CompilationSection.cs
- RecipientServiceModelSecurityTokenRequirement.cs
- LinkClickEvent.cs
- FormView.cs
- Boolean.cs
- XslVisitor.cs
- BuilderPropertyEntry.cs
- SecurityKeyEntropyMode.cs
- SortedList.cs
- EncryptedKeyIdentifierClause.cs
- BamlRecordReader.cs
- ParallelTimeline.cs
- PostBackOptions.cs
- AncestorChangedEventArgs.cs
- ThreadPool.cs
- PhysicalOps.cs
- XmlQueryTypeFactory.cs
- ThicknessAnimationBase.cs
- SystemWebSectionGroup.cs
- translator.cs
- WebPartConnectionsCancelEventArgs.cs
- ServiceNameElement.cs
- InputMethodStateTypeInfo.cs
- ViewGenerator.cs
- AuthenticatedStream.cs
- ObjectViewListener.cs
- TableLayoutPanelCellPosition.cs
- _LocalDataStore.cs
- _FtpControlStream.cs
- SqlRewriteScalarSubqueries.cs
- Blend.cs
- OdbcException.cs
- ColorTranslator.cs
- Query.cs
- DataBoundControlActionList.cs
- WorkflowApplicationIdleEventArgs.cs
- EventsTab.cs
- ConfigXmlElement.cs
- QueryOpcode.cs
- MembershipAdapter.cs
- ReferenceService.cs
- BCryptNative.cs
- SHA1CryptoServiceProvider.cs
- PerformanceCountersElement.cs
- CompiledQuery.cs
- Utility.cs
- AutomationEvent.cs
- ConfigurationValidatorBase.cs
- SafeThemeHandle.cs
- RadioButton.cs
- SourceChangedEventArgs.cs
- DebugManager.cs
- CheckBox.cs
- TypeElement.cs
- InvokeMemberBinder.cs