You are here: Start » AVL.NET » NullableValue<T> Class

NullableValue<T> Class

Represents a value that can be passed or returned optionally.

Namespace:AvlNet
Assembly:AVL.NET.TS.dll

Constructors

 ConstructorDescription
NullableValue<T>(T)Creates a new non-empty NullableValue<T> object that holds reference to the obj. If obj is null this constructor is equivalent to the parameterless one.
NullableValue<T>(Nullable<T>)Creates a new non-empty NullableValue<T> object that holds reference to the obj. If obj is null this constructor is equivalent to the parameterless one.
NullableValue<T>()Creates a new empty NullableValue<T> object, for which HasValue property is false.

Properties

 NameTypeDescription
AutoAvlNet.NullableValue<T>Gets an empty value, for which HasValue property is false.
HasValueSystem.BooleanGets a value indicating whether the current NullableValue<T> object has a valid value of its underlying type.
ValueTGets the value of the current NullableValue<T> object if the HasValue property is true. An exception is thrown if the HasValue property is false.

Methods

 NameDescription
Equals(NullableValue<T>)
Equals(object)Inherited from System.Object
GetHashCode()Inherited from System.Object
GetType()Inherited from System.Object
Release()Detaches value of the current NullableValue<T> object if HasValue property is true and sets this object as an empty. An exception is thrown if HasValue property is false.
Reset()Resets the current NullableValue<T> object to an empty value (HasValue is equal to false)
Reset(T)Resets the current NullableValue<T> object to a new, non-null value (HasValue is equal to true)
ToString()Inherited from System.Object

Remarks

See also