Generic flyweight data value container.
Inheritance Hierarchy
Spotfire.Dxp.DataDataValue
Spotfire.Dxp.DataDataValueT
Namespace: Spotfire.Dxp.Data
Assembly: Spotfire.Dxp.Data (in Spotfire.Dxp.Data.dll) Version: 30.0.11525.4184 (30.0.11525.4184)
Syntax
C#
public sealed class DataValue<T> : DataValue, IDataValueProducer
Type Parameters
- T
- The runtime type of the value.
The DataValueT type exposes the following members.
Constructors
Name | Description | |
---|---|---|
DataValueT | Obsolete.
Initializes a new instance of the DataValueT class.
Default constructor, which creates a null value.
| |
DataValueT(T) | Obsolete.
Initializes a new instance of the DataValueT class.
Creates a new instance with a valid value.
| |
DataValueT(T, Int32) | Obsolete.
Initializes a new instance of the DataValueT class.
Creates a new instance with a valid value.
| |
DataValueT(T, Int32, Boolean) | Obsolete.
Initializes a new instance of the DataValueT class.
Creates a new, possibly invalid instance.
|
Methods
Name | Description | |
---|---|---|
AssignFrom |
Sets this DataValue instance equal to another DataValue instance.
(Overrides DataValueAssignFrom(DataValue).) | |
Clone |
Creates a copy of this instance.
(Overrides DataValueClone.) | |
Equals |
Compares two DataValue instances for equality, using the System.Object implementation.
(Overrides ObjectEquals(Object).) | |
GetHashCode |
Gets a hash code for this instance, using the System.Object implementation.
(Overrides ObjectGetHashCode.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
Next | Obsolete.
The class can be used as a flyweight IDataValueProducer,
in which case a single instance is reused.
| |
SetNullValue |
Makes this DataValue instance represents a null value. That is, an invalid value with a null
data error. After the method call, HasValidValue will return false, IsNullValue will return true,
and HasDataError will return false. The ValidValue property will be null.
(Overrides DataValueSetNullValue.) | |
ToString |
Gets a string representation of this DataValue instance, intended for human readers and
debugging purposes.
(Overrides ObjectToString.) |
Properties
Name | Description | |
---|---|---|
DataError | Obsolete.
Gets or sets the data error contained in this DataValue instance.
The getter returns null if HasDataError is false.
After invoking the setter HasDataError will be true, HasValidValue and IsNullValue will be false,
and ValidValue will return a default value.
(Overrides DataValueDataError.) | |
DataType |
Gets the data type corresponding to the runtime values that can be stored in this value container.
The data type is fixed, since a data value cannot be used for values of varying types.
(Overrides DataValueDataType.) | |
ErrorValue | Obsolete.
Gets or sets the error associated with the contained value.
(Overrides DataValueErrorValue.) | |
HasDataError | Obsolete.
Gets a value indicating whether this DataValue (i) is invalid and (ii) has an associated
data error.
If HasDataError is true, then HasValidValue and IsNullValue are both false.
(Overrides DataValueHasDataError.) | |
HasValidValue |
Gets a value indicating whether this DataValue contains a valid value.
If HasValidValue is false, then either IsNullValue is true or HasDataError is true, but not both.
If HasValidValue is true, the IsNullValue and HasDataError are both false.
(Overrides DataValueHasValidValue.) | |
Index | Obsolete.
Gets the row index, if applicable.
(Overrides DataValueIndex.) | |
IsError | Obsolete.
Gets a value indicating whether this instance represents an error, such as a numeric overflow
in a calculation.
(Overrides DataValueIsError.) | |
IsNullValue |
Gets a value indicating whether this DataValue instance represents a null value,
or, more precisely, an invalid value with a null data error.
(Overrides DataValueIsNullValue.) | |
IsValid | Obsolete.
Gets or sets a value indicating whether there is a valid value.
(Overrides DataValueIsValid.) | |
ValidValue |
Gets or sets the valid value contained in this DataValue instance.
A default value is returned if there is no valid value.
After setting a valid value HasValidValue will be true, HasDataError and IsNullValue will be false,
and DataError will return null.
| |
Value | Obsolete.
Gets or sets the contained value. Note that unboxed values are used,
unlike the property with the same name in the base class.
|
Version Information
See Also