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
- WindowsScroll.cs
- TextEditorDragDrop.cs
- TemplateParser.cs
- SystemPens.cs
- MenuItemBinding.cs
- Message.cs
- LoadedOrUnloadedOperation.cs
- DefaultTraceListener.cs
- BaseDataList.cs
- IntranetCredentialPolicy.cs
- TdsParserSessionPool.cs
- ThreadExceptionDialog.cs
- QueryableDataSourceEditData.cs
- OleDbRowUpdatedEvent.cs
- UriTemplateVariablePathSegment.cs
- SqlClientWrapperSmiStreamChars.cs
- Geometry.cs
- SizeFConverter.cs
- ObjectDataSourceSelectingEventArgs.cs
- NameValuePair.cs
- DataGridViewSortCompareEventArgs.cs
- RootBrowserWindowProxy.cs
- Timeline.cs
- RSAPKCS1KeyExchangeFormatter.cs
- AggregateException.cs
- GraphicsState.cs
- ControlPaint.cs
- XmlCountingReader.cs
- Compiler.cs
- indexingfiltermarshaler.cs
- SettingsContext.cs
- SrgsDocument.cs
- ConsumerConnectionPoint.cs
- GenerateTemporaryTargetAssembly.cs
- FontFaceLayoutInfo.cs
- XmlEncoding.cs
- CmsUtils.cs
- ClaimSet.cs
- ColorTranslator.cs
- ConnectionStringEditor.cs
- BindingRestrictions.cs
- AstNode.cs
- SchemaCollectionPreprocessor.cs
- TrustLevel.cs
- FixedPosition.cs
- UniformGrid.cs
- EmptyImpersonationContext.cs
- SynchronizedDispatch.cs
- codemethodreferenceexpression.cs
- ToolStripRenderer.cs
- UrlAuthFailedErrorFormatter.cs
- FixedSOMFixedBlock.cs
- DataGridViewSortCompareEventArgs.cs
- XmlSchemaDatatype.cs
- CodeExpressionCollection.cs
- SerialStream.cs
- NetNamedPipeBindingElement.cs
- SimpleTypeResolver.cs
- SynchronizedInputAdaptor.cs
- CorrelationScope.cs
- _ShellExpression.cs
- Screen.cs
- OdbcHandle.cs
- SectionInput.cs
- ResourceWriter.cs
- AutomationPatternInfo.cs
- AnonymousIdentificationSection.cs
- AuthorizationRuleCollection.cs
- PolicyStatement.cs
- Config.cs
- ExpressionSelection.cs
- NavigationFailedEventArgs.cs
- SrgsElementFactory.cs
- SQLDecimal.cs
- FileDataSourceCache.cs
- ArrayElementGridEntry.cs
- Events.cs
- GridViewItemAutomationPeer.cs
- IssuedTokenParametersEndpointAddressElement.cs
- XmlSchemaSet.cs
- GregorianCalendar.cs
- Selection.cs
- ToolConsole.cs
- AdapterDictionary.cs
- ListBase.cs
- State.cs
- BamlRecordHelper.cs
- StrongNameMembershipCondition.cs
- MLangCodePageEncoding.cs
- AccessDataSource.cs
- OracleParameterBinding.cs
- HelpFileFileNameEditor.cs
- SingleObjectCollection.cs
- XPathNavigatorReader.cs
- ToolTipAutomationPeer.cs
- TransformerTypeCollection.cs
- DllNotFoundException.cs
- FormatException.cs
- DataFormat.cs
- NotConverter.cs