title: Useful Delphi code templates
body: <p>I've been programming in Delphi for a little over two years now, and I've only got maybe 5 custom templates, I feel as though I should have more.</p>
  
  <p>If anyone has any particularly useful ones it would be great to have a nice repository of them here on stackoverflow.</p>
  
  <p>I don't care whether you use the Delphi 2009 syntax or Delphi 7, but if the code you'd be generating only works on a particular version, please mention that.</p>