Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Xml / System / Xml / XPath / XPathItem.cs / 1305376 / 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. // //[....] //----------------------------------------------------------------------------- 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- PasswordTextContainer.cs
- ConstrainedGroup.cs
- Crc32Helper.cs
- WinCategoryAttribute.cs
- NativeMethods.cs
- MessageAction.cs
- ObjectCloneHelper.cs
- QueryableDataSourceHelper.cs
- StateMachineSubscription.cs
- EventSource.cs
- RemoteWebConfigurationHostServer.cs
- StrongNameKeyPair.cs
- EventMap.cs
- ProfilePropertyMetadata.cs
- RequestCache.cs
- CopyOfAction.cs
- SecurityContext.cs
- WorkflowControlEndpoint.cs
- CultureTable.cs
- EncodingTable.cs
- Marshal.cs
- CodeTypeReference.cs
- CheckPair.cs
- DatatypeImplementation.cs
- XmlRawWriterWrapper.cs
- ListViewUpdateEventArgs.cs
- SqlConnectionString.cs
- InputLangChangeEvent.cs
- Hashtable.cs
- CurrentChangingEventArgs.cs
- X509CertificateChain.cs
- CreateParams.cs
- ContentType.cs
- SqlRemoveConstantOrderBy.cs
- DoubleCollectionConverter.cs
- TreeIterator.cs
- ValidatingPropertiesEventArgs.cs
- AsyncSerializedWorker.cs
- StringConcat.cs
- StreamGeometry.cs
- ArrayElementGridEntry.cs
- InvalidCommandTreeException.cs
- SqlCommandSet.cs
- PbrsForward.cs
- _NTAuthentication.cs
- IntegrationExceptionEventArgs.cs
- BitSet.cs
- DataSetUtil.cs
- ObjectReaderCompiler.cs
- SqlParameterizer.cs
- AssemblyResourceLoader.cs
- TextEditorTables.cs
- Attributes.cs
- BrowserDefinitionCollection.cs
- TextProperties.cs
- SignatureHelper.cs
- ButtonAutomationPeer.cs
- HwndSubclass.cs
- RepeaterItemCollection.cs
- TreeNodeBindingCollection.cs
- IntranetCredentialPolicy.cs
- Filter.cs
- CommandHelpers.cs
- BaseConfigurationRecord.cs
- SemanticResolver.cs
- AsyncCodeActivityContext.cs
- Roles.cs
- EnterpriseServicesHelper.cs
- DrawingDrawingContext.cs
- NotifyCollectionChangedEventArgs.cs
- PipelineComponent.cs
- ButtonBaseAutomationPeer.cs
- SchemaCollectionPreprocessor.cs
- LoadRetryConstantStrategy.cs
- ModuleElement.cs
- MultiTrigger.cs
- CheckedPointers.cs
- SchemaImporter.cs
- NumberFunctions.cs
- EventLog.cs
- LazyTextWriterCreator.cs
- ManipulationStartedEventArgs.cs
- Pts.cs
- dbenumerator.cs
- HuffModule.cs
- PresentationAppDomainManager.cs
- MsmqIntegrationBindingElement.cs
- LazyLoadBehavior.cs
- GcSettings.cs
- FileDialog.cs
- DataStorage.cs
- OracleConnectionString.cs
- MimeParameter.cs
- CodeDomConfigurationHandler.cs
- DependencyObject.cs
- VectorConverter.cs
- QuerySetOp.cs
- WindowsListViewGroupSubsetLink.cs
- SqlServices.cs
- BypassElement.cs