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
cellCell<T>editsStreamSinkStreamSink<T>comparerIEqualityComparer<T>
Returns
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
sinkCellSink<T>comparerIEqualityComparer<T>
Returns
Type Parameters
T