Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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. // //[....] //----------------------------------------------------------------------------- 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DoubleAnimationBase.cs
- DSACryptoServiceProvider.cs
- SelectionListDesigner.cs
- ListBindingConverter.cs
- BaseProcessor.cs
- Context.cs
- DEREncoding.cs
- EncoderParameters.cs
- ReflectionUtil.cs
- BindingListCollectionView.cs
- CultureSpecificCharacterBufferRange.cs
- XmlWellformedWriter.cs
- PrivateUnsafeNativeCompoundFileMethods.cs
- WebPartManagerInternals.cs
- CLSCompliantAttribute.cs
- UnsafeNativeMethods.cs
- SatelliteContractVersionAttribute.cs
- LambdaCompiler.Binary.cs
- FileNotFoundException.cs
- NumberFormatter.cs
- ProfileManager.cs
- BamlBinaryReader.cs
- TextEndOfParagraph.cs
- ReceiveActivity.cs
- AllMembershipCondition.cs
- BitmapVisualManager.cs
- SymbolPair.cs
- AutoResetEvent.cs
- LayoutEditorPart.cs
- GenericTextProperties.cs
- TypeInfo.cs
- XmlTextReader.cs
- ObjectManager.cs
- HtmlFormAdapter.cs
- Vector3D.cs
- TemplateParser.cs
- SurrogateEncoder.cs
- _LocalDataStoreMgr.cs
- ProvideValueServiceProvider.cs
- ModelItemCollectionImpl.cs
- X509CertificateClaimSet.cs
- CollectionViewGroupInternal.cs
- LoadWorkflowCommand.cs
- XmlAttribute.cs
- GeneratedView.cs
- BitmapEffect.cs
- Byte.cs
- BinaryCommonClasses.cs
- XmlEntityReference.cs
- DefaultDiscoveryService.cs
- FixedPosition.cs
- ObjectTokenCategory.cs
- BasePattern.cs
- CodeFieldReferenceExpression.cs
- SafePEFileHandle.cs
- CreateUserWizardStep.cs
- XmlTextEncoder.cs
- MatrixIndependentAnimationStorage.cs
- ADConnectionHelper.cs
- loginstatus.cs
- TextServicesCompartmentContext.cs
- WebPart.cs
- BindingBase.cs
- HttpListenerContext.cs
- ClientUtils.cs
- FunctionCommandText.cs
- InlineUIContainer.cs
- SymLanguageType.cs
- UIElement3D.cs
- XmlReader.cs
- URLString.cs
- XsltSettings.cs
- Gdiplus.cs
- DocumentPage.cs
- XmlTextAttribute.cs
- ReflectPropertyDescriptor.cs
- TouchEventArgs.cs
- DoubleStorage.cs
- Pen.cs
- DocumentReferenceCollection.cs
- XmlWhitespace.cs
- LinkAreaEditor.cs
- DocumentPageTextView.cs
- Win32.cs
- HtmlInputRadioButton.cs
- precedingsibling.cs
- DataGridViewCheckBoxColumn.cs
- DeriveBytes.cs
- WorkflowQueueInfo.cs
- ObjectDisposedException.cs
- WebPartTransformerAttribute.cs
- RequestStatusBarUpdateEventArgs.cs
- MediaElementAutomationPeer.cs
- Decorator.cs
- TableChangeProcessor.cs
- SafeMILHandleMemoryPressure.cs
- WorkflowWebHostingModule.cs
- MetadataArtifactLoaderCompositeFile.cs
- OleDbDataReader.cs
- translator.cs