Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Xml / System / Xml / XPath / Internal / ParentQuery.cs / 1305376 / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XamlTypeMapper.cs
- TextEffect.cs
- WebPartConnectionsCancelVerb.cs
- Int32KeyFrameCollection.cs
- CatalogPartChrome.cs
- IsolatedStorage.cs
- DefaultSerializationProviderAttribute.cs
- RMPublishingDialog.cs
- ProtocolElementCollection.cs
- KeySplineConverter.cs
- IdentifierCollection.cs
- AsyncPostBackTrigger.cs
- SmtpNtlmAuthenticationModule.cs
- ReadOnlyDataSourceView.cs
- OrderedHashRepartitionStream.cs
- HostedTransportConfigurationBase.cs
- PageParserFilter.cs
- FormsAuthenticationEventArgs.cs
- Terminate.cs
- LoadMessageLogger.cs
- FaultFormatter.cs
- DiscoveryDefaults.cs
- TextEditorCopyPaste.cs
- ComponentEditorForm.cs
- AccessControlEntry.cs
- Char.cs
- OpenTypeLayout.cs
- JsonCollectionDataContract.cs
- GestureRecognitionResult.cs
- EmptyImpersonationContext.cs
- XhtmlBasicLiteralTextAdapter.cs
- MailHeaderInfo.cs
- TimeManager.cs
- BinaryObjectReader.cs
- ToggleButtonAutomationPeer.cs
- MaskedTextBox.cs
- ManagementScope.cs
- BuildProvider.cs
- ResourceManagerWrapper.cs
- OdbcErrorCollection.cs
- Win32MouseDevice.cs
- DesignerAutoFormatStyle.cs
- SourceFileInfo.cs
- SubpageParaClient.cs
- FillBehavior.cs
- BindingCompleteEventArgs.cs
- ServerType.cs
- RuleSetDialog.Designer.cs
- QilBinary.cs
- CustomTypeDescriptor.cs
- CatalogPart.cs
- Funcletizer.cs
- UITypeEditor.cs
- ChannelParameterCollection.cs
- InnerItemCollectionView.cs
- TaskFileService.cs
- Geometry.cs
- MimeTextImporter.cs
- QueryExpr.cs
- DataGridRowsPresenter.cs
- WebConvert.cs
- InheritanceAttribute.cs
- LogEntrySerialization.cs
- DispatcherHookEventArgs.cs
- StaticSiteMapProvider.cs
- WebPartsPersonalization.cs
- BeginEvent.cs
- QueryCursorEventArgs.cs
- PasswordPropertyTextAttribute.cs
- TraceInternal.cs
- AdditionalEntityFunctions.cs
- ReservationNotFoundException.cs
- ListViewGroupConverter.cs
- RemoteWebConfigurationHostStream.cs
- FormParameter.cs
- Compiler.cs
- AmbiguousMatchException.cs
- IisTraceListener.cs
- panel.cs
- DataObjectFieldAttribute.cs
- ValueQuery.cs
- XmlSchemaNotation.cs
- DynamicPropertyHolder.cs
- DeflateEmulationStream.cs
- AssemblyResourceLoader.cs
- SafeRightsManagementHandle.cs
- ExtensionCollection.cs
- ContainerUtilities.cs
- Cell.cs
- OpCellTreeNode.cs
- DelimitedListTraceListener.cs
- LayeredChannelFactory.cs
- Compiler.cs
- DataTableReader.cs
- ProgressBarRenderer.cs
- PropertyToken.cs
- HashHelper.cs
- TextRunCache.cs
- TemplateBindingExpressionConverter.cs
- PartialTrustValidationBehavior.cs