var asString = string.Join(Environment.NewLine, dictionary);
Dictionary<string, string> dString = dObject.ToDictionary(k => k.Key, k => k.Value == null ? "" : k.Value.ToString());
/// <summary>
/// Convert dictionary into string
/// </summary>
/// <param name="dictionary"></param>
/// <returns></returns>
public static string DictionaryToString(IDictionary<string, object> dictionary)
{
if (dictionary == null) return string.Empty;
var dictionaryString = dictionary.Aggregate(string.Empty,
(current, keyValues) => current + (keyValues.Key + " : " + keyValues.Value + ", "));
return dictionaryString.TrimEnd(',', ' ');
}