예제 #1
0
        public ComputeInstance()
        {
            Builder = new ExpressionBuilder
            {
                ComputeInstance = this
            };

            options     = ComputeInstanceOptions.Default;
            nameNodeMap = new Dictionary <string, IExpressionResult>();

            BindToValuesEvents();
        }
예제 #2
0
        public ComputeInstance(ComputeInstanceOptions options)
        {
            if (options == null)
            {
                throw new ArgumentNullException(nameof(options));
            }

            Builder = new ExpressionBuilder(options.ExpressionOptions)
            {
                ComputeInstance = this
            };
            this.options = options ?? throw new ArgumentNullException(nameof(options));
            nameNodeMap  = new Dictionary <string, IExpressionResult>(options.ExpressionOptions.StringComparer);

            BindToValuesEvents();
        }