Files
27Aug2021-Cpp2IL-Dump/mscorlib/System/Runtime/Remoting/Proxies/ProxyAttribute.cs
T
niko c12fbe3fc6 m
2026-04-12 16:51:38 +02:00

41 lines
2.1 KiB
C#

using System;
using System.Runtime.InteropServices;
using System.Runtime.Remoting.Contexts;
using Cpp2IlInjected;
namespace System.Runtime.Remoting.Proxies
{
/// <summary>Indicates that an object type requires a custom proxy.</summary>
// Token: 0x020004DC RID: 1244
[Token(Token = "0x20004DC")]
[AttributeUsage(AttributeTargets.Class)]
[ComVisible(true)]
public class ProxyAttribute : Attribute
{
/// <summary>Creates either an uninitialized <see cref="T:System.MarshalByRefObject" /> or a transparent proxy, depending on whether the specified type can exist in the current context.</summary>
/// <param name="serverType">The object type to create an instance of.</param>
/// <returns>An uninitialized <see cref="T:System.MarshalByRefObject" /> or a transparent proxy.</returns>
// Token: 0x060029D2 RID: 10706 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60029D2")]
[Address(RVA = "0x2C08450", Offset = "0x2C07450", VA = "0x182C08450", Slot = "7")]
public virtual MarshalByRefObject CreateInstance(Type serverType)
{
return null;
}
/// <summary>Creates an instance of a remoting proxy for a remote object described by the specified <see cref="T:System.Runtime.Remoting.ObjRef" />, and located on the server.</summary>
/// <param name="objRef">The object reference to the remote object for which to create a proxy.</param>
/// <param name="serverType">The type of the server where the remote object is located.</param>
/// <param name="serverObject">The server object.</param>
/// <param name="serverContext">The context in which the server object is located.</param>
/// <returns>The new instance of remoting proxy for the remote object that is described in the specified <see cref="T:System.Runtime.Remoting.ObjRef" />.</returns>
// Token: 0x060029D3 RID: 10707 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60029D3")]
[Address(RVA = "0x2C08590", Offset = "0x2C07590", VA = "0x182C08590", Slot = "8")]
public virtual RealProxy CreateProxy(ObjRef objRef, Type serverType, object serverObject, Context serverContext)
{
return null;
}
}
}