public void Add(Type type, UIPropertyDescriptors descriptor, IGenerateValues generator = null) { var value = new Item { Type = type, Descriptor = descriptor, Generator = generator }; _items.Add(type, value); }
public void Add(Type type, IGenerateValues generator) { Add(type, UIPropertyDescriptors.None, generator); }
public ValuesController(IGenerateValues valueGenerator) { _valueGenerator = valueGenerator ?? throw new ArgumentNullException(nameof(valueGenerator)); }