c# - what happens when an object derives from MarshalByRefObject and is also marked [Serializable]? -
c# - what happens when an object derives from MarshalByRefObject and is also marked [Serializable]? -
i'm working on first project uses appdomains , i'm wondering happens when object derives marshalbyrefobject , marked [serializable]?
for example:
[serializable] public class dummyclass: marshalbyrefobject { }
it gets marshalled reference, can still serialised other use-cases serialisation. there's implementation detail interesting plenty worth noting: formatter serialising remoting uses surrogateselector
produce proxy marshalbyrefobject
serialises, hence serialising still result in marshalling reference. other serialisation uses won't have surrogateselector
, won't have effect.
c# .net appdomain .net-remoting
Comments
Post a Comment