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