Table of Contents

Class ForwardedObservableBoolean

Namespace
CarinaStudio
Assembly
CarinaStudio.AppBase.Core.dll

ObservableValue<T> which forwards values from other IObservable<T>.

public class ForwardedObservableBoolean : ObservableValue<bool>, IObservable<bool>
Inheritance
ForwardedObservableBoolean
Implements
Inherited Members
Extension Methods

Constructors

ForwardedObservableBoolean(CombinationMode, bool)

Initialize new ForwardedObservableBoolean instance.

public ForwardedObservableBoolean(ForwardedObservableBoolean.CombinationMode mode, bool defaultValue = false)

Parameters

mode ForwardedObservableBoolean.CombinationMode

Mode of combining values of sources.

defaultValue bool

Default value if instance doesn't attach to any source.

ForwardedObservableBoolean(CombinationMode, bool, IEnumerable<IObservable<bool>>)

Initialize new ForwardedObservableBoolean instance.

public ForwardedObservableBoolean(ForwardedObservableBoolean.CombinationMode mode, bool defaultValue, IEnumerable<IObservable<bool>> sources)

Parameters

mode ForwardedObservableBoolean.CombinationMode

Mode of combining values of sources.

defaultValue bool

Default value if instance doesn't attach to any source.

sources IEnumerable<IObservable<bool>>

Source IObservable<T> to attach.

ForwardedObservableBoolean(CombinationMode, bool, params IObservable<bool>[])

Initialize new ForwardedObservableBoolean instance.

public ForwardedObservableBoolean(ForwardedObservableBoolean.CombinationMode mode, bool defaultValue = false, params IObservable<bool>[] sources)

Parameters

mode ForwardedObservableBoolean.CombinationMode

Mode of combining values of sources.

defaultValue bool

Default value if instance doesn't attach to any source.

sources IObservable<bool>[]

Source IObservable<T> to attach.

Properties

DefaultValue

Default value if instance doesn't attach to any source.

public bool DefaultValue { get; }

Property Value

bool

Methods

Attach(IEnumerable<IObservable<bool>>)

Detach from current sources and attach to given sources.

public void Attach(IEnumerable<IObservable<bool>> sources)

Parameters

sources IEnumerable<IObservable<bool>>

IObservable<T> to attach to.

Attach(params IObservable<bool>[])

Detach from current sources and attach to given sources.

public void Attach(params IObservable<bool>[] sources)

Parameters

sources IObservable<bool>[]

IObservable<T> to attach to.

Detach()

Detach from current sources.

public void Detach()