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
TProxyTTarget
- Inheritance
-
DelegateProxyFactory<TProxy, TTarget>
- Implements
-
IProxyFactory<TProxy, TTarget>
- Inherited Members
- Extension Methods
Constructors
DelegateProxyFactory(Func<TTarget, TProxy>)
public DelegateProxyFactory(Func<TTarget, TProxy> wrapDelegate)
Parameters
wrapDelegateFunc<TTarget, TProxy>
Properties
ProxyType
public Type ProxyType { get; }
Property Value
TargetType
public Type TargetType { get; }
Property Value
Methods
CreateProxyObject(object)
public object CreateProxyObject(object o)
Parameters
oobject
Returns
CreateProxyObject(TTarget)
public TProxy CreateProxyObject(TTarget target)
Parameters
targetTTarget
Returns
- TProxy