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
- ProjectionPathBuilder.cs
- Dispatcher.cs
- HandleRef.cs
- TabPage.cs
- HtmlTernaryTree.cs
- ParentQuery.cs
- Message.cs
- ConfigurationSectionGroupCollection.cs
- DefaultAsyncDataDispatcher.cs
- ResourceProviderFactory.cs
- ProfilePropertySettingsCollection.cs
- CrossAppDomainChannel.cs
- ObjectStorage.cs
- AnnotationMap.cs
- HttpMethodConstraint.cs
- EpmAttributeNameBuilder.cs
- ReservationCollection.cs
- ServiceDocumentFormatter.cs
- CodeSnippetTypeMember.cs
- XamlRtfConverter.cs
- UIElement3D.cs
- Stylesheet.cs
- Int32Storage.cs
- _NegoStream.cs
- AssemblyBuilder.cs
- ErrorWrapper.cs
- ItemType.cs
- NumberFormatInfo.cs
- DataGridViewRowConverter.cs
- Domain.cs
- SiteMapNode.cs
- IgnoreFlushAndCloseStream.cs
- DataGridViewColumnTypePicker.cs
- QueryOperationResponseOfT.cs
- X509CertificateCollection.cs
- MatrixConverter.cs
- StreamSecurityUpgradeAcceptorBase.cs
- RegionInfo.cs
- GridEntryCollection.cs
- TextServicesCompartmentContext.cs
- DataTableNewRowEvent.cs
- StringDictionaryCodeDomSerializer.cs
- Activity.cs
- RSAOAEPKeyExchangeDeformatter.cs
- TransformationRules.cs
- ProviderConnectionPoint.cs
- ObjectPersistData.cs
- AppDomainFactory.cs
- Camera.cs
- Pair.cs
- BasicCellRelation.cs
- FunctionParameter.cs
- RegexNode.cs
- DataGridDesigner.cs
- ChannelServices.cs
- TabItemAutomationPeer.cs
- EventArgs.cs
- PropertyPushdownHelper.cs
- ActivityXRefPropertyEditor.cs
- XamlTemplateSerializer.cs
- XmlWriterDelegator.cs
- ButtonColumn.cs
- XmlAttributeCache.cs
- BatchWriter.cs
- odbcmetadatacolumnnames.cs
- DataGridCommandEventArgs.cs
- SingleAnimationBase.cs
- XmlDocumentType.cs
- CallContext.cs
- DateTimeConverter.cs
- OleDbPropertySetGuid.cs
- DispatcherTimer.cs
- Rfc2898DeriveBytes.cs
- DataGridViewCellPaintingEventArgs.cs
- HelpFileFileNameEditor.cs
- StreamReader.cs
- SingleSelectRootGridEntry.cs
- DispatcherProcessingDisabled.cs
- HtmlInputControl.cs
- ChildrenQuery.cs
- PathSegmentCollection.cs
- ProcessInputEventArgs.cs
- FolderLevelBuildProviderCollection.cs
- HttpFileCollectionWrapper.cs
- SourceChangedEventArgs.cs
- PublishLicense.cs
- FrameworkElementFactoryMarkupObject.cs
- SamlAuthorityBinding.cs
- AsymmetricCryptoHandle.cs
- StorageMappingItemCollection.cs
- AssociationProvider.cs
- HtmlProps.cs
- ExpressionBindings.cs
- DriveNotFoundException.cs
- NumericUpDownAccelerationCollection.cs
- TypeConverterBase.cs
- BinaryUtilClasses.cs
- RenderOptions.cs
- GeometryGroup.cs
- CacheSection.cs