Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- BamlVersionHeader.cs
- MapPathBasedVirtualPathProvider.cs
- XmlAtomicValue.cs
- ValidatorUtils.cs
- CollaborationHelperFunctions.cs
- ServiceModelEnumValidatorAttribute.cs
- configsystem.cs
- HitTestResult.cs
- DataGridComboBoxColumn.cs
- DataGridCellItemAutomationPeer.cs
- CssStyleCollection.cs
- SettingsPropertyWrongTypeException.cs
- ProjectionPlanCompiler.cs
- SQLStringStorage.cs
- ConfigXmlCDataSection.cs
- DataGridViewElement.cs
- XmlAnyElementAttribute.cs
- SqlProcedureAttribute.cs
- CompareValidator.cs
- TableProviderWrapper.cs
- WebControlsSection.cs
- ArcSegment.cs
- InvalidPrinterException.cs
- Util.cs
- SymbolMethod.cs
- HandleCollector.cs
- QueryHandler.cs
- CardSpacePolicyElement.cs
- TextChangedEventArgs.cs
- ListParaClient.cs
- StringBlob.cs
- RuleRefElement.cs
- ContextStack.cs
- DisplayNameAttribute.cs
- SystemIcmpV6Statistics.cs
- ThreadSafeList.cs
- ProfileSection.cs
- RSAOAEPKeyExchangeDeformatter.cs
- ExtendLockCommand.cs
- StrokeSerializer.cs
- AliasGenerator.cs
- ResourceSet.cs
- ToolTipAutomationPeer.cs
- XmlIgnoreAttribute.cs
- ConnectionStringsExpressionBuilder.cs
- ResourceDescriptionAttribute.cs
- DataColumnMapping.cs
- ConfigurationPermission.cs
- XmlQueryOutput.cs
- GACMembershipCondition.cs
- Opcode.cs
- ListViewContainer.cs
- LinkButton.cs
- SqlDataSourceStatusEventArgs.cs
- ControlParameter.cs
- mediapermission.cs
- TypographyProperties.cs
- RouteParameter.cs
- ManifestSignedXml.cs
- TreeNodeSelectionProcessor.cs
- EmptyQuery.cs
- ExpandCollapseIsCheckedConverter.cs
- ScrollItemPatternIdentifiers.cs
- SamlAttribute.cs
- ADConnectionHelper.cs
- BamlResourceContent.cs
- VisualTarget.cs
- FrameDimension.cs
- ListItemParagraph.cs
- TextTreeInsertUndoUnit.cs
- CheckPair.cs
- RegistryExceptionHelper.cs
- LoginName.cs
- InternalRelationshipCollection.cs
- DefaultTraceListener.cs
- ParentQuery.cs
- _ProxyRegBlob.cs
- SourceLineInfo.cs
- OdbcConnectionHandle.cs
- TreeViewDataItemAutomationPeer.cs
- ErasingStroke.cs
- SimpleWebHandlerParser.cs
- MergeFailedEvent.cs
- XmlSerializerAssemblyAttribute.cs
- NativeMethods.cs
- DesignerUtility.cs
- BrowserPolicyValidator.cs
- AuthenticationConfig.cs
- GlyphsSerializer.cs
- sitestring.cs
- SQLDouble.cs
- ControlsConfig.cs
- ByteStack.cs
- X509SecurityTokenParameters.cs
- ExceptionRoutedEventArgs.cs
- DuplicateWaitObjectException.cs
- ConfigXmlAttribute.cs
- LassoSelectionBehavior.cs
- FrameworkElementFactory.cs
- PrivilegedConfigurationManager.cs