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
- XmlUtf8RawTextWriter.cs
- DbParameterCollectionHelper.cs
- XmlSchemaComplexContent.cs
- BitmapMetadataBlob.cs
- CalendarDateChangedEventArgs.cs
- EntitySqlQueryCacheKey.cs
- ReadOnlyDataSourceView.cs
- EncodingInfo.cs
- PropertyEmitterBase.cs
- ExpressionDumper.cs
- MainMenu.cs
- CultureSpecificCharacterBufferRange.cs
- ExternalFile.cs
- SqlInternalConnectionTds.cs
- TypeSystem.cs
- EntitySqlQueryState.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- RemotingHelper.cs
- LogicalTreeHelper.cs
- ObservableDictionary.cs
- ScrollBar.cs
- ParserHooks.cs
- RangeValidator.cs
- SecurityContextKeyIdentifierClause.cs
- SafeSerializationManager.cs
- SimpleHandlerBuildProvider.cs
- RoleGroupCollectionEditor.cs
- UpdateCompiler.cs
- WebPartConnectionsDisconnectVerb.cs
- datacache.cs
- FileSecurity.cs
- MemberBinding.cs
- HyperLinkStyle.cs
- ApplicationHost.cs
- RowVisual.cs
- CopyAttributesAction.cs
- smtpconnection.cs
- XmlDataSourceView.cs
- ValueTypePropertyReference.cs
- Int16.cs
- BigInt.cs
- DataGridViewCellConverter.cs
- FileRegion.cs
- DefaultTraceListener.cs
- PersonalizationStateQuery.cs
- ContainerUIElement3D.cs
- QueryNode.cs
- Header.cs
- IODescriptionAttribute.cs
- LocationFactory.cs
- DesignerDataSourceView.cs
- SqlDataSourceQueryEditorForm.cs
- CodeTryCatchFinallyStatement.cs
- ControlLocalizer.cs
- CompilerGeneratedAttribute.cs
- RtType.cs
- IPHostEntry.cs
- CompModSwitches.cs
- Trustee.cs
- DesignerLoader.cs
- AutomationIdentifier.cs
- ServerType.cs
- SecurityListenerSettingsLifetimeManager.cs
- StructureChangedEventArgs.cs
- SecurityPolicySection.cs
- DrawToolTipEventArgs.cs
- PrintEvent.cs
- DbException.cs
- MatrixValueSerializer.cs
- _AcceptOverlappedAsyncResult.cs
- IsolatedStorage.cs
- CubicEase.cs
- FileRecordSequenceCompletedAsyncResult.cs
- DoubleAverageAggregationOperator.cs
- IsolatedStorageException.cs
- FormatConvertedBitmap.cs
- AnnotationResourceChangedEventArgs.cs
- PackageProperties.cs
- ServiceAuthorizationManager.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- DeviceContext.cs
- StrongNameMembershipCondition.cs
- WebPartExportVerb.cs
- FilteredAttributeCollection.cs
- OpenFileDialog.cs
- EdmProperty.cs
- CqlQuery.cs
- SystemParameters.cs
- RtfControlWordInfo.cs
- ParentQuery.cs
- MetadataSection.cs
- CacheEntry.cs
- FileLogRecordEnumerator.cs
- ItemType.cs
- ScriptReference.cs
- DoubleLinkList.cs
- ObjectItemLoadingSessionData.cs
- TypeNameConverter.cs
- webproxy.cs
- MemberProjectionIndex.cs