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
- BaseTransportHeaders.cs
- DrawListViewColumnHeaderEventArgs.cs
- MergePropertyDescriptor.cs
- DBSchemaTable.cs
- EntityDataSourceChangedEventArgs.cs
- AtomicFile.cs
- indexingfiltermarshaler.cs
- EventSinkHelperWriter.cs
- SRDisplayNameAttribute.cs
- XmlSchemaComplexContentRestriction.cs
- MimePart.cs
- RegistrySecurity.cs
- EdmItemCollection.cs
- JoinGraph.cs
- NativeMethods.cs
- Misc.cs
- ScriptingJsonSerializationSection.cs
- XamlPointCollectionSerializer.cs
- DrawingContext.cs
- X509InitiatorCertificateServiceElement.cs
- ComponentResourceManager.cs
- FlowDocumentScrollViewer.cs
- ActivityXRefPropertyEditor.cs
- Image.cs
- UriTemplateQueryValue.cs
- PriorityRange.cs
- EntityExpressionVisitor.cs
- SqlBulkCopyColumnMapping.cs
- FileAuthorizationModule.cs
- HtmlButton.cs
- UserPreferenceChangingEventArgs.cs
- RowTypePropertyElement.cs
- WebPartConnectionsConfigureVerb.cs
- DesignerHelpers.cs
- ContractMapping.cs
- EventTask.cs
- CompatibleComparer.cs
- PostBackTrigger.cs
- DataGridViewCellEventArgs.cs
- ReliableSessionBindingElementImporter.cs
- SqlDataSourceCache.cs
- ScalarType.cs
- UntypedNullExpression.cs
- StickyNote.cs
- HttpAsyncResult.cs
- DrawingAttributes.cs
- QueueProcessor.cs
- AsnEncodedData.cs
- RC2.cs
- TabControlCancelEvent.cs
- BlurEffect.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- _TransmitFileOverlappedAsyncResult.cs
- CombinedHttpChannel.cs
- RSACryptoServiceProvider.cs
- ListViewTableCell.cs
- StorageFunctionMapping.cs
- Nodes.cs
- IntegerValidatorAttribute.cs
- InstanceDataCollection.cs
- BinaryReader.cs
- MembershipPasswordException.cs
- OleDbParameterCollection.cs
- DataKey.cs
- WebEventTraceProvider.cs
- PersonalizationEntry.cs
- InkCanvas.cs
- RuleAttributes.cs
- ChildTable.cs
- SizeChangedEventArgs.cs
- TagMapInfo.cs
- ParseElementCollection.cs
- OperationAbortedException.cs
- DeploymentExceptionMapper.cs
- Queue.cs
- RepeaterCommandEventArgs.cs
- WebPartDisplayMode.cs
- GregorianCalendarHelper.cs
- StructureChangedEventArgs.cs
- ExpandSegment.cs
- SerialReceived.cs
- PeerNameRecordCollection.cs
- OutputCacheSection.cs
- ClientRoleProvider.cs
- DropShadowBitmapEffect.cs
- sitestring.cs
- StatusBarPanelClickEvent.cs
- AstNode.cs
- XhtmlBasicValidationSummaryAdapter.cs
- DataGridViewCellCollection.cs
- AudioDeviceOut.cs
- XmlDocumentFieldSchema.cs
- TableParaClient.cs
- Transform3D.cs
- EventLogSession.cs
- WriteableOnDemandPackagePart.cs
- ValidatingReaderNodeData.cs
- XmlSerializer.cs
- InfoCardRSACryptoProvider.cs
- DrawingAttributesDefaultValueFactory.cs