ExoModel.ModelEventScope.OnExit C# (CSharp) Method

OnExit() public static method

Causes the specified action to be performed when the outermost model event scope has exited, or performs the action immediately if there is not a current scope.
public static OnExit ( System.Action action ) : void
action System.Action
return void
        public static void OnExit(Action action)
        {
            if (current == null)
                action();
            else
                current.Exited += (sender, e) => action();
        }