Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / Xml / System / Xml / XPath / XPathItem.cs / 1 / XPathItem.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// [....]
//-----------------------------------------------------------------------------
using System;
using System.Collections;
using System.Xml.Schema;
namespace System.Xml.XPath {
///
/// Base class for XPathNavigator and XmlAtomicValue.
///
public abstract class XPathItem {
///
/// True if this item is a node, and not an atomic value.
///
public abstract bool IsNode { get; }
///
/// Returns Xsd type of atomic value, or of node's content.
///
public abstract XmlSchemaType XmlType { get; }
///
/// Typed and untyped value accessors.
///
public abstract string Value { get; }
public abstract object TypedValue { get; }
public abstract Type ValueType { get; }
public abstract bool ValueAsBoolean { get; }
public abstract DateTime ValueAsDateTime { get; }
public abstract double ValueAsDouble { get; }
public abstract int ValueAsInt { get; }
public abstract long ValueAsLong { get; }
public virtual object ValueAs(Type returnType) { return ValueAs(returnType, null); }
public abstract object ValueAs(Type returnType, IXmlNamespaceResolver nsResolver);
}
}
// 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
- LazyTextWriterCreator.cs
- HtmlTableRowCollection.cs
- Page.cs
- WebEventCodes.cs
- XPathItem.cs
- CommonXSendMessage.cs
- RegexMatchCollection.cs
- InputQueue.cs
- XappLauncher.cs
- HttpCachePolicy.cs
- TypeHelpers.cs
- recordstatescratchpad.cs
- DataGridViewToolTip.cs
- GestureRecognizer.cs
- DeviceFilterEditorDialog.cs
- DoubleConverter.cs
- PropertyValueChangedEvent.cs
- ServiceSecurityContext.cs
- Stack.cs
- LinearKeyFrames.cs
- ResourceBinder.cs
- DbSource.cs
- SaveLedgerEntryRequest.cs
- DivideByZeroException.cs
- PropertySegmentSerializer.cs
- StringPropertyBuilder.cs
- Composition.cs
- Rect3DConverter.cs
- ScrollContentPresenter.cs
- FamilyTypeface.cs
- HttpResponseInternalWrapper.cs
- DbMetaDataFactory.cs
- Signature.cs
- Wizard.cs
- EncoderExceptionFallback.cs
- SqlExpressionNullability.cs
- WebBrowsableAttribute.cs
- DBCommandBuilder.cs
- ExpressionConverter.cs
- PointAnimationUsingKeyFrames.cs
- FactoryRecord.cs
- ClonableStack.cs
- PolyBezierSegmentFigureLogic.cs
- ElementNotAvailableException.cs
- MTConfigUtil.cs
- ConfigXmlDocument.cs
- ResourceDescriptionAttribute.cs
- TabRenderer.cs
- Vector.cs
- WhitespaceSignificantCollectionAttribute.cs
- HttpModuleActionCollection.cs
- XmlSchemaCollection.cs
- Expr.cs
- SqlDataSourceView.cs
- InternalDuplexBindingElement.cs
- XmlQueryOutput.cs
- BaseTemplateBuildProvider.cs
- SearchForVirtualItemEventArgs.cs
- Pointer.cs
- OleDbEnumerator.cs
- RSAPKCS1SignatureDeformatter.cs
- CaseInsensitiveComparer.cs
- SerializationAttributes.cs
- SelfIssuedAuthRSAPKCS1SignatureDeformatter.cs
- ComponentTray.cs
- ACE.cs
- Activator.cs
- WhitespaceRule.cs
- DataContext.cs
- X509SecurityTokenProvider.cs
- RequestCache.cs
- XmlWriterDelegator.cs
- CompiledXpathExpr.cs
- ConfigXmlCDataSection.cs
- TypeConverterAttribute.cs
- KeySplineConverter.cs
- OletxCommittableTransaction.cs
- ValidationRule.cs
- SqlCrossApplyToCrossJoin.cs
- XmlSiteMapProvider.cs
- CompositeFontParser.cs
- columnmapfactory.cs
- UnderstoodHeaders.cs
- RootBrowserWindow.cs
- VirtualizingStackPanel.cs
- DataGridRowHeader.cs
- OrElse.cs
- Function.cs
- XslCompiledTransform.cs
- CreateUserErrorEventArgs.cs
- GridViewCellAutomationPeer.cs
- ObjectKeyFrameCollection.cs
- ListViewInsertedEventArgs.cs
- ComponentResourceKeyConverter.cs
- RegularExpressionValidator.cs
- Span.cs
- XmlName.cs
- DataObjectCopyingEventArgs.cs
- SamlAdvice.cs
- TerminatorSinks.cs