P
Peter Holschbach
Hi all,
I have to load a assembly in another AppDomain because I want to unload it
while my application keeps running.
My biggest problem is now that I have to tranfer data between the different
application domains.
As far as I understood types which shall be transfered between different
domains must have the attribute [Serializable] or must be derived from
MarshalByRefObject.
The following code leads to a SerializationException
[Serializable]
public class MyClass
{
public void Execute()
{
Console.WriteLine("Hallo");
}
}
if I use :
public class MyClass : MarshalByRefObject
{
public void Execute()
{
Console.WriteLine("Hallo");
}
}
it works. Is MarshalByRefObject a must ?
thx
Peter
I have to load a assembly in another AppDomain because I want to unload it
while my application keeps running.
My biggest problem is now that I have to tranfer data between the different
application domains.
As far as I understood types which shall be transfered between different
domains must have the attribute [Serializable] or must be derived from
MarshalByRefObject.
The following code leads to a SerializationException
[Serializable]
public class MyClass
{
public void Execute()
{
Console.WriteLine("Hallo");
}
}
if I use :
public class MyClass : MarshalByRefObject
{
public void Execute()
{
Console.WriteLine("Hallo");
}
}
it works. Is MarshalByRefObject a must ?
thx
Peter