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
- Shape.cs
- SafeLibraryHandle.cs
- SchemaSetCompiler.cs
- CharacterString.cs
- SweepDirectionValidation.cs
- SiteMapHierarchicalDataSourceView.cs
- controlskin.cs
- OdbcEnvironmentHandle.cs
- ReliableMessagingVersionConverter.cs
- NamespaceEmitter.cs
- DurableInstanceProvider.cs
- EmptyEnumerator.cs
- AssignDesigner.xaml.cs
- ZoneButton.cs
- WindowsListView.cs
- DefaultProxySection.cs
- SoapRpcServiceAttribute.cs
- PassportAuthenticationEventArgs.cs
- UntypedNullExpression.cs
- LabelDesigner.cs
- StringBuilder.cs
- Merger.cs
- ClientSession.cs
- HandlerFactoryWrapper.cs
- ClaimTypeElementCollection.cs
- ObfuscationAttribute.cs
- Delegate.cs
- UnknownBitmapEncoder.cs
- ExternalException.cs
- OperandQuery.cs
- UnmanagedMemoryAccessor.cs
- DataChangedEventManager.cs
- Missing.cs
- Geometry3D.cs
- codemethodreferenceexpression.cs
- SystemDiagnosticsSection.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- AnnotationMap.cs
- SqlSupersetValidator.cs
- ListViewSelectEventArgs.cs
- NativeMethods.cs
- RecommendedAsConfigurableAttribute.cs
- GetPageCompletedEventArgs.cs
- ToolStripItemCollection.cs
- BitmapEffectGroup.cs
- UdpDuplexChannel.cs
- StringFunctions.cs
- PageHandlerFactory.cs
- CheckBoxFlatAdapter.cs
- OleDbConnectionInternal.cs
- SoapSchemaExporter.cs
- RemoteWebConfigurationHostServer.cs
- Error.cs
- ObjectSecurity.cs
- EventHandlerList.cs
- TimeIntervalCollection.cs
- TrackingDataItemValue.cs
- SpeechRecognitionEngine.cs
- ListViewTableCell.cs
- GridView.cs
- SystemPens.cs
- Int64Storage.cs
- NativeCppClassAttribute.cs
- DatasetMethodGenerator.cs
- TableChangeProcessor.cs
- StylusPointPropertyUnit.cs
- Int64Converter.cs
- IncrementalReadDecoders.cs
- DriveInfo.cs
- WebPartConnectionsCancelEventArgs.cs
- CommandHelpers.cs
- AssemblyAttributesGoHere.cs
- ToolStripButton.cs
- ToolStrip.cs
- XmlSchemaSimpleType.cs
- KeyConstraint.cs
- EncryptedKey.cs
- LoginUtil.cs
- CompleteWizardStep.cs
- ByteStack.cs
- DesignerVerbCollection.cs
- TextServicesCompartmentContext.cs
- dataprotectionpermissionattribute.cs
- SafeSystemMetrics.cs
- OpenTypeLayout.cs
- PenLineCapValidation.cs
- OneOfConst.cs
- ListBoxItem.cs
- LoginDesigner.cs
- ElementHostAutomationPeer.cs
- SemaphoreFullException.cs
- XsdDateTime.cs
- CallbackTimeoutsBehavior.cs
- FigureParagraph.cs
- DataSourceHelper.cs
- SchemaDeclBase.cs
- InputChannelAcceptor.cs
- BigInt.cs
- TypeResolvingOptionsAttribute.cs
- RsaKeyIdentifierClause.cs