Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MonthChangedEventArgs.cs
- AppDomainUnloadedException.cs
- RSAPKCS1SignatureDeformatter.cs
- StyleSheetComponentEditor.cs
- oledbmetadatacollectionnames.cs
- DragEventArgs.cs
- TextPattern.cs
- Menu.cs
- FixedDocumentPaginator.cs
- HtmlInputPassword.cs
- TreeNodeEventArgs.cs
- ContentType.cs
- WriterOutput.cs
- DataSourceControlBuilder.cs
- RectangleF.cs
- DynamicVirtualDiscoSearcher.cs
- MessageBuffer.cs
- TextModifier.cs
- UInt32.cs
- GenericWebPart.cs
- DataSourceBooleanViewSchemaConverter.cs
- XhtmlBasicSelectionListAdapter.cs
- ScriptReferenceBase.cs
- SQLRoleProvider.cs
- Application.cs
- DialogResultConverter.cs
- StrongNameSignatureInformation.cs
- DBSqlParserColumn.cs
- DataViewManager.cs
- StorageRoot.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- SocketInformation.cs
- MetadataItemEmitter.cs
- InternalPermissions.cs
- MaskedTextBox.cs
- SqlReferenceCollection.cs
- InvalidFilterCriteriaException.cs
- ZipIOLocalFileHeader.cs
- XmlCompatibilityReader.cs
- ApplicationSecurityInfo.cs
- NameValueCollection.cs
- DependencyObjectPropertyDescriptor.cs
- UInt32Converter.cs
- HtmlInputButton.cs
- XmlAnyElementAttribute.cs
- CustomPopupPlacement.cs
- SocketPermission.cs
- SecureStringHasher.cs
- QilValidationVisitor.cs
- IOException.cs
- ScopelessEnumAttribute.cs
- RegistryPermission.cs
- RegistryPermission.cs
- Accessible.cs
- XmlSchemaException.cs
- HostProtectionException.cs
- CodeIterationStatement.cs
- Enlistment.cs
- SecurityManager.cs
- HandleCollector.cs
- DataViewListener.cs
- InputLangChangeEvent.cs
- SizeLimitedCache.cs
- KeyProperty.cs
- PenContexts.cs
- COM2Enum.cs
- DisableDpiAwarenessAttribute.cs
- WindowsIdentity.cs
- ParenthesizePropertyNameAttribute.cs
- SystemMulticastIPAddressInformation.cs
- RoutedEventHandlerInfo.cs
- Match.cs
- StylusDevice.cs
- AnnotationComponentChooser.cs
- PrintDocument.cs
- CodeChecksumPragma.cs
- Publisher.cs
- ListViewUpdateEventArgs.cs
- EtwTrackingBehavior.cs
- RuleSetDialog.Designer.cs
- Context.cs
- UnknownBitmapDecoder.cs
- WebColorConverter.cs
- EventLogPermissionEntry.cs
- PointKeyFrameCollection.cs
- RefreshEventArgs.cs
- ClientData.cs
- ClientRuntimeConfig.cs
- StandardOleMarshalObject.cs
- ActivityStateRecord.cs
- HttpContextServiceHost.cs
- Int16Animation.cs
- ListViewCommandEventArgs.cs
- RoutedEventHandlerInfo.cs
- TreeView.cs
- BitmapEffectDrawing.cs
- DBProviderConfigurationHandler.cs
- WebPartConnectionsCancelVerb.cs
- LocalizedNameDescriptionPair.cs
- TextViewBase.cs