using Castle.DynamicProxy; namespace Abp.Reflection { public static class ProxyHelper { /// /// Returns dynamic proxy target object if this is a proxied object, otherwise returns the given object. /// public static object UnProxy(object obj) { return ProxyUtil.GetUnproxiedInstance(obj); } } }