MarshalByRefObject.cs 857 B

1234567891011121314151617181920212223242526272829
  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. namespace System
  5. {
  6. public abstract class MarshalByRefObject
  7. {
  8. protected MarshalByRefObject()
  9. {
  10. }
  11. public object GetLifetimeService()
  12. {
  13. throw new PlatformNotSupportedException(SR.PlatformNotSupported_Remoting);
  14. }
  15. public virtual object InitializeLifetimeService()
  16. {
  17. throw new PlatformNotSupportedException(SR.PlatformNotSupported_Remoting);
  18. }
  19. protected MarshalByRefObject MemberwiseClone(bool cloneIdentity)
  20. {
  21. MarshalByRefObject mbr = (MarshalByRefObject)base.MemberwiseClone();
  22. return mbr;
  23. }
  24. }
  25. }