title: Is there a way to modify C# code with C#?
body: <p>How can I add a statement <code>public int ID { get; set; }</code> to the class below programmatically?</p>
  <pre><code>public class DgItem
  {
      public string Name { get; set; }
  }
  </code></pre>