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
- TraceRecord.cs
- SpellerHighlightLayer.cs
- CodeLabeledStatement.cs
- HttpCacheParams.cs
- XPathException.cs
- wgx_render.cs
- CacheHelper.cs
- TraceListener.cs
- ResourceKey.cs
- SaveFileDialogDesigner.cs
- SqlCommand.cs
- EventQueueState.cs
- DBSchemaRow.cs
- NonBatchDirectoryCompiler.cs
- DataTableReader.cs
- Activity.cs
- DrawTreeNodeEventArgs.cs
- XmlSchemaParticle.cs
- BoolExpr.cs
- WmlSelectionListAdapter.cs
- CodeSubDirectoriesCollection.cs
- ConnectionPoolManager.cs
- BoundPropertyEntry.cs
- SqlBulkCopyColumnMapping.cs
- TextServicesLoader.cs
- Model3DGroup.cs
- Dictionary.cs
- InnerItemCollectionView.cs
- ObjectParameter.cs
- IgnoreFlushAndCloseStream.cs
- RuntimeConfig.cs
- ParameterToken.cs
- SecurityResources.cs
- OdbcDataReader.cs
- ellipse.cs
- XmlResolver.cs
- Pkcs7Recipient.cs
- Helper.cs
- SurrogateSelector.cs
- TargetPerspective.cs
- ToolStripPanelRow.cs
- TextInfo.cs
- ScalarConstant.cs
- HttpListenerException.cs
- FrameworkTextComposition.cs
- BehaviorEditorPart.cs
- FormsAuthentication.cs
- PanelDesigner.cs
- SiteMapDataSourceDesigner.cs
- VerticalAlignConverter.cs
- HyperLinkColumn.cs
- DefaultValidator.cs
- LayoutEditorPart.cs
- TextTreeTextElementNode.cs
- FormatException.cs
- Image.cs
- CellPartitioner.cs
- GeneralTransform.cs
- LayoutEngine.cs
- SqlDataRecord.cs
- WebControlAdapter.cs
- TransactionChannel.cs
- XmlSchemaAttributeGroup.cs
- NumberFunctions.cs
- XPathAncestorQuery.cs
- TabletDeviceInfo.cs
- BuildProvidersCompiler.cs
- QueryContinueDragEvent.cs
- MediaSystem.cs
- ReadContentAsBinaryHelper.cs
- BitmapEffectDrawing.cs
- VariableQuery.cs
- DiagnosticEventProvider.cs
- RIPEMD160.cs
- VolatileEnlistmentState.cs
- SizeAnimationBase.cs
- SchemaAttDef.cs
- Cell.cs
- HandleExceptionArgs.cs
- WebResponse.cs
- ServiceNameCollection.cs
- DataExpression.cs
- ObjectStateEntry.cs
- XmlSchemaSet.cs
- InkCollectionBehavior.cs
- ImpersonateTokenRef.cs
- NoneExcludedImageIndexConverter.cs
- WebPartDisplayModeCancelEventArgs.cs
- LingerOption.cs
- XmlKeywords.cs
- PackWebRequestFactory.cs
- HashCryptoHandle.cs
- HitTestDrawingContextWalker.cs
- StorageBasedPackageProperties.cs
- InvalidFilterCriteriaException.cs
- LinkedDataMemberFieldEditor.cs
- OleDbConnectionFactory.cs
- TypeTypeConverter.cs
- recordstatefactory.cs
- LinqToSqlWrapper.cs