I want to add another property public int ID { get; set; } to the class below using C#.
I don't know if there is a way beside T4 or partial class. How about CodeDom? I'm not familiar with it. Please do me a favor, Thanks!
public class DgItem
{
public string Name { get; set; }
}
You create a field for your property
You create your property
Then add the get and set statements
And that should do the trick