Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我到处都能看到有关如何使用 System.CodeDom 命名空间编译程序集的教程。
但是如何从运行时编译的程序集中访问程序集的成员对象(我不是在谈论访问类,我想访问特定的成员变量)?在 Microsoft Script Control 中,可以使用 AddObject 方法来完成。
我想如果在运行时编译的程序集的行为与其他普通程序集一样,那么我应该使用 .NET 远程处理吗?但这不是矫枉过正吗?我希望有一个更简单的方法。
通过将您的对象传递给运行时编译程序集中的适当方法?