<PackageReference Include="Castle.Core" Version="0.0.1110" />

ProxyUtil

public static class ProxyUtil
public static TDelegate CreateDelegateToMixin<TDelegate>(object proxy)

Creates a delegate of the specified type to a suitable `Invoke` method on the given proxy instance.

public static Delegate CreateDelegateToMixin(object proxy, Type delegateType)

Creates a delegate of the specified type to a suitable `Invoke` method on the given proxy instance.

public static object GetUnproxiedInstance(object instance)

public static Type GetUnproxiedType(object instance)

public static bool IsAccessible(MethodBase method)

Checks whether the specified method is accessible to DynamicProxy.

public static bool IsAccessible(MethodBase method, out string message)

Checks whether the specified method is accessible to DynamicProxy.

public static bool IsAccessible(Type type)

Checks whether the specified type is accessible to DynamicProxy.

public static bool IsProxy(object instance)

public static bool IsProxyType(Type type)