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
- isolationinterop.cs
- TextModifier.cs
- SqlVisitor.cs
- ToolStripItemImageRenderEventArgs.cs
- HtmlTableRowCollection.cs
- DockEditor.cs
- MatrixCamera.cs
- ContextStaticAttribute.cs
- TextParagraphProperties.cs
- DomainConstraint.cs
- ViewStateException.cs
- DesignerTextViewAdapter.cs
- CharacterBuffer.cs
- BamlStream.cs
- ValueQuery.cs
- VSWCFServiceContractGenerator.cs
- DataGridViewColumnEventArgs.cs
- Timer.cs
- PermissionSet.cs
- Span.cs
- SelectionList.cs
- DoubleAnimationUsingPath.cs
- TextSpanModifier.cs
- FloaterBaseParaClient.cs
- MultiPageTextView.cs
- XmlCharType.cs
- LinkedList.cs
- ControlBindingsConverter.cs
- BooleanSwitch.cs
- AppDomainFactory.cs
- DomainUpDown.cs
- Control.cs
- ByteStreamMessageUtility.cs
- RegexBoyerMoore.cs
- ToolStripDesignerAvailabilityAttribute.cs
- SecurityIdentifierElement.cs
- MemberProjectionIndex.cs
- DbModificationClause.cs
- FontStretch.cs
- ViewGenResults.cs
- ScriptRegistrationManager.cs
- HttpClientCertificate.cs
- SetMemberBinder.cs
- AssemblyFilter.cs
- OleDbDataReader.cs
- PrimaryKeyTypeConverter.cs
- OperatingSystem.cs
- SessionEndingEventArgs.cs
- UnsafeNativeMethods.cs
- KeyGestureConverter.cs
- DataTableMapping.cs
- _TransmitFileOverlappedAsyncResult.cs
- WebPartMovingEventArgs.cs
- Roles.cs
- WorkflowServiceAttributes.cs
- XmlName.cs
- Util.cs
- ListenerAdapter.cs
- PreservationFileWriter.cs
- InputScope.cs
- HostTimeoutsElement.cs
- UnknownWrapper.cs
- ParallelTimeline.cs
- CompositionAdorner.cs
- DrawingImage.cs
- ScrollProviderWrapper.cs
- InternalConfigHost.cs
- ActiveDesignSurfaceEvent.cs
- Literal.cs
- GiveFeedbackEvent.cs
- HtmlInputSubmit.cs
- BindingCompleteEventArgs.cs
- LineGeometry.cs
- Drawing.cs
- AmbientValueAttribute.cs
- TextEndOfLine.cs
- DbTypeMap.cs
- Thumb.cs
- FactoryRecord.cs
- TypeConverterAttribute.cs
- OutputCacheSettings.cs
- FileAuthorizationModule.cs
- DelegatingMessage.cs
- IdentifierCreationService.cs
- ProjectionAnalyzer.cs
- TextOutput.cs
- followingsibling.cs
- PointUtil.cs
- XmlUtil.cs
- AccessDataSource.cs
- ListViewUpdatedEventArgs.cs
- SHA1Managed.cs
- ListViewItemMouseHoverEvent.cs
- XslTransform.cs
- ConfigurationSectionCollection.cs
- Object.cs
- FixedDocumentPaginator.cs
- MenuItemStyleCollection.cs
- metadatamappinghashervisitor.hashsourcebuilder.cs
- mda.cs