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.
5 using System
.Runtime
.InteropServices
;
9 [ClassInterface(ClassInterfaceType
.AutoDispatch
)]
11 public abstract class MarshalByRefObject
13 protected MarshalByRefObject()
17 public object GetLifetimeService()
19 throw new PlatformNotSupportedException(SR
.PlatformNotSupported_Remoting
);
22 public virtual object InitializeLifetimeService()
24 throw new PlatformNotSupportedException(SR
.PlatformNotSupported_Remoting
);
27 protected MarshalByRefObject
MemberwiseClone(bool cloneIdentity
)
29 MarshalByRefObject mbr
= (MarshalByRefObject
)base.MemberwiseClone();