.NET CF 3.5를 사용하고 있습니다. 생성하려는 유형에 기본 생성자가 없으므로 문자열을 오버로드 된 생성자에 전달하려고합니다. 어떻게해야합니까?Compact Framework - 기본 생성자가없는 형식을 동적으로 만드는 방법은 무엇입니까?
코드 :이 당신을 위해 작동하는 경우
Assembly a = Assembly.LoadFrom("my.dll");
Type t = a.GetType("type info here");
// All ok so far, assembly loads and I can get my type
string s = "Pass me to the constructor of Type t";
MyObj o = Activator.CreateInstance(t); // throws MissMethodException