/// <summary> /// Creates an exception with the specified messages. /// </summary> public MultiMessageApplicationException(params string[] messages) : base(StringTools.ConcatenateWithDelimiter(Environment.NewLine, messages)) { this.messages = messages; }
/// <summary> /// Formats the specified address in multi line format. Do not pass null for any parameters. /// </summary> public static string GetAddressWithNewLines(string deliveryAddress, string city, string stateAbbreviation, string zipCode, string addOnCode) { // The add on code means nothing without the ZIP Code. if (zipCode.Length == 0) { addOnCode = ""; } return(StringTools.ConcatenateWithDelimiter(Environment.NewLine, deliveryAddress, StringTools.ConcatenateWithDelimiter(" ", StringTools.ConcatenateWithDelimiter(", ", city, stateAbbreviation), StringTools.ConcatenateWithDelimiter("-", zipCode, addOnCode)))); }