Skip to content

Commit

Permalink
fixes #57
Browse files Browse the repository at this point in the history
  • Loading branch information
dansiegel committed Nov 26, 2019
1 parent 81b20c7 commit cc7ce40
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ private object GetConcreteImplementation(Type serviceType)
{
if (serviceType.IsClass && !serviceType.IsAbstract)
{
var constructorInfos = serviceType.GetConstructors(BindingFlags.Public).OrderByDescending(x => x.GetParameters().Count());
var constructorInfos = serviceType.GetConstructors().OrderByDescending(x => x.GetParameters().Count());
if (constructorInfos.Any())
{
var constructorInfo = constructorInfos.First();
Expand Down

0 comments on commit cc7ce40

Please sign in to comment.