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

Robert Jordan robertj at gmx.net
Mon Dec 5 16:43:05 EST 2005


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




More information about the Mono-devel-list mailing list