Table of Contents

Method CreateTwoWay

Namespace
SodaFlow.Bindable.ObjectModel
Assembly
SodaFlow.Bindable.ObjectModel.dll

CreateTwoWay<T>(Cell<T>, StreamSink<T>, IEqualityComparer<T>?)

Shows a cell as a two-way bindable property, and sends the writes of the view into editsStreamSink.

public ITwoWayBindableValue<T> CreateTwoWay<T>(Cell<T> cell, StreamSink<T> editsStreamSink, IEqualityComparer<T>? comparer = null)

Parameters

cell Cell<T>
editsStreamSink StreamSink<T>
comparer IEqualityComparer<T>

Returns

ITwoWayBindableValue<T>

Type Parameters

T

CreateTwoWay<T>(CellSink<T>, IEqualityComparer<T>?)

Shows a cell sink as a two-way bindable property. This is the simplest condition. The view is the only writer, and the sink holds the value that is the authority.

public ITwoWayBindableValue<T> CreateTwoWay<T>(CellSink<T> sink, IEqualityComparer<T>? comparer = null)

Parameters

sink CellSink<T>
comparer IEqualityComparer<T>

Returns

ITwoWayBindableValue<T>

Type Parameters

T