Пример #1
0
        public static bool DoesMethodExist(Action <IDuckSample> method)
        {
            var canDuckProxy = new CanDuckSampleProxy();

            method(canDuckProxy);
            return(canDuckProxy.MethodExists);
        }
Пример #2
0
 public static bool DoesMethodExist(Action<IDuckSample> method)
 {
     var canDuckProxy = new CanDuckSampleProxy();
     method(canDuckProxy);
     return canDuckProxy.MethodExists;
 }