Ejemplo n.º 1
0
 public void TestCast() {
     Func<int,int> f = a => {
         var c = new CCast { v = a };
         object o = ForceObject(c);
         var c2 = (CCast)o;
         return c2.v;
     };
     this.Test(f);
 }
Ejemplo n.º 2
0
        public void TestCast()
        {
            Func <int, int> f = a => {
                var c = new CCast {
                    v = a
                };
                object o  = ForceObject(c);
                var    c2 = (CCast)o;
                return(c2.v);
            };

            this.Test(f);
        }