title: Generate properties programmatically
body: <p>I want to load a properties file  (it's a .csv file having on each line a name and associated numeric value) and then access those property values like so: <code>FileLoader.PropertyOne</code> or <code>FileLoader.PropertyTwo</code>. The problem is I don't want to have to write a property for each value, I want them to be generated from the file. So</p>
  
  <pre><code>public class FileLoader
  {
      public int Property1 { get; private set; }
  }
  </code></pre>
  
  <p>is not what I'm looking for. Is this possible? I can't see any way to do it because obviously the compiler wouldn't know about the property names. Perhaps something similar?</p>