I'm currently getting 'InvalidOperationException - The type ObservableCollection`1 has multiple constructors of length 1. Unable to disambiguate.'
I want Unity to use the default constructor. How can I get it to do that?
I'm using XML to configure it.
Currently, I have:
and I'm using
: the code is used in two situations that use different .config files. In the other situation, there is a subclass of ObservableCollection which only implments a default constructor, so that works okay.
I know container.Resolve is often frowned-upon but I just need to get this working: time is pressing and a rewrite is not an option.