fix: InvokeSafe params causing warnings for possible null parameter calls
This commit is contained in:
@@ -4,7 +4,7 @@ namespace Syntriax.Engine.Core;
|
||||
|
||||
public static class DelegateHelpers
|
||||
{
|
||||
public static void InvokeSafe(this Delegate @delegate, params object[] args)
|
||||
public static void InvokeSafe(this Delegate @delegate, params object?[] args)
|
||||
{
|
||||
if (@delegate is null)
|
||||
return;
|
||||
|
Reference in New Issue
Block a user