I am working on a WinForms project with some repetitive tasks everyday. So I thought creating code a snippet will help me out, but it works for fixed code only.
I want t
I think you can use the System.Reflection namespace combined with the System.CodeDom namespace to achieve what you want.
You can use the classes in the System.Reflection
namespace and the System.Type
class to discover the assembly name, the namespace, the properties, the methods, the base class, and plenty of other metadata about a class or variable.
You'll then use these metadata aquired from your starting/source classes (eg.your Form Classes) to generate code of your target classes (your business and data classes) using CodeDOM.
Check this msdn link on How to: Create a Class using CodeDOM as a starting point.