Click or drag to resize

AltaxoVariant Structure

AltaxoVariant is the universal datatype used to return the value of a data column, it is necessary because the type of the column can be text, date, or double I decided to use struct which only holds the object because of its efficiency AltaxoVariant is never used to store the data in the array, for this purpose the native data types are used
Inheritance Hierarchy
SystemObject
  SystemValueType
    Altaxo.DataAltaxoVariant

Namespace: Altaxo.Data
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public struct AltaxoVariant : IComparable, 
	IFormattable

The AltaxoVariant type exposes the following members.

Constructors
 NameDescription
Public methodAltaxoVariant(AltaxoVariant)Initializes a new instance of the AltaxoVariant class
Public methodAltaxoVariant(DateTime)Initializes a new instance of the AltaxoVariant class
Public methodAltaxoVariant(DateTimeOffset)Initializes a new instance of the AltaxoVariant class
Public methodAltaxoVariant(Double)Initializes a new instance of the AltaxoVariant class
Public methodAltaxoVariant(Object)Initializes a new instance of the AltaxoVariant class
Public methodAltaxoVariant(String)Initializes a new instance of the AltaxoVariant class
Top
Properties
 NameDescription
Public propertyCanConvertedToDouble 
Public propertyIsEmpty 
Public propertyIsNativeNumeric Gets a value indicating whether this instance holds a native numeric value, as for instance of type double or DateTime.
Top
Methods
 NameDescription
Public methodEquals
(Overrides ValueTypeEquals(Object))
Public methodGetHashCode
(Overrides ValueTypeGetHashCode)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodIsType 
Public methodIsTypeOrNull 
Public methodToDateTime Converts the content to a DateTime if possible. The structure remains unchanged.
Public methodToDateTimeOffset Converts the content to a DateTime if possible. The structure remains unchanged.
Public methodToDouble Converts the content to a double if possible. The structure remains unchanged.
Public methodToDoubleOrNaN Converts the content to a double, if possible. The structure remains unchanged.
Public methodToNullableBoolean Converts the variant to a nullable boolean value.
Public methodToObject Converts the content to an object. This conversion is always possible. The structure remains unchanged.
Public methodToString
(Overrides ValueTypeToString)
Public methodToString(String, IFormatProvider) 
Top
Operators
See Also