Exemplo n.º 1
0
        public static int MainMethod(string[] args)
        {
            Base    b = new FurtherDerived();
            dynamic d = int.MaxValue;

            try
            {
                b.Method(d);
            }
            catch (Microsoft.CSharp.RuntimeBinder.RuntimeBinderException e)
            {
                return(0);
            }

            return(1);
        }
        public static int MainMethod(string[] args)
        {
            Base b = new FurtherDerived();
            dynamic d = int.MaxValue;
            try
            {
                b.Method(d);
            }
            catch (Microsoft.CSharp.RuntimeBinder.RuntimeBinderException e)
            {
                return 0;
            }

            return 1;
        }