G
Guest
Consider this....
public sqldatareader somefunction(){
try
{
sqldatareader sr=sqlcommand.executereader();
return sr;
}
catch
{
throw;
}
}
my question is why bother with try/catch, if I have to throw an exception?
public sqldatareader somefunction(){
try
{
sqldatareader sr=sqlcommand.executereader();
return sr;
}
catch
{
throw;
}
}
my question is why bother with try/catch, if I have to throw an exception?