Table of Contents

Class DelegateProxyFactory<TProxy, TTarget>

Namespace
MoonSharp.Interpreter.Interop
Assembly
Assembly-CSharp.dll
public class DelegateProxyFactory<TProxy, TTarget> : IProxyFactory<TProxy, TTarget>, IProxyFactory where TProxy : class where TTarget : class

Type Parameters

TProxy
TTarget
Inheritance
DelegateProxyFactory<TProxy, TTarget>
Implements
IProxyFactory<TProxy, TTarget>
Inherited Members
Extension Methods

Constructors

DelegateProxyFactory(Func<TTarget, TProxy>)

public DelegateProxyFactory(Func<TTarget, TProxy> wrapDelegate)

Parameters

wrapDelegate Func<TTarget, TProxy>

Properties

ProxyType

public Type ProxyType { get; }

Property Value

Type

TargetType

public Type TargetType { get; }

Property Value

Type

Methods

CreateProxyObject(object)

public object CreateProxyObject(object o)

Parameters

o object

Returns

object

CreateProxyObject(TTarget)

public TProxy CreateProxyObject(TTarget target)

Parameters

target TTarget

Returns

TProxy