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

Sebastian Nowozin nowozin at gmail.com
Mon Dec 5 16:32:33 EST 2005


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 `SEMICOLON'
File.cs(311,38): error CS1041: Identifier expected
syntax error, got token `SEMICOLON'
File.cs(315,48): error CS1041: Identifier expected
Compilation failed: 2 error(s), 0 warnings

(The line numbers are different as its from real code ;-).  I am not
sure what is wrong with this use of delegates or whether its a mono
bug.

Anyone knows what is wrong?

Thanks,
Sebastian



More information about the Mono-devel-list mailing list