Table of Contents

Class PublishedValue<T>

Namespace
nadena.dev.ndmf.preview

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 T
debugName string

Fields

DebugName

public string DebugName

Field Value

string

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>