Hello,
I come here to expose my use of delegate.
I hope there is a better fashion, because in that form, parameters could not be
verified at compilation time.
<code>
delegate void TheMethodDelegate( param1, param2 );
void TheMethod( param1, param2 )
{
}
void AnotherMethod()
{
this.BeginInvoke(
new TheMethodDelegate(TheMethod),
new object[] { "foo" }
);
}
</code>
You can see that one parameter is missing ...
And the compiler do not say anything.
Is there another method that be safe for method signature verification at
compilation time ?
Thanks for you lights,
cyrille.