C# 4.0からは以下のように書けるそうです。
うまく統合されているんですね。
Type t = ...;
dynamic instance = Activator.CreateInstance(t);
instance.SayHello("Hello Unknown Method!");
参考:
http://code.msdn.microsoft.com/windowsdesktop/16-Reflection-83fc4215
More than 5 years have passed since last update.
C# 4.0からは以下のように書けるそうです。
うまく統合されているんですね。
Type t = ...;
dynamic instance = Activator.CreateInstance(t);
instance.SayHello("Hello Unknown Method!");
参考:
http://code.msdn.microsoft.com/windowsdesktop/16-Reflection-83fc4215
Register as a new user and use Qiita more conveniently