AddErrors() статический приватный Метод

static private AddErrors ( List &errors, ICollection coll ) : void
errors List
coll ICollection
Результат void
Пример #1
0
        private List <ConfigurationException> GetAllErrors()
        {
            List <ConfigurationException> allErrors = null;

            if (HasLocationInputs)
            {
                foreach (SectionInput input in LocationInputs)
                {
                    ErrorsHelper.AddErrors(ref allErrors, input.Errors);
                }
            }

            if (HasIndirectLocationInputs)
            {
                foreach (SectionInput input in IndirectLocationInputs)
                {
                    ErrorsHelper.AddErrors(ref allErrors, input.Errors);
                }
            }

            if (HasFileInput)
            {
                ErrorsHelper.AddErrors(ref allErrors, FileInput.Errors);
            }

            return(allErrors);
        }
Пример #2
0
        internal List <ConfigurationException> RetrieveAndResetLocalErrors(bool keepLocalErrors)
        {
            List <ConfigurationException> coll = this._errorsLocal;

            this._errorsLocal = null;
            if (keepLocalErrors)
            {
                ErrorsHelper.AddErrors(ref this._errorsAll, coll);
            }
            return(coll);
        }
Пример #3
0
        internal List <ConfigurationException> RetrieveAndResetLocalErrors(bool keepLocalErrors)
        {
            List <ConfigurationException> list = _errorsLocal;

            _errorsLocal = null;

            if (keepLocalErrors)
            {
                ErrorsHelper.AddErrors(ref _errorsAll, list);
            }

            return(list);
        }
        private List <ConfigurationException> GetAllErrors()
        {
            List <ConfigurationException> errors = null;

            if (this.HasLocationInputs)
            {
                foreach (SectionInput input in this.LocationInputs)
                {
                    ErrorsHelper.AddErrors(ref errors, input.Errors);
                }
            }
            if (this.HasIndirectLocationInputs)
            {
                foreach (SectionInput input2 in this.IndirectLocationInputs)
                {
                    ErrorsHelper.AddErrors(ref errors, input2.Errors);
                }
            }
            if (this.HasFileInput)
            {
                ErrorsHelper.AddErrors(ref errors, this.FileInput.Errors);
            }
            return(errors);
        }
 internal void AddErrors(ICollection <ConfigurationException> coll)
 {
     ErrorsHelper.AddErrors(ref this._errors, coll);
 }
Пример #6
0
 internal void AddSavedLocalErrors(ICollection <ConfigurationException> coll)
 {
     ErrorsHelper.AddErrors(ref _errorsAll, coll);
 }