Static
EqualsDetermines whether the specified object instances are considered equal.
The first object to compare.
The second object to compare.
true if the objects are considered equal; otherwise, false. If both objA and objB are null, the method returns true.
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.
Gets a value indicating whether this DataValue instance represents a null value, or, more precisely, an invalid value with a null data error.
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.
Gets or sets the runtime value contained in this DataValue instance, as a boxed value. The getter returns null for reference types and default(T) for value types, if the HasValidValue is false. After setting a valid value HasValidValue will be true, HasDataError and IsNullValue will be false, and DataError will return null.
Sets this DataValue instance equal to another DataValue instance.
The other DataValue.
Makes this DataValue instance represent 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 or default(T).
Static
CreateCreates a DataValue instance of a given data type.
A non-null DataType instance.
A new DataValue instance of the given type, initially set to a null value.
Creates a DataValue instance of a given runtime type.
Generic type argument
A new DataValue instance of the given type, initially set to a null value.
Creates a DataValue instance of a given data type and with a provided initial value.
A non-null DataType instance.
The value. If null, the initial value will be null.
A new DataValue instance.
Creates a DataValue instance of a given runtime type and with a provided initial value.
Generic type argument
The initial value. If null, then IsNullValue will be true.
A new DataValue instance.
Creates a DataValue instance of a given runtime type and with a provided initial value. This method is redundant but useful in practice.
A new DataValue instance.
Generic flyweight data value container.
Since
2.0