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
- OnOperation.cs
- PenLineCapValidation.cs
- ColorAnimationBase.cs
- CharAnimationUsingKeyFrames.cs
- SchemaCreator.cs
- OleDragDropHandler.cs
- EventLogEntryCollection.cs
- XmlSchemaSimpleType.cs
- RequestQueue.cs
- ObjectStateEntryOriginalDbUpdatableDataRecord.cs
- Pkcs9Attribute.cs
- SafeRightsManagementPubHandle.cs
- DispatcherObject.cs
- UserControl.cs
- DataAdapter.cs
- HtmlFormParameterReader.cs
- ConnectionPoint.cs
- JpegBitmapDecoder.cs
- ReflectionTypeLoadException.cs
- XPathException.cs
- DataGridPagerStyle.cs
- ConnectionPoolRegistry.cs
- ToolStripItemBehavior.cs
- ApplicationActivator.cs
- XmlElement.cs
- ZipIOBlockManager.cs
- PropertyGrid.cs
- HideDisabledControlAdapter.cs
- ReplyChannelBinder.cs
- PassportAuthenticationModule.cs
- XmlLanguageConverter.cs
- OleDbException.cs
- ImportDesigner.xaml.cs
- MatrixKeyFrameCollection.cs
- EnumType.cs
- PriorityQueue.cs
- DispatcherHooks.cs
- GridViewRow.cs
- ObjectStateEntry.cs
- NameNode.cs
- QueryOutputWriterV1.cs
- SafeNativeMethodsMilCoreApi.cs
- PageParserFilter.cs
- SystemTcpStatistics.cs
- ThemeableAttribute.cs
- ListBase.cs
- SimpleBitVector32.cs
- ConfigurationManagerHelper.cs
- DocumentPageViewAutomationPeer.cs
- CollectionConverter.cs
- CollectionViewGroup.cs
- RowSpanVector.cs
- ControlsConfig.cs
- DataObjectSettingDataEventArgs.cs
- DataPagerFieldCommandEventArgs.cs
- WindowsTokenRoleProvider.cs
- SqlUserDefinedAggregateAttribute.cs
- TCPClient.cs
- ColorContextHelper.cs
- FutureFactory.cs
- brushes.cs
- ScriptResourceHandler.cs
- ColumnTypeConverter.cs
- HttpModulesInstallComponent.cs
- TableCellCollection.cs
- AppliedDeviceFiltersDialog.cs
- CheckBoxPopupAdapter.cs
- PartialCachingAttribute.cs
- RadioButton.cs
- CodeStatement.cs
- InstanceCreationEditor.cs
- WebServiceHandler.cs
- SystemColorTracker.cs
- SessionStateModule.cs
- EditorZoneBase.cs
- XmlAttributeProperties.cs
- WindowsServiceElement.cs
- TextRange.cs
- PermissionAttributes.cs
- SimpleRecyclingCache.cs
- AddInEnvironment.cs
- thaishape.cs
- SurrogateSelector.cs
- OutOfProcStateClientManager.cs
- OlePropertyStructs.cs
- XmlLanguageConverter.cs
- GZipUtils.cs
- Marshal.cs
- DataObjectPastingEventArgs.cs
- RestHandler.cs
- DeviceContext2.cs
- EntityDataSourceColumn.cs
- Exceptions.cs
- AesManaged.cs
- TrackingProfile.cs
- ThemeInfoAttribute.cs
- WebHttpBindingCollectionElement.cs
- OracleBoolean.cs
- DocumentSequence.cs
- HttpCookieCollection.cs