Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / Xml / System / Xml / XPath / Internal / AbsoluteQuery.cs / 1 / 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.
// Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DataSourceUtil.cs
- OpenTypeCommon.cs
- DbBuffer.cs
- DataServiceQueryProvider.cs
- ListViewDesigner.cs
- NetworkInformationException.cs
- DebuggerService.cs
- SoapEnumAttribute.cs
- TitleStyle.cs
- TableLayoutCellPaintEventArgs.cs
- WindowInteractionStateTracker.cs
- ImageClickEventArgs.cs
- EntityContainer.cs
- DynamicQueryableWrapper.cs
- ACE.cs
- WorkflowTransactionService.cs
- DataTable.cs
- AuthenticationServiceManager.cs
- TransactionFlowProperty.cs
- XmlSchemaAny.cs
- WhereQueryOperator.cs
- DocumentPageView.cs
- SqlWebEventProvider.cs
- FunctionGenerator.cs
- BindingCollectionElement.cs
- InputScopeManager.cs
- OdbcDataAdapter.cs
- RtfToken.cs
- SubpageParagraph.cs
- AddInController.cs
- SQLSingleStorage.cs
- DefaultAsyncDataDispatcher.cs
- XmlStringTable.cs
- WbemException.cs
- ElementHostPropertyMap.cs
- TreeView.cs
- PartialCachingControl.cs
- PersianCalendar.cs
- Lasso.cs
- RelatedPropertyManager.cs
- RuleInfoComparer.cs
- SyntaxCheck.cs
- LinqDataSource.cs
- SqlParameterCollection.cs
- WindowsIdentity.cs
- PathFigureCollectionValueSerializer.cs
- WizardPanel.cs
- DragStartedEventArgs.cs
- TriggerBase.cs
- ProfileBuildProvider.cs
- TransactionScope.cs
- ValidatorCollection.cs
- HotCommands.cs
- GraphicsPathIterator.cs
- ProfileParameter.cs
- DependencyPropertyDescriptor.cs
- SafeNativeMethodsMilCoreApi.cs
- AnnotationHelper.cs
- Storyboard.cs
- MaterializeFromAtom.cs
- ChannelOptions.cs
- SmtpReplyReaderFactory.cs
- ImageConverter.cs
- EntityException.cs
- EventLog.cs
- CodeLabeledStatement.cs
- TextBoxAutoCompleteSourceConverter.cs
- DataColumnMappingCollection.cs
- BrowserCapabilitiesCompiler.cs
- DocumentManager.cs
- Line.cs
- FormsAuthentication.cs
- EraserBehavior.cs
- Logging.cs
- ControlBuilderAttribute.cs
- PropertyMappingExceptionEventArgs.cs
- AnimationClock.cs
- HtmlTableRow.cs
- DrawingAttributes.cs
- PointHitTestParameters.cs
- CombinedGeometry.cs
- CustomErrorCollection.cs
- RadioButtonAutomationPeer.cs
- CfgParser.cs
- SafeCryptHandles.cs
- ConsumerConnectionPoint.cs
- smtpconnection.cs
- Encoder.cs
- ItemsPresenter.cs
- Rect3D.cs
- IncrementalHitTester.cs
- AjaxFrameworkAssemblyAttribute.cs
- Types.cs
- SignatureDescription.cs
- IntranetCredentialPolicy.cs
- SrgsSemanticInterpretationTag.cs
- XslCompiledTransform.cs
- NativeMethods.cs
- TraceContextEventArgs.cs
- _ContextAwareResult.cs