Generic Function wrapper
问题 I have many functions with different content but the parameters and try catch inside is almost similar. Is there anyway to wrap the function up so that can reduce redundant codes. ResponseStatus GetPotatoList(GetPotatosRequest requestParam, out GetPotatosResponse response, out ResponseErrorType errorType) { ResponseStatus status = ResponseStatus.Fail; response = new GetPotatosResponse(); //To Do try { //To Do status = ResponseStatus.Success; } catch(CustomException ex) { errorType =