Skip to content

Commit 304a3ad

Browse files
peterhel121GWJoltkhellang
authored
Update TypeSourceSelector.cs (#230)
Co-authored-by: 121GWJolt ("Jolt") <121GWJolt@users.noreply.github.com> Co-authored-by: Kristian Hellang <kristian@hellang.com>
1 parent 28c9d1d commit 304a3ad

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Scrutor/TypeSourceSelector.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ private IImplementationTypeSelector InternalFromAssembliesOf(IEnumerable<Type> t
154154

155155
private IImplementationTypeSelector InternalFromAssemblies(IEnumerable<Assembly> assemblies)
156156
{
157-
return AddSelector(assemblies.SelectMany(asm => asm.DefinedTypes).Select(x => x.AsType()));
157+
return AddSelector(assemblies.SelectMany(asm => asm.ExportedTypes));
158158
}
159159

160160
private static IEnumerable<Assembly> LoadAssemblies(IEnumerable<AssemblyName> assemblyNames)

0 commit comments

Comments
 (0)