System.Threading.Invokers.InvokeSafe C# (CSharp) 메소드

InvokeSafe() 공개 정적인 메소드

As invoke, but always called on the correct thread
public static InvokeSafe ( this invoker, System.Action action ) : void
invoker this
action System.Action
리턴 void
        public static void InvokeSafe(this ISynchronizeInvoke invoker, Action action)
        {
            if (invoker.InvokeRequired)
                invoker.Invoke(action);
            else
                action();
        }