AddParameter() публичный Метод

public AddParameter ( string name, object value ) : ExceptionHelper
name string
value object
Результат ExceptionHelper
 public LocalizedArgumentOutOfRangeException(string argument, object min, object max, string key = "Exceptions.ArgumentOutOfRangeException", string defaultMessage = null, object parameters = null, Exception innerException = null)
     : base(defaultMessage, innerException)
 {
     if (defaultMessage == null)
     {
         defaultMessage = "Value must be in the range {0} to {1}";
     }
     Localization = new ExceptionHelper(this, key, defaultMessage, parameters);
     Localization.AddParameter("Minimum", min).AddParameter("Maximum", max);            
 }
 public LocalizedArgumentNullException(string paramName, string key = "Exceptions.ArgumentNullException", string defaultMessage = null, object parameters = null, Exception innerException = null)
     : base(paramName, defaultMessage)
 {
     Localization = new ExceptionHelper(this, key, defaultMessage, parameters);
     Localization.AddParameter("ParamName", paramName);
 }
 public LocalizedFileNotFoundException(string filename, string key = "Exceptions.FileNotFoundException", string defaultMessage = null, object parameters = null, Exception innerException = null)
     : base(defaultMessage, innerException)
 {
     Localization = new ExceptionHelper(this, key, defaultMessage, parameters);
     Localization.AddParameter("FileName", filename);
 }