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
- GenericTypeParameterConverter.cs
- TableCell.cs
- PopOutPanel.cs
- XslTransform.cs
- EncryptedType.cs
- GenericEnumerator.cs
- CategoryGridEntry.cs
- ClientScriptManager.cs
- SmtpClient.cs
- PageParserFilter.cs
- PersonalizationProvider.cs
- ProfileService.cs
- StylusPlugin.cs
- filewebrequest.cs
- UdpChannelFactory.cs
- FrameworkPropertyMetadata.cs
- ServiceProviders.cs
- XmlSerializerSection.cs
- StatusBarPanelClickEvent.cs
- PrtTicket_Base.cs
- ECDsaCng.cs
- TaskExtensions.cs
- KeyBinding.cs
- recordstatescratchpad.cs
- ExpressionBuilderContext.cs
- MemoryMappedFileSecurity.cs
- SemaphoreFullException.cs
- CompositeDataBoundControl.cs
- DataObject.cs
- SqlBinder.cs
- Policy.cs
- _SpnDictionary.cs
- SoapIncludeAttribute.cs
- WindowsGraphicsCacheManager.cs
- MeasurementDCInfo.cs
- FilterQueryOptionExpression.cs
- DataGridViewImageCell.cs
- Hash.cs
- XmlPreloadedResolver.cs
- ByteConverter.cs
- ConnectorSelectionGlyph.cs
- SwitchLevelAttribute.cs
- RsaKeyIdentifierClause.cs
- NameValueFileSectionHandler.cs
- Scheduling.cs
- HasCopySemanticsAttribute.cs
- SectionVisual.cs
- ConfigurationValidatorAttribute.cs
- AlignmentXValidation.cs
- DataGridViewRowContextMenuStripNeededEventArgs.cs
- ColorEditor.cs
- SignerInfo.cs
- SchemaImporterExtensionElementCollection.cs
- AttributeQuery.cs
- IdentityManager.cs
- XmlMapping.cs
- EntityStoreSchemaFilterEntry.cs
- TableParagraph.cs
- HashCodeCombiner.cs
- LockCookie.cs
- OperationResponse.cs
- BitmapEffect.cs
- VersionedStream.cs
- TraceFilter.cs
- ServiceObjectContainer.cs
- MenuItem.cs
- Point3DCollection.cs
- FixedTextView.cs
- SignedXml.cs
- ProtocolsConfiguration.cs
- DataError.cs
- InputLanguageProfileNotifySink.cs
- UriSectionData.cs
- GlobalizationAssembly.cs
- NativeMethods.cs
- UIAgentAsyncEndRequest.cs
- ContractNamespaceAttribute.cs
- InfoCardRSAPKCS1KeyExchangeDeformatter.cs
- BypassElement.cs
- PbrsForward.cs
- EffectiveValueEntry.cs
- SchemaElement.cs
- ListViewItem.cs
- Transform3DGroup.cs
- ImageSource.cs
- DataGridViewControlCollection.cs
- BaseDataListActionList.cs
- ThreadStartException.cs
- DataGridPageChangedEventArgs.cs
- ExeContext.cs
- XmlSchemaChoice.cs
- Compensate.cs
- TimeSpanFormat.cs
- Stack.cs
- BorderGapMaskConverter.cs
- AssemblyBuilder.cs
- VariableAction.cs
- RegexInterpreter.cs
- Int64Animation.cs
- PartialCachingAttribute.cs