title: What is the best way to serialize Delphi application configuration?
body: <p>I will answer this question myself, but feel free to provide your answers if you are faster than me or if you don't like my solution. I just came up with this idea and would like to have some opinions on that.</p>
  
  <p><strong>Goal:</strong> a configuration class that is readable (like an INI-file) but without having to write (and adapt after a new configuration item has been added) the load and save methods.</p>
  
  <p>I want to create a class like</p>
  
  <pre><code>TMyConfiguration = class (TConfiguration)
    ...
    property ShowFlags : Boolean read FShowFlags write FShowFlags;
    property NumFlags : Integer read FNumFlags write FNumFlags;
  end;
  </code></pre>
  
  <p>Calling TMyConfiguration.Save (inherited from TConfiguration) should create a file like</p>
  
  <pre><code>[Options]
  ShowFlags=1
  NumFlags=42
  </code></pre>
  
  <p><strong>Question:</strong> What is the best way to do this?</p>