Describe the bug
A call to Container.GetTypesToRegister supplied with an TypesToRegisterOptions { IncludeComposites = false } still returns composit types when that collection dependency is an array:
Expected behavior
Composite to not be returned.
Actual behavior
Composite is returned.
To Reproduce
var container = new Container();
var types = container.GetTypesToRegister<IPlugin>([typeof(IPlugin).Assembly],
new TypesToRegisterOptions { IncludeComposites = false });
Console.WriteLine(types.Length); // Should print 0, prints 1
class CompositePlugin(IPlugin[] plugins) : IPlugin;
interface IPlugin;
Describe the bug
A call to
Container.GetTypesToRegistersupplied with anTypesToRegisterOptions { IncludeComposites = false }still returns composit types when that collection dependency is an array:Expected behavior
Composite to not be returned.
Actual behavior
Composite is returned.
To Reproduce