>string</span>.Format(<span class="s">"Default configuration:\n{0}"</span>, config));</pre>

<p>It should outputs this:</p>

<pre lang="yaml">Default settings:
Mail:
  Smtp:
    Host: smtp.sample.com
    Port: 25
    User: user1
    Password: pass1
  Pop3:
    Host: pop3.sample.com
    Port: 110
    User: user2
    Password: pass2
    CheckPeriod: 00:01:00
  ErrorNotificationRecipients:
  - user1@sample.com
  - user2@sample.com
DB:
  ConnectionString: Data Source=server1;Initial Catalog