public override string ToString()
{
System.Text.StringBuilder s = new System.Text.StringBuilder();
s.AppendLine("[DEFAULT]");
foreach (System.Collections.Generic.KeyValuePair<string, string> entry in defaults_)
s.Append(entry.Key).Append('=').AppendLine(entry.Value);
foreach (KeyValuePair<SessionID, QuickFix.Dictionary> entry in settings_)
{
s.AppendLine().AppendLine("[SESSION]");
foreach (System.Collections.Generic.KeyValuePair<string, string> kvp in entry.Value)
{
if (defaults_.Has(kvp.Key) && defaults_.GetString(kvp.Key).Equals(kvp.Value))
continue;
s.Append(kvp.Key).Append('=').AppendLine(kvp.Value);
}
}
return s.ToString();
}