public static IActiveList <int> ActiveRange(IActiveValue <int> start, int count) => ActiveRange(start, new ActiveValueWrapper <int>(count));
public ActiveMaxOrDefault(IActiveList <TSource> source, IActiveValue <TParameter> parameter, Func <TSource, TParameter, TValue> selector, IEnumerable <string> sourcePropertiesToWatch, IEnumerable <string> parameterPropertiesToWatch) : this(source, parameter, i => selector.Invoke(i, parameter.Value), sourcePropertiesToWatch, parameterPropertiesToWatch) { }
public static IActiveList <int> ActiveRange(int start, IActiveValue <int> count) => ActiveRange(new ActiveValueWrapper <int>(start), count);
public override void Replace(int index, IActiveValue <T> newValue) { base.Replace(index, newValue); List[index].Index = index; }
private void ValueChangedHandler(IActiveValue <T> activeValue, IActiveValueChangedEventArgs <T> eventArgs) => ValueChanged?.Invoke(eventArgs.OldValue, eventArgs.NewValue, Index);
public ValueStore(IActiveValue <T> value) { _value = value; _value.ValueChanged += ValueChangedHandler; }
public ActiveCount(IActiveList<TSource> source, IActiveValue<TParameter> parameter, Func<TSource, TParameter, bool> predicate, IEnumerable<string> sourcePropertiesToWatch, IEnumerable<string> parameterPropertiesToWatch) : this(source, parameter, i => predicate.Invoke(i, parameter.Value), sourcePropertiesToWatch, parameterPropertiesToWatch) { }
private ActiveAny(IActiveList <TSource> source, IActiveValue <TParameter> parameter, Func <TSource, bool> predicate, IEnumerable <string> sourcePropertiesToWatch, IEnumerable <string> parameterPropertiesToWatch) : base(source, parameter, predicate, sourcePropertiesToWatch, parameterPropertiesToWatch) { Initialize(); }