Class PublishedValue<T>
A holder of a value which can be subscribed to (using ComputeContext) to receive invalidation events when the value changes.
public sealed class PublishedValue<T>
Type Parameters
T
- Inheritance
-
PublishedValue<T>
- Inherited Members
Constructors
PublishedValue(T, string)
public PublishedValue(T value, string debugName = null)
Parameters
value
TdebugName
string
Fields
DebugName
public string DebugName
Field Value
Properties
Value
public T Value { get; set; }
Property Value
- T
Methods
SetWithoutNotify(T)
public void SetWithoutNotify(T value)
Parameters
value
T
Events
OnChange
public event Action<T> OnChange
Event Type
- Action<T>