Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
josefpihrt committed Dec 29, 2024
1 parent f96725a commit b4b93de
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/CommandLine/DelegateFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,11 @@ private static TDelegate CreateDelegate<TDelegate>(

if (method.IsStatic)
{
#if NETFRAMEWORK
return (TDelegate)method.CreateDelegate(typeof(TDelegate));
#else
return method.CreateDelegate<TDelegate>();
#endif
}
else
{
Expand Down

0 comments on commit b4b93de

Please sign in to comment.