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
- KeyEventArgs.cs
- Listen.cs
- BitmapCacheBrush.cs
- ToolStripItemClickedEventArgs.cs
- ToolStripGrip.cs
- RepeatInfo.cs
- QilPatternFactory.cs
- XmlAttributes.cs
- RijndaelManaged.cs
- CodeMethodInvokeExpression.cs
- WorkflowDispatchContext.cs
- BitmapSource.cs
- SourceFilter.cs
- SeekStoryboard.cs
- CompilerCollection.cs
- EFDataModelProvider.cs
- WindowsPrincipal.cs
- EntityDataSourceDesignerHelper.cs
- BulletDecorator.cs
- PathSegmentCollection.cs
- Label.cs
- DispatcherProcessingDisabled.cs
- Parser.cs
- StatusBarPanel.cs
- CharEnumerator.cs
- IsolatedStorageFilePermission.cs
- HelpKeywordAttribute.cs
- SharedPersonalizationStateInfo.cs
- ToolStripItem.cs
- InputScope.cs
- GcSettings.cs
- XamlTreeBuilderBamlRecordWriter.cs
- JsonFormatReaderGenerator.cs
- ELinqQueryState.cs
- GetPageCompletedEventArgs.cs
- DuplexChannelBinder.cs
- XmlTextAttribute.cs
- ApplicationSecurityInfo.cs
- FormViewUpdatedEventArgs.cs
- Completion.cs
- PngBitmapEncoder.cs
- GenericQueueSurrogate.cs
- InfoCardClaim.cs
- ResourceContainer.cs
- ToolStripRenderer.cs
- AsymmetricSecurityProtocol.cs
- InputLangChangeEvent.cs
- TargetParameterCountException.cs
- LicenseException.cs
- SizeLimitedCache.cs
- Track.cs
- SqlRowUpdatedEvent.cs
- TextTreeUndoUnit.cs
- RecognizedWordUnit.cs
- ElementHostAutomationPeer.cs
- DataGridViewRowPrePaintEventArgs.cs
- SqlFormatter.cs
- ExpressionVisitor.cs
- BamlBinaryReader.cs
- GenericAuthenticationEventArgs.cs
- CompositeCollection.cs
- ClientConvert.cs
- RunClient.cs
- BaseComponentEditor.cs
- ParameterElement.cs
- IPCCacheManager.cs
- ConfigXmlText.cs
- TextEditor.cs
- ReceiveMessageContent.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- SizeConverter.cs
- WebScriptMetadataMessage.cs
- Codec.cs
- ResourceType.cs
- XmlSiteMapProvider.cs
- SimpleWebHandlerParser.cs
- ProviderConnectionPointCollection.cs
- DebugView.cs
- ObjectListFieldCollection.cs
- GradientStopCollection.cs
- CompatibleComparer.cs
- OledbConnectionStringbuilder.cs
- PageContent.cs
- cookie.cs
- SingleAnimation.cs
- ListBindingConverter.cs
- Literal.cs
- DataGridViewRowHeaderCell.cs
- ScriptComponentDescriptor.cs
- PackageDigitalSignature.cs
- PopupRootAutomationPeer.cs
- Expressions.cs
- Attribute.cs
- GridViewUpdatedEventArgs.cs
- smtppermission.cs
- SecurityDocument.cs
- CacheHelper.cs
- CustomAttributeFormatException.cs
- LinearQuaternionKeyFrame.cs
- SqlDataSourceQueryEditorForm.cs