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
- CompositeControlDesigner.cs
- ImageBrush.cs
- AuthenticatingEventArgs.cs
- DriveNotFoundException.cs
- ContextActivityUtils.cs
- CodeCompiler.cs
- XhtmlBasicPanelAdapter.cs
- GridViewCellAutomationPeer.cs
- GC.cs
- wgx_exports.cs
- HttpRuntimeSection.cs
- InputScopeAttribute.cs
- RecognizedPhrase.cs
- DelayedRegex.cs
- InstanceDescriptor.cs
- BindingsCollection.cs
- ValidationPropertyAttribute.cs
- StylusPointDescription.cs
- WebPartTransformerCollection.cs
- BrowsableAttribute.cs
- ProtocolElement.cs
- DoubleCollectionConverter.cs
- PartBasedPackageProperties.cs
- Point4DValueSerializer.cs
- TextRange.cs
- DeferrableContent.cs
- WebReferencesBuildProvider.cs
- Style.cs
- Partitioner.cs
- DynamicPropertyHolder.cs
- ConnectionPoint.cs
- CreateUserErrorEventArgs.cs
- TriggerCollection.cs
- FontUnit.cs
- ToolStripPanelRow.cs
- RequestCacheManager.cs
- EdgeModeValidation.cs
- ArithmeticException.cs
- TrackingExtract.cs
- WeakReferenceList.cs
- WebAdminConfigurationHelper.cs
- UnsafeNativeMethods.cs
- X509ChainElement.cs
- ValidationSummary.cs
- OracleMonthSpan.cs
- FamilyMapCollection.cs
- BuildResult.cs
- EntityCollection.cs
- WindowsTab.cs
- StaticExtension.cs
- SystemIPv6InterfaceProperties.cs
- StackOverflowException.cs
- ICollection.cs
- DefaultSerializationProviderAttribute.cs
- User.cs
- XPathConvert.cs
- MatrixUtil.cs
- XmlCountingReader.cs
- AccessibilityHelperForXpWin2k3.cs
- ClientTarget.cs
- ConstructorExpr.cs
- AuthorizationRule.cs
- XmlSchemaChoice.cs
- DESCryptoServiceProvider.cs
- ScrollPattern.cs
- DataBoundControlAdapter.cs
- GridViewUpdateEventArgs.cs
- SetUserPreferenceRequest.cs
- DataTablePropertyDescriptor.cs
- PointLightBase.cs
- PropertyRecord.cs
- LayoutEvent.cs
- DES.cs
- BamlBinaryReader.cs
- FontDialog.cs
- _CommandStream.cs
- TrackingQuery.cs
- SqlDataSourceSelectingEventArgs.cs
- ListSortDescription.cs
- Select.cs
- InvokeMethod.cs
- Expressions.cs
- EventToken.cs
- LabelLiteral.cs
- ConfigurationValues.cs
- SymbolEqualComparer.cs
- StackBuilderSink.cs
- CredentialCache.cs
- OleDbError.cs
- SoapHeaderException.cs
- ViewSimplifier.cs
- baseshape.cs
- CopyOnWriteList.cs
- FixedSOMPageElement.cs
- KnownBoxes.cs
- CharacterMetricsDictionary.cs
- OdbcStatementHandle.cs
- DataGridViewRow.cs
- ApplyImportsAction.cs
- SerialPinChanges.cs