Struct ValueContainer<T>
Value container structure that implements IValueSource<T> interface.
public struct ValueContainer<T> : IValueSource<T>
Type Parameters
T
Type of the value.
- Implements
-
IValueSource<T>
Constructors
- ValueContainer()
Initializes a new instance of the ValueContainer<T> struct.
- ValueContainer(Action)
Initializes a new instance of the ValueContainer<T> struct with the specified action which is executed when value is changed.
- ValueContainer(T?)
Initializes a new instance of the ValueContainer<T> struct with the specified default value.
Properties
- IsNull
Gets whether value is null.
- Value
Gets or sets value.
Methods
- RaiseChanged()
Raises events after value is changed.
- ValueEquals(T?)
Compares this value with the another value.
Events
- ValueChanged
Occurs when the value is changed.