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
- CaseCqlBlock.cs
- unsafeIndexingFilterStream.cs
- DataReceivedEventArgs.cs
- DataControlButton.cs
- UpdatePanelTriggerCollection.cs
- CategoryList.cs
- ToolStripSplitStackLayout.cs
- ConfigurationElementCollection.cs
- XmlChildNodes.cs
- AttributeCollection.cs
- AssemblyResourceLoader.cs
- HeaderCollection.cs
- ITreeGenerator.cs
- MailAddress.cs
- PropertyConverter.cs
- IgnoreFileBuildProvider.cs
- ContextMenuAutomationPeer.cs
- PerformanceCounterLib.cs
- FontWeights.cs
- BasicBrowserDialog.designer.cs
- TemplateColumn.cs
- XmlILModule.cs
- Semaphore.cs
- IndentTextWriter.cs
- CodeDefaultValueExpression.cs
- CompositionTarget.cs
- HttpCookie.cs
- MULTI_QI.cs
- ControlAdapter.cs
- GetWinFXPath.cs
- Process.cs
- Menu.cs
- DefaultAuthorizationContext.cs
- AsymmetricKeyExchangeFormatter.cs
- OleDbCommand.cs
- HyperLinkStyle.cs
- MailMessageEventArgs.cs
- XdrBuilder.cs
- XmlObjectSerializerWriteContextComplex.cs
- SqlCachedBuffer.cs
- ScriptComponentDescriptor.cs
- XmlSerializer.cs
- BaseParser.cs
- ResourceDisplayNameAttribute.cs
- DataSysAttribute.cs
- EventPropertyMap.cs
- WebServiceEnumData.cs
- XmlReflectionMember.cs
- BooleanStorage.cs
- TemplateParser.cs
- SharedStatics.cs
- Misc.cs
- Vertex.cs
- ListBase.cs
- WebScriptEnablingBehavior.cs
- SelectionProviderWrapper.cs
- DeferredTextReference.cs
- IndexerNameAttribute.cs
- XPathDocument.cs
- DbRetry.cs
- ScriptResourceAttribute.cs
- CSharpCodeProvider.cs
- TaskCanceledException.cs
- FunctionMappingTranslator.cs
- SizeKeyFrameCollection.cs
- HtmlForm.cs
- nulltextnavigator.cs
- CustomServiceCredentials.cs
- NetMsmqSecurityMode.cs
- UserPreferenceChangedEventArgs.cs
- MailMessage.cs
- Geometry3D.cs
- FixedTextContainer.cs
- InitializingNewItemEventArgs.cs
- SymDocumentType.cs
- TypedServiceChannelBuilder.cs
- EventMap.cs
- CacheDependency.cs
- KnownBoxes.cs
- QuadraticBezierSegment.cs
- Graph.cs
- FirstMatchCodeGroup.cs
- ResourcesChangeInfo.cs
- ProviderConnectionPointCollection.cs
- OleDbConnectionInternal.cs
- QuaternionAnimationUsingKeyFrames.cs
- DataGridCommandEventArgs.cs
- TreeNode.cs
- ZipIOExtraFieldZip64Element.cs
- ExpressionBindingCollection.cs
- CounterSample.cs
- InputDevice.cs
- TableRowCollection.cs
- ApplicationFileCodeDomTreeGenerator.cs
- CompilationLock.cs
- BufferModeSettings.cs
- XPathAncestorIterator.cs
- TextDpi.cs
- COSERVERINFO.cs
- TableHeaderCell.cs