public ComputeInstance() { Builder = new ExpressionBuilder { ComputeInstance = this }; options = ComputeInstanceOptions.Default; nameNodeMap = new Dictionary <string, IExpressionResult>(); BindToValuesEvents(); }
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(); }