Code:
/ 4.0 / 4.0 / 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. //------------------------------------------------------------------------------ //// 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
- VBCodeProvider.cs
- MouseEvent.cs
- ExtractorMetadata.cs
- ContentElement.cs
- DataGridViewRowPostPaintEventArgs.cs
- PrefixQName.cs
- SettingsProviderCollection.cs
- PassportPrincipal.cs
- JumpItem.cs
- NativeBuffer.cs
- _DisconnectOverlappedAsyncResult.cs
- FlowThrottle.cs
- ExtensibleSyndicationObject.cs
- printdlgexmarshaler.cs
- PropertyCondition.cs
- EntryIndex.cs
- XmlCharCheckingReader.cs
- ProcessModelInfo.cs
- Quaternion.cs
- RandomNumberGenerator.cs
- X509Certificate2.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- ResourceType.cs
- TextWriter.cs
- ProtocolProfile.cs
- WindowsTreeView.cs
- WindowInteropHelper.cs
- DependencyPropertyKind.cs
- RotateTransform3D.cs
- HtmlInputReset.cs
- VectorCollectionConverter.cs
- QuaternionConverter.cs
- EventRoute.cs
- PackWebRequestFactory.cs
- OrderToken.cs
- WsrmMessageInfo.cs
- StringUtil.cs
- linebase.cs
- SHA256CryptoServiceProvider.cs
- AuthorizationRule.cs
- UniqueEventHelper.cs
- ReachIDocumentPaginatorSerializerAsync.cs
- AttachInfo.cs
- StringFreezingAttribute.cs
- MulticastDelegate.cs
- Span.cs
- AppDomainGrammarProxy.cs
- OSEnvironmentHelper.cs
- OptimalTextSource.cs
- BindableTemplateBuilder.cs
- WebDisplayNameAttribute.cs
- DefaultEvaluationContext.cs
- OracleString.cs
- httpserverutility.cs
- ProcessHostFactoryHelper.cs
- RelationshipType.cs
- OdbcErrorCollection.cs
- WebPartUserCapability.cs
- CompoundFileIOPermission.cs
- Rotation3D.cs
- RC2.cs
- RelationshipSet.cs
- RMPublishingDialog.cs
- BrushMappingModeValidation.cs
- XPathNodeHelper.cs
- Base64Stream.cs
- SystemThemeKey.cs
- IgnorePropertiesAttribute.cs
- RouteParser.cs
- AppSettingsExpressionBuilder.cs
- DeferredRunTextReference.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- UndoManager.cs
- FlowDocumentView.cs
- Utils.cs
- DefaultAuthorizationContext.cs
- basevalidator.cs
- CipherData.cs
- VirtualPath.cs
- DataTableMapping.cs
- Vector3DValueSerializer.cs
- AvTrace.cs
- ColumnCollection.cs
- PageMediaType.cs
- Quaternion.cs
- Content.cs
- DataPagerFieldCommandEventArgs.cs
- PolicyVersion.cs
- WebDisplayNameAttribute.cs
- NonSerializedAttribute.cs
- AutomationTextAttribute.cs
- ErrorFormatterPage.cs
- SystemIPInterfaceProperties.cs
- BehaviorDragDropEventArgs.cs
- Evidence.cs
- BadImageFormatException.cs
- GridViewUpdatedEventArgs.cs
- ClientFormsAuthenticationMembershipProvider.cs
- RestHandlerFactory.cs
- Errors.cs