AMPSExcel.ActiveSub.vbaInvoke C# (CSharp) Метод

vbaInvoke() приватный Метод

private vbaInvoke ( System thing ) : void
thing System
Результат void
        private void vbaInvoke(System.Action thing)
        {
            while (_running)
            {
                try
                {
                    thing.Invoke();
                    break;
                }
                catch (COMException)
                {
                    Thread.Yield();
                }
            }
        }