Skip to content

Commit

Permalink
docs: Add comment on why the private method was created
Browse files Browse the repository at this point in the history
  • Loading branch information
MrDave1999 committed Dec 19, 2023
1 parent 95a1eb3 commit e180602
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Core/TypeFinder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ internal static IEnumerable<TSupertype> FindSubtypesOf<TSupertype>(IEnumerable<A
return GetSubtypesOf<TSupertype>(assemblies);
}

// The logic of this method needs to be separate to ensure
// that the validations of FindSubtypesOf are executed immediately.
private static IEnumerable<TSupertype> GetSubtypesOf<TSupertype>(IEnumerable<Assembly> assemblies)
where TSupertype : class
{
Expand Down

0 comments on commit e180602

Please sign in to comment.