[Mono-dev] Array of delegate, possible in an interface definition?

2005-12-05 Thread Sebastian Nowozin
Hello everybody, I have code like this: public class Test { public delegate TestDelegate (int a, int b); public interface TestInterface { TestDelegate[] CalculateStuff; } } On compilation with latest mono mcs 1.1.10, this gives the following errors: syntax error, got token

Re: [Mono-dev] Array of delegate, possible in an interface definition?

2005-12-05 Thread Robert Jordan
Hi, public class Test { public delegate TestDelegate (int a, int b); public delegate SOME_RETURN_TYPE TestDelegate(int a, int b); Robert public interface TestInterface { TestDelegate[] CalculateStuff; } } On compilation with latest mono mcs 1.1.10, this gives the

Re: [Mono-dev] Array of delegate, possible in an interface definition?

2005-12-05 Thread Kornél Pál
-dev] Array of delegate, possible in an interface definition? Hello everybody, I have code like this: public class Test { public delegate TestDelegate (int a, int b); public interface TestInterface { TestDelegate[] CalculateStuff; } } On compilation with latest mono mcs 1.1.10

Re: [Mono-dev] Array of delegate, possible in an interface definition?

2005-12-05 Thread Sebastian Nowozin
Hello Kornél, On 12/5/05, Kornél Pál [EMAIL PROTECTED] wrote: There are two major problems in you code: 1) Delegates are much like function pointers so they have to have a return type. Args, sure, in the original code it was there. In my Test code written it somehow dropped ;-) 2)