MarshalByRefObject.cs 973 B

123456789101112131415161718192021222324252627282930313233
  1. // Licensed to the .NET Foundation under one or more agreements.
  2. // The .NET Foundation licenses this file to you under the MIT license.
  3. // See the LICENSE file in the project root for more information.
  4. using System.Runtime.InteropServices;
  5. namespace System
  6. {
  7. [ClassInterface(ClassInterfaceType.AutoDispatch)]
  8. [ComVisible(true)]
  9. public abstract class MarshalByRefObject
  10. {
  11. protected MarshalByRefObject()
  12. {
  13. }
  14. public object GetLifetimeService()
  15. {
  16. throw new PlatformNotSupportedException(SR.PlatformNotSupported_Remoting);
  17. }
  18. public virtual object InitializeLifetimeService()
  19. {
  20. throw new PlatformNotSupportedException(SR.PlatformNotSupported_Remoting);
  21. }
  22. protected MarshalByRefObject MemberwiseClone(bool cloneIdentity)
  23. {
  24. MarshalByRefObject mbr = (MarshalByRefObject)base.MemberwiseClone();
  25. return mbr;
  26. }
  27. }
  28. }