Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Xml / System / Xml / XPath / Internal / ParentQuery.cs / 1305376 / ParentQuery.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; using System.Globalization; using System.Collections.Generic; internal sealed class ParentQuery : CacheAxisQuery { public ParentQuery(Query qyInput, string Name, string Prefix, XPathNodeType Type) : base(qyInput, Name, Prefix, Type) {} private ParentQuery(ParentQuery other) : base(other) { } public override object Evaluate(XPathNodeIterator context) { base.Evaluate(context); // XPathNavigator input; while ((input = qyInput.Advance()) != null) { input = input.Clone(); if (input.MoveToParent()) { if (matches(input)) { Insert(outputBuffer, input); } } } return this; } public override XPathNodeIterator Clone() { return new ParentQuery(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
- XmlNamespaceMappingCollection.cs
- DesignBinding.cs
- DataControlField.cs
- PtsHost.cs
- HttpProcessUtility.cs
- ToolStripOverflow.cs
- ObjRef.cs
- SqlDataSourceFilteringEventArgs.cs
- WebPartVerbCollection.cs
- SQLBinary.cs
- Drawing.cs
- tibetanshape.cs
- SemaphoreFullException.cs
- DateTimeFormatInfoScanner.cs
- autovalidator.cs
- AlignmentYValidation.cs
- TextDocumentView.cs
- SQLInt64.cs
- TextSearch.cs
- ResourceDescriptionAttribute.cs
- FileRegion.cs
- NumericPagerField.cs
- RawAppCommandInputReport.cs
- PolicyLevel.cs
- TextRangeSerialization.cs
- ClonableStack.cs
- MetadataCache.cs
- Update.cs
- SmiRequestExecutor.cs
- VersionedStream.cs
- EnumerableWrapperWeakToStrong.cs
- SmiContextFactory.cs
- TranslateTransform.cs
- AccessControlList.cs
- LinearGradientBrush.cs
- CacheOutputQuery.cs
- GridViewDesigner.cs
- BaseDataListActionList.cs
- HttpWriter.cs
- Geometry3D.cs
- DragCompletedEventArgs.cs
- ContentDisposition.cs
- RijndaelManaged.cs
- BufferAllocator.cs
- CommonBehaviorsSection.cs
- CreateUserWizard.cs
- MenuItemCollectionEditor.cs
- TemplateXamlTreeBuilder.cs
- EntityContainer.cs
- MetadataArtifactLoader.cs
- Rect3DConverter.cs
- BitStack.cs
- DictationGrammar.cs
- WebPartTransformerCollection.cs
- TypeViewSchema.cs
- MatrixKeyFrameCollection.cs
- OrderedDictionaryStateHelper.cs
- SafeNativeMethodsMilCoreApi.cs
- OperandQuery.cs
- StringPropertyBuilder.cs
- SQLSingle.cs
- RoutedPropertyChangedEventArgs.cs
- DownloadProgressEventArgs.cs
- __Filters.cs
- CqlGenerator.cs
- DoubleConverter.cs
- HtmlTable.cs
- XmlUtf8RawTextWriter.cs
- FormsAuthenticationUser.cs
- TabPanel.cs
- DbTransaction.cs
- AddInPipelineAttributes.cs
- ObjectViewListener.cs
- HostedImpersonationContext.cs
- DeploymentSection.cs
- EventLogHandle.cs
- MonitoringDescriptionAttribute.cs
- DriveNotFoundException.cs
- RegistryExceptionHelper.cs
- NavigationExpr.cs
- followingsibling.cs
- OracleMonthSpan.cs
- InvokePattern.cs
- EmptyReadOnlyDictionaryInternal.cs
- CorrelationResolver.cs
- WCFModelStrings.Designer.cs
- SqlBulkCopyColumnMapping.cs
- IndexExpression.cs
- CodeRemoveEventStatement.cs
- RegexMatchCollection.cs
- ApplicationManager.cs
- BoolExpression.cs
- XmlCountingReader.cs
- InternalSafeNativeMethods.cs
- ReturnValue.cs
- TraceContextRecord.cs
- XmlSchemaGroup.cs
- ContainsRowNumberChecker.cs
- RandomNumberGenerator.cs
- SHA256Managed.cs