Code:
/ FX-1434 / FX-1434 / 1.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
- NativeWindow.cs
- SqlFlattener.cs
- ExpressionBindings.cs
- XmlException.cs
- Point3DAnimationBase.cs
- CompilerWrapper.cs
- X509ChainElement.cs
- SQLSingle.cs
- BindStream.cs
- XPathSelfQuery.cs
- WorkflowQueuingService.cs
- RemoteWebConfigurationHost.cs
- TemplateBindingExpressionConverter.cs
- SystemInformation.cs
- OdbcDataReader.cs
- ComponentEvent.cs
- ControlDesignerState.cs
- StructuredTypeInfo.cs
- IgnorePropertiesAttribute.cs
- TextStore.cs
- PermissionToken.cs
- ByteKeyFrameCollection.cs
- BigInt.cs
- WindowsListViewGroup.cs
- CommandPlan.cs
- UiaCoreApi.cs
- ErrorProvider.cs
- Geometry3D.cs
- ScriptRegistrationManager.cs
- BaseCodeDomTreeGenerator.cs
- XmlEncodedRawTextWriter.cs
- SwitchAttribute.cs
- MetabaseServerConfig.cs
- Enum.cs
- BamlLocalizableResource.cs
- ProcessManager.cs
- SettingsBase.cs
- SecurityException.cs
- ControlValuePropertyAttribute.cs
- ArraySegment.cs
- UInt16Converter.cs
- TreeBuilderBamlTranslator.cs
- EventEntry.cs
- MultiSelectRootGridEntry.cs
- FindCriteria11.cs
- DecoderBestFitFallback.cs
- SqlConnection.cs
- SvcMapFileLoader.cs
- ListViewInsertedEventArgs.cs
- SqlUDTStorage.cs
- PropertyToken.cs
- ListViewTableCell.cs
- Claim.cs
- ListControlDesigner.cs
- PngBitmapEncoder.cs
- DataObjectMethodAttribute.cs
- ColumnReorderedEventArgs.cs
- JsonGlobals.cs
- GlobalItem.cs
- Attributes.cs
- WebPartConnection.cs
- WorkflowOperationInvoker.cs
- ContravarianceAdapter.cs
- HttpProfileBase.cs
- WebPartTransformer.cs
- XmlSchemaChoice.cs
- PipelineComponent.cs
- HtmlTextArea.cs
- CellPartitioner.cs
- SiteMapNode.cs
- ToolStripLocationCancelEventArgs.cs
- DriveNotFoundException.cs
- CertificateReferenceElement.cs
- Padding.cs
- Double.cs
- XmlQueryRuntime.cs
- TreeNodeMouseHoverEvent.cs
- HyperLinkStyle.cs
- CancellationTokenRegistration.cs
- DataObjectAttribute.cs
- WebEvents.cs
- NamedElement.cs
- VBCodeProvider.cs
- SystemIcmpV4Statistics.cs
- JavascriptCallbackBehaviorAttribute.cs
- ConstraintEnumerator.cs
- DecimalConverter.cs
- HttpCapabilitiesSectionHandler.cs
- PackageStore.cs
- ThumbAutomationPeer.cs
- UnauthorizedWebPart.cs
- TextElementCollection.cs
- MultitargetingHelpers.cs
- PolyLineSegment.cs
- InvokeWebService.cs
- ContextActivityUtils.cs
- XPathSelfQuery.cs
- XmlSyndicationContent.cs
- ViewGenerator.cs
- ContextMarshalException.cs