Can Unity automatically resolve IEnumerable?
Let\'s say I have a class with this constructor:
public CoalescingParserSelector(I
I did this like so
container.RegisterTypes(
AllClasses.FromLoadedAssemblies().
Where(type => typeof(IParserBuilder).IsAssignableFrom(type)),
WithMappings.FromAllInterfaces,
WithName.TypeName,
WithLifetime.Transient);
container.RegisterType, IParserBuilder[]>();
Which registers everything that implements IParserBuilder, so when you add a new one you don't need to add any other code for it to appear in the list of builders.