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

ProxyUtil

public static class ProxyUtil
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)