下面的注释是什么意思?
// The line below only works when linked rather than
// referenced, as otherwise you need a cast.
// The compiler treats it as if it both takes and
// returns a dynamic value.
string value = com.MakeMeDynamic(10);
我理解什么是引用程序集。您可以使用命令行中的 /ref: 开关编译程序文件时引用它,或者您可以在 Visual Studio 中添加程序集的静态引用。
但是如何在 .NET 中链接到程序集呢?他是指使用反射(Assembly.LoadFile())加载程序集吗?还是使用 Win32 API LoadLibrary()?或者,.NET 有一个我从未听说过的链接器吗?