Пример #1
0
        public static object CreateDuck(this IMethodInvoker target, Type proxyType)
        {
            var adapter = new MethodInvokeAdapter(target);

            return(adapter.CreateDuck(proxyType));
        }
Пример #2
0
        public static T CreateDuck <T>(this IMethodInvoker target)
        {
            var adapter = new MethodInvokeAdapter(target);

            return(adapter.CreateDuck <T>());
        }