.NET CF 3.5 を使用しています。作成したい型にはデフォルトのコンストラクターがないため、オーバーロードされたコンストラクターに文字列を渡したいと考えています。どうすればいいですか?
コード:
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