Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Xml / System / Xml / XPath / Internal / AbsoluteQuery.cs / 1305376 / AbsoluteQuery.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; internal sealed class AbsoluteQuery : ContextQuery { public AbsoluteQuery() : base() {} private AbsoluteQuery(AbsoluteQuery other) : base(other) {} public override object Evaluate(XPathNodeIterator context) { base.contextNode = context.Current.Clone(); base.contextNode.MoveToRoot(); count = 0; return this; } public override XPathNavigator MatchNode(XPathNavigator context) { if (context != null && context.NodeType == XPathNodeType.Root) { return context; } return null; } public override XPathNodeIterator Clone() { return new AbsoluteQuery(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
- FlowSwitch.cs
- Graph.cs
- DataGrid.cs
- SID.cs
- FilteredDataSetHelper.cs
- Table.cs
- StyleXamlTreeBuilder.cs
- GlyphingCache.cs
- QuestionEventArgs.cs
- EdmProperty.cs
- GenericQueueSurrogate.cs
- AffineTransform3D.cs
- SafeEventHandle.cs
- OleDbConnectionInternal.cs
- DetailsViewRow.cs
- XmlSchemaValidator.cs
- PersistenceTypeAttribute.cs
- AudioFileOut.cs
- XmlHierarchyData.cs
- DeferredSelectedIndexReference.cs
- RelationalExpressions.cs
- FrameAutomationPeer.cs
- DoubleStorage.cs
- ContentTextAutomationPeer.cs
- PropertyPushdownHelper.cs
- OperationAbortedException.cs
- ParallelTimeline.cs
- MsmqIntegrationChannelFactory.cs
- RoutedPropertyChangedEventArgs.cs
- KeyInterop.cs
- DataChangedEventManager.cs
- ObjectItemConventionAssemblyLoader.cs
- DocumentSchemaValidator.cs
- TaskResultSetter.cs
- ClientSettingsStore.cs
- PageParserFilter.cs
- OnOperation.cs
- PageAsyncTaskManager.cs
- LoginCancelEventArgs.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- XmlEncoding.cs
- DoubleStorage.cs
- NamespaceDecl.cs
- PathFigureCollection.cs
- AnnotationAdorner.cs
- WindowsFormsHostAutomationPeer.cs
- OpCodes.cs
- SmtpFailedRecipientsException.cs
- DesignerAutoFormatStyle.cs
- DiscoveryViaBehavior.cs
- ComplexBindingPropertiesAttribute.cs
- nulltextnavigator.cs
- TextPointer.cs
- DependencyObjectType.cs
- PieceNameHelper.cs
- GeneralTransform3D.cs
- XPathQilFactory.cs
- SignatureHelper.cs
- PackageFilter.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- FolderLevelBuildProviderAppliesToAttribute.cs
- KeyBinding.cs
- Pointer.cs
- UserControl.cs
- UICuesEvent.cs
- SQLInt16Storage.cs
- Popup.cs
- StructuralObject.cs
- SettingsPropertyWrongTypeException.cs
- HostingEnvironmentSection.cs
- DataContext.cs
- JsonFormatReaderGenerator.cs
- MulticastDelegate.cs
- PageContent.cs
- CharAnimationBase.cs
- DesignBinding.cs
- DataColumnChangeEvent.cs
- TableLayout.cs
- PageThemeCodeDomTreeGenerator.cs
- ResourcePermissionBaseEntry.cs
- TraceFilter.cs
- EnumBuilder.cs
- Crypto.cs
- IERequestCache.cs
- GridViewPageEventArgs.cs
- WebPartZoneBase.cs
- Int64KeyFrameCollection.cs
- ClientRoleProvider.cs
- RectIndependentAnimationStorage.cs
- BitVec.cs
- __ComObject.cs
- ErrorTableItemStyle.cs
- KeyNotFoundException.cs
- EntityTypeEmitter.cs
- MsmqBindingElementBase.cs
- BaseAutoFormat.cs
- IndexOutOfRangeException.cs
- GregorianCalendar.cs
- AttributeUsageAttribute.cs
- SqlBulkCopy.cs