Pass a String to a new AppDomain

  • Thread starter Thread starter Neo
  • Start date Start date
N

Neo

Does anyone know of a way to pass a value such as a string to a new
AppDomain?

I an creating a new App Domain but there is no common code between the
2 domains. So communicating with them with remoting is sort of out of
the question. However I just want to pass a single string over to the
new object that I create with.

AppDomain.CreateInstance()

Or possibly supply some constor parameters

I have though about just making this string the AppDomain FriendlyName.
And reading it on the other side. But that seems a bit clugy.

I guess I could do it with a file or a pipe. Is there an easier way?
 
AppDomain.CreateInstance()

One of the overloads of this method (the one with most parameters)
takes an array of arguments passed to the constructor.


Mattias
 
Back
Top