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
- SerialErrors.cs
- DesignerCategoryAttribute.cs
- CheckedPointers.cs
- SelectionManager.cs
- KnownBoxes.cs
- SchemaCollectionCompiler.cs
- QueryOperatorEnumerator.cs
- SrgsRulesCollection.cs
- PackWebRequest.cs
- SelectedDatesCollection.cs
- ProgressBarHighlightConverter.cs
- Dictionary.cs
- NoClickablePointException.cs
- BaseValidator.cs
- OpenFileDialog.cs
- Avt.cs
- LinqDataView.cs
- EmptyQuery.cs
- FontCollection.cs
- WebPartHelpVerb.cs
- WmlPanelAdapter.cs
- Vector3D.cs
- ProfilePropertyNameValidator.cs
- WasEndpointConfigContainer.cs
- FixedSOMPage.cs
- XmlQualifiedName.cs
- SortableBindingList.cs
- GraphicsContext.cs
- PtsHelper.cs
- EncryptedPackage.cs
- HuffCodec.cs
- DataGridViewButtonColumn.cs
- TypeUtil.cs
- AutoGeneratedFieldProperties.cs
- ClientBuildManagerCallback.cs
- DBDataPermission.cs
- ViewUtilities.cs
- DCSafeHandle.cs
- DaylightTime.cs
- StringFunctions.cs
- HtmlTableCellCollection.cs
- OutputCacheSettings.cs
- DBCommand.cs
- ProfileEventArgs.cs
- MultiViewDesigner.cs
- DataStreamFromComStream.cs
- SHA1Cng.cs
- CodeConstructor.cs
- IntegerValidatorAttribute.cs
- InvalidOleVariantTypeException.cs
- SaveFileDialog.cs
- TraceData.cs
- DocumentViewerAutomationPeer.cs
- DataObjectAttribute.cs
- XDRSchema.cs
- ApplicationDirectory.cs
- BinaryFormatterWriter.cs
- DataBinder.cs
- ServiceHostFactory.cs
- BamlStream.cs
- SerializationException.cs
- StrongNameKeyPair.cs
- Group.cs
- RedistVersionInfo.cs
- InvokeBinder.cs
- WorkflowInstanceExtensionCollection.cs
- LongSumAggregationOperator.cs
- DataGridViewColumnEventArgs.cs
- SystemTcpStatistics.cs
- ThreadInterruptedException.cs
- XmlUtil.cs
- ExeConfigurationFileMap.cs
- AudioSignalProblemOccurredEventArgs.cs
- RoutedEventHandlerInfo.cs
- MappingItemCollection.cs
- RadioButton.cs
- DataRecordInternal.cs
- BaseProcessProtocolHandler.cs
- WebEvents.cs
- ContractBase.cs
- ExtendedProperty.cs
- CaseKeyBox.ViewModel.cs
- SoapSchemaExporter.cs
- Transform.cs
- IOException.cs
- LogicalExpr.cs
- WriteableBitmap.cs
- NumberSubstitution.cs
- TextTreePropertyUndoUnit.cs
- ApplicationSecurityInfo.cs
- IDispatchConstantAttribute.cs
- DoubleAnimationUsingKeyFrames.cs
- EntityDataSourceSelectedEventArgs.cs
- DecimalStorage.cs
- LZCodec.cs
- PeerNameRegistration.cs
- SoapElementAttribute.cs
- PrimitiveType.cs
- BoundingRectTracker.cs
- BookmarkResumptionRecord.cs