If I have a method that returns something, like
public DataTable ReturnSomething() { try { //logic here return ds.Tables[0]; } catch (Ex
Store your return value in a temporary variable like this:
public DataTable ReturnSomething() { DataTable returnValue = null; try { //logic here returnValue = ds.Tables[0]; } catch (Exception e) { ErrorString=e.Message; } return returnValue; }