示例#1
0
        public static int MainMethod(string[] ars)
        {
            Test  l = new Test();
            Base1 r = new Base1()
            {
                field = 2
            }

            ;

            try
            {
                dynamic d0 = l;
                d0 *= r;
            }
            catch (Microsoft.CSharp.RuntimeBinder.RuntimeBinderException e)
            {
                if (ErrorVerifier.Verify(ErrorMessageId.BadBinaryOps, e.Message, "*=", "Test", "Base1"))
                {
                    return(0);
                }
            }

            return(1);
        }
        public static int MainMethod(string[] ars)
        {
            Test l = new Test();
            Base1 r = new Base1()
            {
                field = 2
            }

            ;
            try
            {
                dynamic d0 = l;
                d0 *= r;
            }
            catch (Microsoft.CSharp.RuntimeBinder.RuntimeBinderException e)
            {
                if (ErrorVerifier.Verify(ErrorMessageId.BadBinaryOps, e.Message, "*=", "Test", "Base1"))
                    return 0;
            }

            return 1;
        }