简体   繁体   中英

Is there attribute for proxing instead of serialzing for remote objects properties in .NET Remoting?

I have a class for remoting (name it RemoteClass). It has property Other of class OtherClass. By default, client has a proxy of RemoteClass object and a serialized copy of OtherClass after calling property Other. I want that client recieve a proxy for OtherClass too after calling property Other. Do not suggest me to separate RemoteClass and OtherClass, because this solution is unacceptable. My question is: May I to do what I want with .NET Remoting or It is better to use WCF instead (Can WCF help me at all?). Thanks for advice and any help.

而不是使用Serializable属性,而是使OtherClass继承自MarshalByRefObject。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM