Adf.Base.Validation.BusinessRuleValidationContext.CloseScope C# (CSharp) Method

CloseScope() private method

Deletes the current scope and merges it to the next to the current scope.
private CloseScope ( ) : void
return void
        private void CloseScope()
        {
            try
            {
                var closedScope = _scope.Pop();
                if (closedScope.ValidationResult.Count != 0)
                {
                    var currentScope = CurrentScope;
                    currentScope.Merge(closedScope);
                }
            }
            catch (Exception ex)
            {
                LogManager.Log(ex);
            }
        }