class · System.Reactive
Computed<T>
public class System.Reactive.Computed<T> : System.Any
A value computed from reactive ones, kept until one of them changes: what computed T P => e; makes.
- Tipo
- class
- Espacio de nombres
- System.Reactive
- Ensamblado
- System.Core
- Acceso
- public, final
- Archivo fuente
Reactive.ant
Parámetros de tipo
| Nombre | Restricciones |
|---|---|
T | cualquier tipo |
Herencia
- Clases base
-
AnyComputed<T>
Constructores
constructor Computed(compute: func<> : T)
#
Propiedades
property Value: T
#
The value (computed now when stale); reading it inside an effect makes the effect depend on it.
Whether the next read computes it again.
Métodos
method Dispose() -> void
#
Stops tracking: it keeps its last value and no Source invalidates it again.
Miembros privados e internos (5)
field compute: func<> : T
#
field value: T
#
field source: System.Reactive.Source
#
field tracker: System.Reactive.Effect
#
method Refresh() -> void
#
Miembros heredados (5)
GetTypemétodo de AnyUndescribedmétodo de AnyToStringmétodo de AnyHashmétodo de Anydestroymétodo de Any
Código fuente
Computed<T> en Larva HIR, descompilado a partir de su Larva HIR.
// A value computed from reactive ones, kept until one of them changes: what `computed T P => e;` makes.
public class System.Reactive.Computed<T> : System.Any
{
field compute: func<> : T
field value: T
field source: System.Reactive.Source
field tracker: System.Reactive.Effect
method Refresh() -> void
constructor Computed(compute: func<> : T)
// Stops tracking: it keeps its last value and no Source invalidates it again.
method Dispose() -> void
// The value (computed now when stale); reading it inside an effect makes the effect depend on it.
property Value: T
// Whether the next read computes it again.
property Stale: bool
}