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
- TraceHandler.cs
- TreeBuilder.cs
- UnknownWrapper.cs
- PathTooLongException.cs
- ConnectorSelectionGlyph.cs
- DbMetaDataColumnNames.cs
- TextSearch.cs
- DefaultWorkflowTransactionService.cs
- SecureStringHasher.cs
- AsymmetricSignatureDeformatter.cs
- IdentifierCollection.cs
- XmlAnyAttributeAttribute.cs
- TextElementCollectionHelper.cs
- ThreadExceptionEvent.cs
- ScriptControl.cs
- XamlVector3DCollectionSerializer.cs
- LogArchiveSnapshot.cs
- clipboard.cs
- RowBinding.cs
- DesignerValidationSummaryAdapter.cs
- IndexedWhereQueryOperator.cs
- TriggerActionCollection.cs
- LOSFormatter.cs
- SecurityIdentifierConverter.cs
- NativeMethods.cs
- ListParaClient.cs
- DeviceContexts.cs
- DrawingAttributesDefaultValueFactory.cs
- SessionStateItemCollection.cs
- DataGridViewTextBoxCell.cs
- entityreference_tresulttype.cs
- ListMarkerLine.cs
- DataSourceXmlSerializer.cs
- StreamAsIStream.cs
- SoapIgnoreAttribute.cs
- NonParentingControl.cs
- XNameTypeConverter.cs
- XmlSchemaParticle.cs
- ForeignKeyConstraint.cs
- CryptoApi.cs
- DataObjectCopyingEventArgs.cs
- ParallelTimeline.cs
- ObjectDataSourceMethodEventArgs.cs
- AppSettingsReader.cs
- XPathQilFactory.cs
- OrderByBuilder.cs
- DisplayInformation.cs
- TextContainerHelper.cs
- EntityViewGenerationAttribute.cs
- WebPartDisplayModeEventArgs.cs
- TemplateInstanceAttribute.cs
- ExpandCollapsePattern.cs
- Menu.cs
- ADMembershipProvider.cs
- UrlMapping.cs
- DocumentSchemaValidator.cs
- StrongNameHelpers.cs
- PersonalizationStateInfo.cs
- SqlUtils.cs
- AsyncResult.cs
- RowToFieldTransformer.cs
- RequestSecurityTokenForGetBrowserToken.cs
- SHA512Cng.cs
- HttpProxyTransportBindingElement.cs
- AnnotationObservableCollection.cs
- SharedHttpTransportManager.cs
- ACL.cs
- TextMessageEncoder.cs
- DropDownButton.cs
- TransactionManager.cs
- AutomationIdentifier.cs
- UserControl.cs
- CryptoApi.cs
- CoTaskMemSafeHandle.cs
- TransactionInterop.cs
- RotateTransform.cs
- CommandConverter.cs
- Dictionary.cs
- RemotingException.cs
- FullTextState.cs
- RequestQueryParser.cs
- SqlDataSourceEnumerator.cs
- SpellerStatusTable.cs
- HtmlTitle.cs
- JoinElimination.cs
- SortExpressionBuilder.cs
- PrimitiveCodeDomSerializer.cs
- FixedPageAutomationPeer.cs
- InkCanvasSelectionAdorner.cs
- Header.cs
- XamlBrushSerializer.cs
- StylusButtonCollection.cs
- DbSetClause.cs
- ManifestResourceInfo.cs
- DesigntimeLicenseContextSerializer.cs
- DependencyPropertyAttribute.cs
- RelationalExpressions.cs
- Membership.cs
- Model3D.cs
- COM2ComponentEditor.cs