//--------------------------------------------------------------------- private static string ConvertToString(MultiLineText message) { if (message == null) { throw new System.ArgumentNullException(); } return(message.ToString()); }
//--------------------------------------------------------------------- private void SetMultiLineMessage(MultiLineText message, MultiLineText innerMessage) { if (message.Count == 1 && innerMessage != null) { multiLineMessage = new MultiLineText(message.ToString() + ":"); } else { multiLineMessage = new MultiLineText(message); } if (innerMessage != null) { foreach (string line in innerMessage) { multiLineMessage.Add(Indent + line); } } }