Click or drag to resize

AltaxoVariant Structure

AltaxoVariant is the universal data type used to return the value of a data column. It is necessary because the type of the column can be text, date, or double. This type is implemented as a struct for efficiency. AltaxoVariant is never used to store the data in an 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.3572.0 (4.8.3572.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 struct by copying another variant.
Public methodAltaxoVariant(DateTime) Initializes a new instance of the AltaxoVariant struct from a DateTime value.
Public methodAltaxoVariant(DateTimeOffset) Initializes a new instance of the AltaxoVariant struct from a DateTimeOffset value.
Public methodAltaxoVariant(Double) Initializes a new instance of the AltaxoVariant struct from a Double value.
Public methodAltaxoVariant(Object) Initializes a new instance of the AltaxoVariant struct from an arbitrary object.
Public methodAltaxoVariant(String) Initializes a new instance of the AltaxoVariant struct from a string value.
Top
Properties
 NameDescription
Public propertyCanConvertedToDouble Gets a value indicating whether the stored value can be converted to a Double.
Public propertyIsEmpty Gets a value indicating whether this instance is empty.
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 methodEqualsIndicates whether this instance and a specified object are equal.
(Overrides ValueTypeEquals(Object))
Public methodGetHashCodeReturns the hash code for this instance.
(Overrides ValueTypeGetHashCode)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodIsType Determines whether this instance contains the specified content type.
Public methodIsTypeOrNull Determines whether this instance contains the specified content type or is empty.
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 methodToStringReturns the fully qualified type name of this instance.
(Overrides ValueTypeToString)
Public methodToString(String, IFormatProvider)Formats the value of the current instance using the specified format.
Top
Operators
 NameDescription
Public operatorStatic memberAddition(AltaxoVariant, AltaxoVariant) Adds two variants.
Public operatorStatic memberBitwiseAnd(AltaxoVariant, AltaxoVariant) Applies the bitwise AND operator to two variants.
Public operatorStatic memberBitwiseOr(AltaxoVariant, AltaxoVariant) Applies the bitwise OR operator to two variants.
Public operatorStatic memberDecrement(AltaxoVariant) Decrements a variant.
Public operatorStatic memberDivision(AltaxoVariant, AltaxoVariant) Divides one variant by another.
Public operatorStatic memberEquality(AltaxoVariant, AltaxoVariant) Determines whether two variants are equal.
Public operatorStatic memberExclusiveOr(AltaxoVariant, AltaxoVariant) Applies the bitwise XOR operator to two variants.
Public operatorStatic memberFalse(AltaxoVariant) Determines whether a variant evaluates to .
Public operatorStatic memberGreaterThan(AltaxoVariant, AltaxoVariant) Determines whether one variant is greater than another.
Public operatorStatic memberGreaterThanOrEqual(AltaxoVariant, AltaxoVariant) Determines whether one variant is greater than or equal to another.
Public operatorStatic member(AltaxoVariant to DateTime) Converts a variant containing a DateTime to a DateTime.
Public operatorStatic member(AltaxoVariant to DateTimeOffset) Converts a variant containing a DateTimeOffset to a DateTimeOffset.
Public operatorStatic member(AltaxoVariant to Double) Converts a variant containing a Double to a Double.
Public operatorStatic member(AltaxoVariant to String) Converts a variant containing a string to a string.
Public operatorStatic member(DateTime to AltaxoVariant) Converts a DateTime to an AltaxoVariant.
Public operatorStatic member(DateTimeOffset to AltaxoVariant) Converts a DateTimeOffset to an AltaxoVariant.
Public operatorStatic member(Double to AltaxoVariant) Converts a Double to an AltaxoVariant.
Public operatorStatic member(String to AltaxoVariant) Converts a string to an AltaxoVariant.
Public operatorStatic memberIncrement(AltaxoVariant) Increments a variant.
Public operatorStatic memberInequality(AltaxoVariant, AltaxoVariant) Determines whether two variants are not equal.
Public operatorStatic memberLeftShift(AltaxoVariant, Int32) Shifts a variant to the left.
Public operatorStatic memberLessThan(AltaxoVariant, AltaxoVariant) Determines whether one variant is less than another.
Public operatorStatic memberLessThanOrEqual(AltaxoVariant, AltaxoVariant) Determines whether one variant is less than or equal to another.
Public operatorStatic memberLogicalNot(AltaxoVariant) Applies the logical NOT operator to a variant.
Public operatorStatic memberModulus(AltaxoVariant, AltaxoVariant) Calculates the remainder of one variant divided by another.
Public operatorStatic memberMultiply(AltaxoVariant, AltaxoVariant) Multiplies two variants.
Public operatorStatic memberOnesComplement(AltaxoVariant) Applies the bitwise complement operator to a variant.
Public operatorStatic memberRightShift(AltaxoVariant, Int32) Shifts a variant to the right.
Public operatorStatic memberSubtraction(AltaxoVariant, AltaxoVariant) Subtracts one variant from another.
Public operatorStatic memberTrue(AltaxoVariant) Determines whether a variant evaluates to .
Public operatorStatic memberUnaryNegation(AltaxoVariant) Applies the unary minus operator to a variant.
Public operatorStatic memberUnaryPlus(AltaxoVariant) Applies the unary plus operator to a variant.
Top
See Also