Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- SignatureDescription.cs
- ExpandoClass.cs
- HttpModulesSection.cs
- Helper.cs
- TableLayoutSettings.cs
- IdentitySection.cs
- RegexTree.cs
- backend.cs
- HttpListener.cs
- ComponentResourceKey.cs
- HtmlHistory.cs
- PreProcessInputEventArgs.cs
- TypeSource.cs
- Wrapper.cs
- ToolStripSeparatorRenderEventArgs.cs
- CallbackBehaviorAttribute.cs
- CqlQuery.cs
- MouseEvent.cs
- DoubleAnimationUsingKeyFrames.cs
- TreeBuilderBamlTranslator.cs
- ExtensionFile.cs
- DetailsView.cs
- __ConsoleStream.cs
- TcpTransportManager.cs
- ClickablePoint.cs
- PerspectiveCamera.cs
- DataGridViewCellPaintingEventArgs.cs
- CheckBoxField.cs
- RSAOAEPKeyExchangeFormatter.cs
- CqlErrorHelper.cs
- ApplicationTrust.cs
- XPathSelectionIterator.cs
- __TransparentProxy.cs
- LambdaCompiler.Logical.cs
- MatrixStack.cs
- RepeaterItemCollection.cs
- Keyboard.cs
- HtmlShim.cs
- ActiveDocumentEvent.cs
- IPHostEntry.cs
- PriorityChain.cs
- MimeTypeAttribute.cs
- ToolStripRenderEventArgs.cs
- MemberAccessException.cs
- ConnectorEditor.cs
- PassportIdentity.cs
- DataGridTableStyleMappingNameEditor.cs
- TreeNodeClickEventArgs.cs
- ModelTypeConverter.cs
- MemberAccessException.cs
- WebPartConnectionsEventArgs.cs
- XmlBinaryReaderSession.cs
- Content.cs
- SafeArrayRankMismatchException.cs
- SchemaCollectionPreprocessor.cs
- ComPlusThreadInitializer.cs
- ThreadPool.cs
- FlowLayoutPanel.cs
- CounterSample.cs
- PersonalizationProviderHelper.cs
- XamlInterfaces.cs
- RelationshipDetailsCollection.cs
- ContentValidator.cs
- JavascriptXmlWriterWrapper.cs
- TypeInfo.cs
- CompositeScriptReferenceEventArgs.cs
- dtdvalidator.cs
- NativeActivityFaultContext.cs
- Timeline.cs
- TagPrefixInfo.cs
- ContentHostHelper.cs
- TransportListener.cs
- NameTable.cs
- ObsoleteAttribute.cs
- AttachedPropertyInfo.cs
- Pair.cs
- PeerTransportSecurityElement.cs
- QueryContext.cs
- HtmlElementErrorEventArgs.cs
- ExponentialEase.cs
- TCEAdapterGenerator.cs
- iisPickupDirectory.cs
- CollectionConverter.cs
- AuditLog.cs
- EncoderParameters.cs
- SchemaCollectionPreprocessor.cs
- ImpersonateTokenRef.cs
- ApplicationFileCodeDomTreeGenerator.cs
- WebControlParameterProxy.cs
- ReferenceEqualityComparer.cs
- TemplateKeyConverter.cs
- BitStream.cs
- CorruptStoreException.cs
- SwitchExpression.cs
- AsyncResult.cs
- JournalNavigationScope.cs
- ControlIdConverter.cs
- ExtendedProperty.cs
- TextComposition.cs
- DataProtection.cs