Skip to content

Commit

Permalink
ConfigurationItemFactory - Revert so MethodFactory continues to scan …
Browse files Browse the repository at this point in the history
…non-public classes (#5125)

ConfigurationItemFactory - Revert so MethodFactory continues to scan non-public classes to avoid breaking change
  • Loading branch information
snakefoot committed Dec 11, 2022
1 parent 12f1e74 commit 4fd9f01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NLog/Config/MethodFactory.cs
Expand Up @@ -72,7 +72,7 @@ public void ScanTypes(Type[] types, string assemblyName, string itemNamePrefix)
{
try
{
if (t.IsClass() && t.IsPublic())
if (t.IsClass())
{
RegisterType(t, assemblyName, itemNamePrefix);
}
Expand Down

0 comments on commit 4fd9f01

Please sign in to comment.