Example #1
0
        internal static Property <T> Create <T>(this IReactor reactor, string name, Func <T> valueFunc, params IProperty[] fromProperties)
        {
            var property = reactor.Create <T>(name, valueFunc());

            reactor.WhenPropertiesChange(fromProperties).Subscribe(coll => property.Value = valueFunc());
            return(property);
        }