简体   繁体   中英

How do I expose member objects via using CodeDOM?

Everywhere I see tutorials on how to compile assemblies using the System.CodeDom namespace.

But how can I access a member object of an assembly from a runtime compiled assembly (I'm not talking about accessing a class, I want to access a specific member variable)? In Microsoft Script Control it can be done with the AddObject method.

I guess if the assembly that is compiled at runtime behaves like every other ordinary assembly, then I should use .NET remoting? But isn't it an overkill? I wish there was an easier way.

通过将对象传递给运行时编译程序集中的适当方法?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM