2 CodeCanvas - No way. Reflector gives you a class, and the task is to serialize all instances of all the given classes. For example, the class contains the code:
for(int i=0; i<2;i++){ Controls.Add(new Button()); }
Task
is to make * .Designer.cs with the following code:
//... InitializeComponent() { //... button1 = new Button(); button2 = new Button(); button3 = new Button(); //... this.Controls.Add(button1); this.Controls.Add(button2); this.Controls.Add(button3); } //...
and this is definitely not what the reflector gives you.
Serializing CodeDom can do the trick, but it acts by its own rules and is unlikely to give a full snapshot of the form.
user488399
source share