tags:

views:

71

answers:

1

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.

A: 

By passing your object to an appropriate method in the runtime compiled assembly?

Senthil Kumar
Thanks, I believe this will be the solution, but I will look into it deeper, when I have the time.
kahoon