ExoModel.ModelEventScope.PerformAction C# (CSharp) 메소드

PerformAction() 정적인 개인적인 메소드

Performs the specified action inside the current ModelEventScope.
static private PerformAction ( System.Action action ) : void
action System.Action
리턴 void
        void PerformAction(Action action)
        {
            try
            {
                action();
            }
            catch (Exception actionException)
            {
                try
                {
                    Exit();
                }
                catch (Exception disposalException)
                {
                    throw new ScopeException(disposalException, actionException);
                }

                throw;
            }
            Exit();
        }