</Type>
<Type Name="System.MarshalByRefObject">
<Member Name="#ctor" />
+ <Member Name="GetLifetimeService" />
+ <Member Name="InitializeLifetimeService" />
+ <Member Name="MemberwiseClone(System.Boolean)" />
</Type>
<Type Status="ImplRoot" Name="System.System_LazyDebugView<T>">
<Member Status="ImplRoot" Name="#ctor(System.Lazy<T>)"/>
public abstract partial class MarshalByRefObject
{
protected MarshalByRefObject() { }
+ public object GetLifetimeService() { throw null; }
+ public virtual object InitializeLifetimeService() { throw null; }
+ protected System.MarshalByRefObject MemberwiseClone(bool cloneIdentity) { throw null; }
+
}
public static partial class Math
{
* @security(checkDllCalls=off)
* @security(checkClassLinking=on)
*/
-#if FEATURE_REMOTING
[ComVisible(true)]
public sealed class RegistryKey : MarshalByRefObject, IDisposable
-#else
- [ComVisible(true)]
- public sealed class RegistryKey : IDisposable
-#endif
{
// We could use const here, if C# supported ELEMENT_TYPE_I fully.
#if !FEATURE_CORECLR
[SecurityPermissionAttribute(SecurityAction.InheritanceDemand, Flags = SecurityPermissionFlag.Infrastructure)]
#endif
-#if FEATURE_REMOTING
public class AppDomainManager : MarshalByRefObject {
-#else // FEATURE_REMOTING
- public class AppDomainManager {
-#endif // FEATURE_REMOTING
public AppDomainManager () {}
#if FEATURE_REMOTING
[System.Security.SecurityCritical] // auto-generated
using System.Security.Permissions;
[Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
-#if FEATURE_REMOTING
public abstract class ContextBoundObject : MarshalByRefObject {
-#else // FEATURE_REMOTING
- public abstract class ContextBoundObject {
-#endif // FEATURE_REMOTING
}
}
[FileIOPermissionAttribute(SecurityAction.InheritanceDemand,Unrestricted=true)]
#endif
[ComVisible(true)]
-#if FEATURE_REMOTING
public abstract class FileSystemInfo : MarshalByRefObject, ISerializable {
-#else // FEATURE_REMOTING
- public abstract class FileSystemInfo : ISerializable {
-#endif //FEATURE_REMOTING
[System.Security.SecurityCritical] // auto-generated
internal Win32Native.WIN32_FILE_ATTRIBUTE_DATA _data; // Cache the file information
namespace System.IO {
[Serializable]
[ComVisible(true)]
-#if FEATURE_REMOTING
public abstract class Stream : MarshalByRefObject, IDisposable {
-#else // FEATURE_REMOTING
- public abstract class Stream : IDisposable {
-#endif // FEATURE_REMOTING
public static readonly Stream Null = new NullStream();
// There are methods on the Stream class for reading bytes.
[Serializable]
[ComVisible(true)]
-#if FEATURE_REMOTING
public abstract class TextReader : MarshalByRefObject, IDisposable {
-#else // FEATURE_REMOTING
- public abstract class TextReader : IDisposable {
-#endif // FEATURE_REMOTING
public static readonly TextReader Null = new NullTextReader();
// There are methods on the Stream class for writing bytes.
[Serializable]
[ComVisible(true)]
-#if FEATURE_REMOTING
public abstract class TextWriter : MarshalByRefObject, IDisposable {
-#else // FEATURE_REMOTING
- public abstract class TextWriter : IDisposable {
-#endif // FEATURE_REMOTING
public static readonly TextWriter Null = new NullTextWriter();
// This should be initialized to Environment.NewLine, but
[System.Runtime.InteropServices.ComVisible(true)]
public abstract class MarshalByRefObject
{
-#if FEATURE_REMOTING
+#if FEATURE_REMOTING
private Object __identity;
private Object Identity { get { return __identity; } set { __identity = value; } }
return t.InvokeMember(name, invokeAttr, binder, this, args, modifiers, culture, namedParameters);
}
- // Returns a new cloned MBR instance that is a memberwise copy of this
+
+ // Returns a new cloned MBR instance that is a memberwise copy of this
// with the identity nulled out, so there are no identity conflicts
// when the cloned object is marshalled
protected MarshalByRefObject MemberwiseClone(bool cloneIdentity)
mbr.Identity = null;
return mbr;
}
-
-
// A helper routine to extract the identity either from the marshalbyrefobject base
// class if it is not a proxy, otherwise from the real proxy.
return o.CanCastToXmlType(xmlTypeName, xmlTypeNamespace);
} // CanCastToXmlType
-
+#else
+ protected MarshalByRefObject() { }
+ public object GetLifetimeService()
+ {
+ throw new PlatformNotSupportedException();
+ }
+ public virtual object InitializeLifetimeService()
+ {
+ throw new PlatformNotSupportedException();
+ }
+ protected MarshalByRefObject MemberwiseClone(bool cloneIdentity)
+ {
+ MarshalByRefObject mbr = (MarshalByRefObject)base.MemberwiseClone();
+ return mbr;
+ }
#endif // FEATURE_REMOTING
+
}
} // namespace
}
[System.Runtime.InteropServices.ComVisible(true)]
-#if FEATURE_REMOTING
public sealed class RegisteredWaitHandle : MarshalByRefObject {
-#else // FEATURE_REMOTING
- public sealed class RegisteredWaitHandle {
-#endif // FEATURE_REMOTING
private RegisteredWaitHandleSafe internalRegisteredWait;
internal RegisteredWaitHandle()
[HostProtection(Synchronization=true, ExternalThreading=true)]
[System.Runtime.InteropServices.ComVisible(true)]
-#if FEATURE_REMOTING
public sealed class Timer : MarshalByRefObject, IDisposable
-#else // FEATURE_REMOTING
- public sealed class Timer : IDisposable
-#endif // FEATURE_REMOTING
{
private const UInt32 MAX_SUPPORTED_TIMEOUT = (uint)0xfffffffe;
using Win32Native = Microsoft.Win32.Win32Native;
[System.Runtime.InteropServices.ComVisible(true)]
-#if FEATURE_REMOTING
public abstract class WaitHandle : MarshalByRefObject, IDisposable {
-#else // FEATURE_REMOTING
- public abstract class WaitHandle : IDisposable {
-#endif // FEATURE_REMOTING
public const int WaitTimeout = 0x102;
private const int MAX_WAITHANDLES = 64;