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

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -