Open.Core.Helper.Invoke C# (CSharp) Method

Invoke() public static method

Invokes the given action if it's not Null/Undefined.
public static Invoke ( System.Action action ) : void
action System.Action The action to invoke.
return void
        public static void Invoke(Action action)
        {
            if (!Script.IsNullOrUndefined(action)) action();
        }