Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- ListViewGroupConverter.cs
- TraceSwitch.cs
- XmlSchemaException.cs
- FontStyleConverter.cs
- TypeCollectionPropertyEditor.cs
- CqlBlock.cs
- Claim.cs
- CodeValidator.cs
- XmlSchemaSet.cs
- SolidBrush.cs
- SpnegoTokenProvider.cs
- URLAttribute.cs
- CompilerCollection.cs
- RuleConditionDialog.Designer.cs
- DocumentAutomationPeer.cs
- SoapException.cs
- PeerUnsafeNativeCryptMethods.cs
- FormClosingEvent.cs
- AddingNewEventArgs.cs
- Html32TextWriter.cs
- CryptoConfig.cs
- IOException.cs
- SoapExtensionImporter.cs
- SymbolPair.cs
- CachedFontFace.cs
- TraceContextEventArgs.cs
- SystemResources.cs
- TextEffect.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- DesignerWithHeader.cs
- StagingAreaInputItem.cs
- SmiMetaData.cs
- EntityContainerEmitter.cs
- WindowPattern.cs
- SymbolPair.cs
- RegexWriter.cs
- CodePageEncoding.cs
- DropDownList.cs
- SqlSupersetValidator.cs
- CmsInterop.cs
- ColumnWidthChangingEvent.cs
- DataListItemCollection.cs
- BinaryExpression.cs
- ReferentialConstraintRoleElement.cs
- counter.cs
- CancellableEnumerable.cs
- SafeFileMappingHandle.cs
- DesignerEventService.cs
- Annotation.cs
- BooleanExpr.cs
- URLIdentityPermission.cs
- LineProperties.cs
- Pts.cs
- DateTimeValueSerializerContext.cs
- SubMenuStyleCollection.cs
- FixedSOMPage.cs
- FontFamily.cs
- COM2ColorConverter.cs
- GroupPartitionExpr.cs
- TextServicesCompartmentEventSink.cs
- FactoryGenerator.cs
- HttpPostedFile.cs
- GeometryModel3D.cs
- KerberosReceiverSecurityToken.cs
- EventListener.cs
- MetafileHeaderWmf.cs
- XmlLoader.cs
- CursorConverter.cs
- ByteViewer.cs
- CompilerResults.cs
- GlyphCache.cs
- InvalidProgramException.cs
- SmiGettersStream.cs
- Vector3DConverter.cs
- ChannelSettingsElement.cs
- ErrorEventArgs.cs
- NavigationWindow.cs
- WindowsFont.cs
- EnumValAlphaComparer.cs
- MetadataItem.cs
- DataGridViewCellLinkedList.cs
- StrokeCollection.cs
- XmlSerializationWriter.cs
- CounterSet.cs
- ScrollProperties.cs
- ExpressionBuilder.cs
- TypedRowGenerator.cs
- MessageQueueCriteria.cs
- EntityDesignerUtils.cs
- ConnectionManagementElement.cs
- LoginName.cs
- XmlFormatWriterGenerator.cs
- SubtreeProcessor.cs
- DesignerEditorPartChrome.cs
- Calendar.cs
- CallSiteOps.cs
- ListControl.cs
- IndentedWriter.cs
- CodeMemberMethod.cs
- MessageRpc.cs