Ejemplo n.º 1
0
        public BaseQbservable(BaseQbservableProvider provider, Expression expression)
        {
            if (expression == null)
            {
                throw new ArgumentNullException(nameof(expression));
            }
            if (!typeof(IQbservable <T>).IsAssignableFrom(expression.Type))
            {
                throw new ArgumentOutOfRangeException(nameof(expression));
            }

            Provider   = provider ?? throw new ArgumentNullException(nameof(provider));
            Expression = expression;
        }
Ejemplo n.º 2
0
 public BaseQbservable()
 {
     Provider   = new BaseQbservableProvider();
     Expression = Expression.Constant(this);
 }