Exemplo n.º 1
0
 public static string JoinToString <TKey, TValue>(this IDictionary <TKey, TValue> dictionary, string keySeparator      = ";\n", string valueSeparator = "=", string prefix    = "{", string suffix = "}")
 => prefix + string.Join(keySeparator, dictionary.Select(kv => $"{kv.Key}{valueSeparator}{kv.Value}")) + suffix;