[Mono-devel-list] casting method to delegates compiles

Duncan Mak duncan at ximian.com
Wed Jun 23 15:05:14 EDT 2004


On Wed, 2004-06-23 at 14:16, Duncan Mak wrote:
> What error do you see? I just compiled this same program with csc, and
> it worked as expected.

Oh! So this is actually a 2.0 feature (available in Whidbey). The
correct, 1.0 way of expressing this is:

        private void Go ()
        {
        	DoSomething (new MyDelegate (SomeMethod));
        }
        
By default, we enable 2.0 features in mcs (those that are implemented).

Duncan.



More information about the Mono-devel-list mailing list