Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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
- SystemColors.cs
- WorkflowTransactionOptions.cs
- commandenforcer.cs
- thaishape.cs
- HtmlHead.cs
- EncodingDataItem.cs
- SuppressMergeCheckAttribute.cs
- TypeConverterHelper.cs
- ContextMenuService.cs
- XmlReturnReader.cs
- HtmlTable.cs
- ToolStripArrowRenderEventArgs.cs
- DataBoundControlHelper.cs
- ConstructorBuilder.cs
- UrlRoutingModule.cs
- XPathNode.cs
- PropertyValueUIItem.cs
- StrokeCollection.cs
- ASCIIEncoding.cs
- XLinq.cs
- XmlUrlResolver.cs
- InkCanvas.cs
- DataGridTablesFactory.cs
- XhtmlBasicListAdapter.cs
- ValidationEventArgs.cs
- VirtualPath.cs
- OracleTimeSpan.cs
- OleDbStruct.cs
- FixedFindEngine.cs
- DataFieldEditor.cs
- PageRouteHandler.cs
- OracleConnection.cs
- CodeStatementCollection.cs
- SystemIPInterfaceProperties.cs
- Rotation3DAnimation.cs
- DispatchWrapper.cs
- ParameterBuilder.cs
- Helper.cs
- TraceContextEventArgs.cs
- FamilyCollection.cs
- GraphicsPathIterator.cs
- IsolatedStorage.cs
- ComponentEditorPage.cs
- UndoEngine.cs
- ProtocolsSection.cs
- GridViewPageEventArgs.cs
- ChooseAction.cs
- DynamicFilter.cs
- SystemResourceKey.cs
- XmlChoiceIdentifierAttribute.cs
- GeneralTransform.cs
- SecurityCriticalDataForSet.cs
- IsolationInterop.cs
- AuthenticatingEventArgs.cs
- GenerateScriptTypeAttribute.cs
- WindowsAuthenticationEventArgs.cs
- StyleXamlParser.cs
- AnnouncementInnerClient11.cs
- KeyBinding.cs
- DateTimeUtil.cs
- Common.cs
- RectAnimationUsingKeyFrames.cs
- TabItem.cs
- StringUtil.cs
- WindowsAuthenticationEventArgs.cs
- ShaderEffect.cs
- BooleanProjectedSlot.cs
- mongolianshape.cs
- EntityException.cs
- Helpers.cs
- ListCollectionView.cs
- SchemaImporter.cs
- XmlTypeAttribute.cs
- PropertiesTab.cs
- WindowsAltTab.cs
- DataControlFieldCollection.cs
- DeflateStreamAsyncResult.cs
- DbReferenceCollection.cs
- DocumentReference.cs
- PriorityItem.cs
- Stylesheet.cs
- SessionStateItemCollection.cs
- LinearKeyFrames.cs
- PageTheme.cs
- DispatchWrapper.cs
- ExtendedPropertyCollection.cs
- RootBuilder.cs
- TriggerCollection.cs
- OdbcDataReader.cs
- VSWCFServiceContractGenerator.cs
- Mappings.cs
- MsmqIntegrationValidationBehavior.cs
- HighlightVisual.cs
- CheckBox.cs
- TaskCanceledException.cs
- VBIdentifierName.cs
- TableCellCollection.cs
- InvalidFilterCriteriaException.cs
- ResourceType.cs
- ByteStorage.cs