Hi,
AFAIk the signature should be exact , think what would happen if you have
another delegate with the typed dataset as the return type, at compile time
which one to use?
the solution is fast though , just create another method with the correct
signature and make it return the correct type, like this
DataSet wrapper( string code)
{
return realMethod( code);
}
where realMethod return the typed dataset.
cheers,
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Magali Desmedt" <Ma***********@discussions.microsoft.com> wrote in message
news:59**********************************@microsof t.com...
Hi,
I have this delegate: public delegate DataSet TestDelegate1(string code);
But when I try to pass methods that return a typed dataset instead of a
regular dataset I get an error saying the method does not match the
delegate.
Is there a way around that?
Thanks.