public static string Convert(Dictionary <string, string> dic, IFormatStrategy format) { StringBuilder t = new(); format.Init(t); foreach (var item in dic) { format.AddElement(t, item.Key, item.Value); } format.Close(t); return(t.ToString()); }
public Document Append(string title, string value) { formatStrategy.AddElement(sb, title, value); return(this); }