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
- ToolStripOverflow.cs
- DataGridViewDataErrorEventArgs.cs
- WindowsClaimSet.cs
- TypeConverterAttribute.cs
- BypassElement.cs
- TextContainerHelper.cs
- Button.cs
- NonParentingControl.cs
- SystemFonts.cs
- ImageSourceTypeConverter.cs
- WebConfigurationManager.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- BooleanFunctions.cs
- FrameworkElementFactoryMarkupObject.cs
- ModuleConfigurationInfo.cs
- Duration.cs
- TrackingServices.cs
- LicenseManager.cs
- DiscoveryDocumentReference.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- SmtpCommands.cs
- SectionRecord.cs
- SiteMapDataSourceView.cs
- XsdValidatingReader.cs
- KeyInterop.cs
- PromptBuilder.cs
- PartialToken.cs
- HotSpotCollection.cs
- OdbcError.cs
- CodeRegionDirective.cs
- _SafeNetHandles.cs
- StrokeIntersection.cs
- SystemTcpConnection.cs
- PointHitTestParameters.cs
- OrderingQueryOperator.cs
- TimeSpanMinutesConverter.cs
- MenuStrip.cs
- Int32Rect.cs
- SamlAuthenticationClaimResource.cs
- FormatStringEditor.cs
- PkcsUtils.cs
- OleDbRowUpdatingEvent.cs
- OutputCacheModule.cs
- DirectoryInfo.cs
- MarkupCompilePass2.cs
- ObfuscateAssemblyAttribute.cs
- DesignerOptionService.cs
- TargetControlTypeAttribute.cs
- XmlObjectSerializerWriteContextComplexJson.cs
- XmlSchemaComplexContentRestriction.cs
- PageBuildProvider.cs
- DebugViewWriter.cs
- ProfileSection.cs
- DesignerSerializationOptionsAttribute.cs
- Roles.cs
- ThumbAutomationPeer.cs
- ProfileGroupSettingsCollection.cs
- OperationContext.cs
- XPathCompileException.cs
- XMLSchema.cs
- HandleRef.cs
- LogEntryHeaderv1Deserializer.cs
- Solver.cs
- ImageSourceTypeConverter.cs
- ComponentCodeDomSerializer.cs
- AsnEncodedData.cs
- DataGridViewRow.cs
- NavigationService.cs
- BordersPage.cs
- TextTrailingCharacterEllipsis.cs
- QilUnary.cs
- PageParser.cs
- NameTable.cs
- ObjectCacheHost.cs
- MemberRelationshipService.cs
- ExportFileRequest.cs
- SvcMapFile.cs
- Frame.cs
- DelayedRegex.cs
- WindowsSolidBrush.cs
- securitycriticaldataClass.cs
- ItemMap.cs
- FormViewDeleteEventArgs.cs
- EditorBrowsableAttribute.cs
- AstNode.cs
- Atom10FormatterFactory.cs
- MatrixCamera.cs
- VerificationException.cs
- Matrix3DStack.cs
- WebPermission.cs
- ExtensionFile.cs
- odbcmetadatacolumnnames.cs
- SecurityTokenRequirement.cs
- InlinedAggregationOperatorEnumerator.cs
- SHA1Managed.cs
- TextBounds.cs
- HandlerWithFactory.cs
- HtmlFormParameterWriter.cs
- WebSysDisplayNameAttribute.cs
- Decorator.cs