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) In

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

2005-12-05 Thread Kornél Pál
delegate void TestDelegate (int a, int b); public interface TestInterface { TestDelegate[] CalculateStuff { get; } } } Kornél - Original Message - From: "Sebastian Nowozin" <[EMAIL PROTECTED]> To: Sent: Monday, December 05, 2005 10:32 PM Subject: [Mono-dev] A

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 foll

[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 `