Hi,
Unlike Java, there is no Checked Exception in C#.
Is there any work around for this.
For example, I am declaring an interface and inside this interface I have a
function and I would like to force this function to throw an exception in
the implementation.
public interface IMyInterface
{
void foo () throws MyException;
}
how can I do that?
Thanks,
Lalit
Unlike Java, there is no Checked Exception in C#.
Is there any work around for this.
For example, I am declaring an interface and inside this interface I have a
function and I would like to force this function to throw an exception in
the implementation.
public interface IMyInterface
{
void foo () throws MyException;
}
how can I do that?
Thanks,
Lalit
Comment