Code:
/ 4.0 / 4.0 / 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. //------------------------------------------------------------------------------ //// 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
- OracleDataReader.cs
- HealthMonitoringSectionHelper.cs
- ProxyManager.cs
- WebRequestModuleElementCollection.cs
- SingleResultAttribute.cs
- RSAOAEPKeyExchangeFormatter.cs
- Assert.cs
- NetStream.cs
- ArrayHelper.cs
- VariableBinder.cs
- NavigationService.cs
- BaseParagraph.cs
- RestHandlerFactory.cs
- ConfigurationStrings.cs
- EncodingStreamWrapper.cs
- ObjectViewEntityCollectionData.cs
- ForeignConstraint.cs
- PropertyGridCommands.cs
- TagMapInfo.cs
- PeerInputChannelListener.cs
- SimpleRecyclingCache.cs
- Emitter.cs
- DbParameterHelper.cs
- BackStopAuthenticationModule.cs
- Vector3DConverter.cs
- SharedStatics.cs
- CatalogZoneAutoFormat.cs
- EndpointPerformanceCounters.cs
- AccessDataSourceView.cs
- HtmlUtf8RawTextWriter.cs
- SecurityUtils.cs
- BasicExpandProvider.cs
- Point4DConverter.cs
- ProfileProvider.cs
- SemaphoreFullException.cs
- EventDescriptor.cs
- NameTable.cs
- ResXBuildProvider.cs
- EditorZoneDesigner.cs
- RegexRunnerFactory.cs
- RowToParametersTransformer.cs
- Expr.cs
- AdapterSwitches.cs
- ObservableCollection.cs
- CatalogPartCollection.cs
- EventWaitHandleSecurity.cs
- ScriptComponentDescriptor.cs
- MetadataItemCollectionFactory.cs
- DataGridViewCellEventArgs.cs
- ResizeGrip.cs
- BufferModeSettings.cs
- MetadataSerializer.cs
- _HelperAsyncResults.cs
- FlowSwitch.cs
- PropertyDescriptorCollection.cs
- HttpRuntimeSection.cs
- FormatConvertedBitmap.cs
- InputScopeAttribute.cs
- CodeIterationStatement.cs
- NumericPagerField.cs
- EnumType.cs
- Vector3DCollectionConverter.cs
- PermissionRequestEvidence.cs
- UnionExpr.cs
- RawStylusInputReport.cs
- _DomainName.cs
- InvalidPrinterException.cs
- HasCopySemanticsAttribute.cs
- tibetanshape.cs
- HttpEncoderUtility.cs
- SocketAddress.cs
- IMembershipProvider.cs
- RoleManagerSection.cs
- DelayedRegex.cs
- XmlSchemaSequence.cs
- KeyProperty.cs
- BuildProvidersCompiler.cs
- DataGridViewRowCollection.cs
- MetaType.cs
- DocComment.cs
- PeerName.cs
- GuidelineSet.cs
- ShaperBuffers.cs
- DWriteFactory.cs
- SmtpSection.cs
- EnumMember.cs
- InternalRelationshipCollection.cs
- ToolboxItemAttribute.cs
- ComponentChangedEvent.cs
- NodeFunctions.cs
- EntryIndex.cs
- odbcmetadatacolumnnames.cs
- CollectionView.cs
- DataViewSetting.cs
- UnrecognizedPolicyAssertionElement.cs
- CompositeDataBoundControl.cs
- CheckPair.cs
- ShapeTypeface.cs
- WebBrowser.cs
- DynamicObject.cs