Error when adding user-defined control to a form.
问题 I have an user-defined control which includes a property ElementList of IList<WFParament> type. When I add my control into a form, I get the error: "WorkFlowDesign.WFParament[]" can't be transfered into "WorkFlowDesign.WFParament[]" 回答1: Does your usercontrol do anything on load? If so, try wrapping it in: if(!DesignMode) { //Do something } 回答2: I would verify that you don't have two versions of the assembly containing the type WorkFowDesign.WFParament loaded/referenced. This could happen if