Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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. // //[....] //----------------------------------------------------------------------------- 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
- FloaterParaClient.cs
- DoubleLinkList.cs
- DescendantBaseQuery.cs
- StreamUpgradeAcceptor.cs
- TimeManager.cs
- XmlWellformedWriter.cs
- PropertyKey.cs
- SqlFactory.cs
- HttpWriter.cs
- OperationAbortedException.cs
- WindowsListViewItem.cs
- MessageContractExporter.cs
- DocumentPage.cs
- ResourceCategoryAttribute.cs
- BookmarkList.cs
- XmlException.cs
- GridViewColumnHeaderAutomationPeer.cs
- FormsAuthenticationEventArgs.cs
- Geometry3D.cs
- XPathNavigator.cs
- SqlVisitor.cs
- ThemeInfoAttribute.cs
- BitmapPalette.cs
- TrackingStringDictionary.cs
- FieldValue.cs
- DesignerTextBoxAdapter.cs
- DataTableCollection.cs
- NestedContainer.cs
- SecureUICommand.cs
- AttachmentCollection.cs
- HostedImpersonationContext.cs
- BitmapEffectCollection.cs
- XmlUnspecifiedAttribute.cs
- PointHitTestResult.cs
- HttpRawResponse.cs
- CookieProtection.cs
- StateDesigner.Layouts.cs
- ApplicationHost.cs
- NativeMsmqMessage.cs
- NameObjectCollectionBase.cs
- Sentence.cs
- DiagnosticTrace.cs
- FormViewModeEventArgs.cs
- ListViewTableCell.cs
- Stack.cs
- ComponentEditorPage.cs
- SqlCachedBuffer.cs
- DocumentOutline.cs
- LineProperties.cs
- SendSecurityHeader.cs
- CompositeFontParser.cs
- HighlightComponent.cs
- PrimitiveList.cs
- NativeActivityMetadata.cs
- BitSet.cs
- HttpAsyncResult.cs
- CompilerInfo.cs
- PrintPreviewControl.cs
- XmlRootAttribute.cs
- SpellerInterop.cs
- CorrelationValidator.cs
- ConstructorBuilder.cs
- CompModHelpers.cs
- QueryPrefixOp.cs
- FileRecordSequenceHelper.cs
- DataFormats.cs
- GeneralTransform3DTo2DTo3D.cs
- XmlElementAttributes.cs
- RemoteWebConfigurationHostStream.cs
- DispatchWrapper.cs
- BuildProvidersCompiler.cs
- ProgressBarHighlightConverter.cs
- WinFormsSecurity.cs
- LambdaExpression.cs
- HWStack.cs
- CmsInterop.cs
- ZoneButton.cs
- AuthenticationModuleElement.cs
- DataBindingsDialog.cs
- DefaultTextStore.cs
- TreeNodeBinding.cs
- XmlTextReader.cs
- SqlDataAdapter.cs
- ForwardPositionQuery.cs
- PartialArray.cs
- XmlLoader.cs
- SqlDataAdapter.cs
- SafeRightsManagementQueryHandle.cs
- BoolExpr.cs
- BuildDependencySet.cs
- WebPartAddingEventArgs.cs
- DynamicDataResources.Designer.cs
- IProducerConsumerCollection.cs
- Int32Rect.cs
- DropShadowBitmapEffect.cs
- ReflectionTypeLoadException.cs
- WebPartConnectionCollection.cs
- XmlAttribute.cs
- AttachedPropertyBrowsableWhenAttributePresentAttribute.cs
- DataSetUtil.cs