Skip to content

Commit

Permalink
Fix #93: ReferenceFinder should return public types only (#95)
Browse files Browse the repository at this point in the history
  • Loading branch information
tom-englert authored Nov 17, 2017
1 parent 3d6d59e commit a37ace9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Fody/ReferenceFinder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ void AddAssemblyIfExists(string name, List<TypeDefinition> types)

if (assembly != null)
{
types.AddRange(assembly.MainModule.Types);
types.AddRange(assembly.MainModule.Types.Where(type => type.IsPublic));
}
}
catch (AssemblyResolutionException)
Expand Down

0 comments on commit a37ace9

Please sign in to comment.