Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / Xml / System / Xml / XPath / Internal / ParentQuery.cs / 1 / 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. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WmlImageAdapter.cs
- ProfileParameter.cs
- MenuItemAutomationPeer.cs
- CompModSwitches.cs
- DataColumnSelectionConverter.cs
- XamlUtilities.cs
- UnmanagedMemoryStreamWrapper.cs
- Soap.cs
- XmlSchemaSet.cs
- SQlBooleanStorage.cs
- CheckableControlBaseAdapter.cs
- StringConcat.cs
- SemanticKeyElement.cs
- ParameterDataSourceExpression.cs
- ExternalCalls.cs
- ListSortDescriptionCollection.cs
- BufferAllocator.cs
- sortedlist.cs
- PerCallInstanceContextProvider.cs
- DefaultValueAttribute.cs
- OperationCanceledException.cs
- BamlResourceSerializer.cs
- RequestCacheValidator.cs
- QueryExtender.cs
- BoolExpression.cs
- ValueTypeFixupInfo.cs
- ContextItem.cs
- EncryptedPackageFilter.cs
- XmlAttributeCache.cs
- TextBlockAutomationPeer.cs
- DirectionalLight.cs
- DataGridViewCellStyleEditor.cs
- TreeViewDesigner.cs
- FormsAuthenticationConfiguration.cs
- ISCIIEncoding.cs
- DelegateBodyWriter.cs
- PrincipalPermission.cs
- PageStatePersister.cs
- EntityDataSourceDesigner.cs
- EllipticalNodeOperations.cs
- NativeWindow.cs
- LineServicesCallbacks.cs
- RegistryPermission.cs
- UInt32Storage.cs
- WebPartsSection.cs
- ValueExpressions.cs
- CompareInfo.cs
- TreeNodeCollection.cs
- SqlCommandBuilder.cs
- EntityModelBuildProvider.cs
- IconConverter.cs
- UInt64Storage.cs
- XPathDocumentNavigator.cs
- StructuredProperty.cs
- FloatAverageAggregationOperator.cs
- TargetParameterCountException.cs
- LogEntryDeserializer.cs
- ImmutableCollection.cs
- BaseResourcesBuildProvider.cs
- DebugView.cs
- Rss20ItemFormatter.cs
- DataRecord.cs
- SqlLiftWhereClauses.cs
- DecimalAverageAggregationOperator.cs
- SoapTypeAttribute.cs
- StringHandle.cs
- InputScopeAttribute.cs
- SystemWebSectionGroup.cs
- wpf-etw.cs
- DataColumnMappingCollection.cs
- HtmlTable.cs
- MetadataException.cs
- VisualCollection.cs
- EdgeProfileValidation.cs
- Cursors.cs
- SQLInt32.cs
- TabControl.cs
- WebServiceErrorEvent.cs
- GridViewUpdatedEventArgs.cs
- StandardTransformFactory.cs
- ZipFileInfo.cs
- HandleRef.cs
- DataTableMapping.cs
- SymbolEqualComparer.cs
- SQLByte.cs
- DiscoveryMessageSequenceGenerator.cs
- CssTextWriter.cs
- WebPartChrome.cs
- RtfToXamlReader.cs
- Rectangle.cs
- Utils.cs
- MessageFilter.cs
- SystemIPv6InterfaceProperties.cs
- StylusPointProperties.cs
- DispatcherTimer.cs
- RightsManagementInformation.cs
- RichTextBox.cs
- FormClosedEvent.cs
- VectorCollection.cs
- XmlSchemaComplexContentExtension.cs