예제 #1
0
        override protected bool ProcessMethodInvocationWithInvalidParameters(MethodInvocationExpression node, IMethod targetMethod)
        {
            if (!TypeSystemServices.IsSystemObject(targetMethod.DeclaringType))
            {
                return(false);
            }

            MemberReferenceExpression target = node.Target as MemberReferenceExpression;

            if (null == target)
            {
                return(false);
            }
            if (!IsDuckTyped(target.Target))
            {
                return(false);
            }

            BindQuack(node.Target);
            BindDuck(node);
            return(true);
        }