コード例 #1
0
        /// <summary>
        ///     Values the observer builder.
        /// </summary>
        /// <typeparam name="TResult">The type of the result.</typeparam>
        /// <param name="propertyExpression">The property expression.</param>
        /// <returns>
        ///     Value Property Observer Builder.
        /// </returns>
        public IPropertyValueObserverBuilder <TResult> ValueObserverBuilder <TResult>(
            Expression <Func <TResult> > propertyExpression)
            where TResult : struct
        {
            var builder = new PropertyValueObserverBuilder <TResult>(propertyExpression)
            {
                ObserverFlag     = observerFlag,
                IsAutoActivate   = this.isAutoActivate,
                IsSilentActivate = this.isSilentActivate,
            };

            return(builder);
        }
コード例 #2
0
        /// <summary>
        ///     Values the observer builder.
        /// </summary>
        /// <typeparam name="TParameter1">The type of the parameter1.</typeparam>
        /// <typeparam name="TResult">The type of the result.</typeparam>
        /// <param name="parameter1">The parameter1.</param>
        /// <param name="propertyExpression">The property expression.</param>
        /// <returns>
        ///     Value Property Observer Builder.
        /// </returns>
        public IPropertyValueObserverBuilder <TResult> ValueObserverBuilder <TParameter1, TResult>(
            TParameter1 parameter1,
            Expression <Func <TParameter1, TResult> > propertyExpression)
            where TParameter1 : INotifyPropertyChanged
            where TResult : struct
        {
            var builder = new PropertyValueObserverBuilder <TParameter1, TResult>(parameter1, propertyExpression)
            {
                ObserverFlag     = observerFlag,
                IsAutoActivate   = this.isAutoActivate,
                IsSilentActivate = this.isSilentActivate,
            };

            return(builder);
        }