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
- ImportCatalogPart.cs
- SqlDataSourceView.cs
- LineUtil.cs
- SortKey.cs
- _OverlappedAsyncResult.cs
- WeakHashtable.cs
- DynamicResourceExtensionConverter.cs
- SqlDelegatedTransaction.cs
- HandlerFactoryCache.cs
- PlainXmlDeserializer.cs
- DocumentOrderQuery.cs
- BackgroundFormatInfo.cs
- BoolExpressionVisitors.cs
- CssClassPropertyAttribute.cs
- _AutoWebProxyScriptHelper.cs
- EntityProviderServices.cs
- ProtocolsConfigurationHandler.cs
- TreeViewAutomationPeer.cs
- updateconfighost.cs
- EndpointAddressMessageFilterTable.cs
- Utils.cs
- ImmutableObjectAttribute.cs
- IConvertible.cs
- InternalTypeHelper.cs
- ValueConversionAttribute.cs
- DataObjectMethodAttribute.cs
- WebPartConnectionsCancelEventArgs.cs
- UnsafeNativeMethods.cs
- oledbmetadatacolumnnames.cs
- NameValueFileSectionHandler.cs
- SqlEnums.cs
- DataTable.cs
- RSAPKCS1SignatureDeformatter.cs
- mda.cs
- CngProperty.cs
- SerializationAttributes.cs
- AuthenticationServiceManager.cs
- QilParameter.cs
- StringSorter.cs
- DataGridHelper.cs
- ToolBarButtonClickEvent.cs
- WebServiceData.cs
- LogReserveAndAppendState.cs
- DocumentViewer.cs
- TemplateControlParser.cs
- DataFormats.cs
- PrinterSettings.cs
- Span.cs
- UnionCqlBlock.cs
- HtmlHead.cs
- DataGridDetailsPresenterAutomationPeer.cs
- RepeaterItemCollection.cs
- DataListItemCollection.cs
- EntityDataSourceSelectedEventArgs.cs
- Blend.cs
- StringStorage.cs
- Module.cs
- TextRangeEdit.cs
- MessageFault.cs
- SqlUnionizer.cs
- DesignerLabelAdapter.cs
- WebPartActionVerb.cs
- TextRangeEdit.cs
- WindowsFormsHelpers.cs
- BasicExpressionVisitor.cs
- TreeNodeSelectionProcessor.cs
- HttpAsyncResult.cs
- HtmlMeta.cs
- TemplateEditingFrame.cs
- SQLGuidStorage.cs
- CompilationSection.cs
- SemaphoreSecurity.cs
- FixedLineResult.cs
- TCEAdapterGenerator.cs
- DiagnosticTrace.cs
- TypeExtension.cs
- SafeNativeMethods.cs
- ViewStateException.cs
- ParallelTimeline.cs
- DoubleAverageAggregationOperator.cs
- FrameworkPropertyMetadata.cs
- SettingsPropertyCollection.cs
- TypedElement.cs
- ConfigXmlSignificantWhitespace.cs
- TerminatorSinks.cs
- CustomLineCap.cs
- XmlSchemaValidationException.cs
- IdnElement.cs
- RegularExpressionValidator.cs
- RowToFieldTransformer.cs
- DigestTraceRecordHelper.cs
- TypeSystem.cs
- ColorDialog.cs
- DataRowCollection.cs
- NullableFloatSumAggregationOperator.cs
- AuthenticatedStream.cs
- ToolStripLabel.cs
- LassoHelper.cs
- SystemColors.cs
- ExeConfigurationFileMap.cs