public Option(OptionNode node, IOptionProvider provider, IOptionView view) { _node = node ?? throw new ArgumentNullException(nameof(node)); _providers = new List <IOptionProvider>() { provider }; _view = view; _isDirty = false; }
private void Initialize(OptionNode node, IOptionProvider provider, IOptionView view, IOptionViewBuilder viewBuilder) { if(node == null) throw new ArgumentNullException("node"); _node = node; _provider = provider; _view = view; _viewBuilder = viewBuilder; _isDirty = false; }
private void Initialize(OptionNode node, IOptionProvider provider, IOptionView view, IOptionViewBuilder viewBuilder) { if (node == null) { throw new ArgumentNullException("node"); } _node = node; _provider = provider; _view = view; _viewBuilder = viewBuilder; _isDirty = false; }
public Option(OptionNode node, IOptionProvider provider, IOptionView view) { this.Initialize(node, provider, view, null); }