/// <summary>
        /// Adds all errors from the provided collection to the
        /// current instance.
        /// </summary>
        /// <param name="errors">The collection containing errors to add.</param>
        public ModelErrorCollection Merge(ModelErrorCollection errors)
        {
            if (errors == null)
            {
                return(this);
            }

            foreach (string key in errors.Keys)
            {
                ICollection <ValidationError> list = GetOrCreateItem(key);
                foreach (ValidationError error in errors[key])
                {
                    list.Add(error);
                }
            }
            return(this);
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="Radischevo.Wahha.Web.Mvc.ModelStateCollection"/> class.
 /// </summary>
 public ModelStateCollection()
 {
     _errors = new ModelErrorCollection();
 }