0

The documentation for MarshalByRefObject states,

When you derive an object from MarshalByRefObject for use across application domain boundaries, you should not override any of its members, nor should you call its methods directly.

Does this warning apply to inherited methods, specifically Equals and GetHashCode, or only to methods added by MarshalByRefObject?

StackOverthrow
  • 1,158
  • 11
  • 23
  • I'd assume `Equals` and `GetHashCode` don't apply, as `MarshalByRefObject` doesn't override those, as you can see here: https://referencesource.microsoft.com/#mscorlib/system/marshalbyrefobject.cs,8ec9f4cbed5b7726 – Camilo Terevinto Apr 16 '19 at 00:05
  • I'm not sure I'd agree with @CamiloTerevinto on that, I wonder if object reference equality is important. Of course the bigger question is, why are you still using this 'legacy' technology? – DavidG Apr 16 '19 at 00:12
  • @DavidG I haven't been able to find any documentation about that, that's why I commented, but I haven't used Remoting. – Camilo Terevinto Apr 16 '19 at 00:17
  • @DavidG I'm not still using it, I was going to start. I've been reading tutorials about how to unload AppDomains to allow users to reload plugins without restarting an application, and this is what they say to use. – StackOverthrow Apr 16 '19 at 16:33

0 Answers0