AMPSExcel.ActiveSub.vbaInvoke C# (CSharp) Method

vbaInvoke() private method

private vbaInvoke ( System thing ) : void
thing System
return void
        private void vbaInvoke(System.Action thing)
        {
            while (_running)
            {
                try
                {
                    thing.Invoke();
                    break;
                }
                catch (COMException)
                {
                    Thread.Yield();
                }
            }
        }