private void ProcessResult(int i) { if (i >= 50) { try { throw new ArgumentOutOfRangeException(i + " is out of range"); } catch (ArgumentOutOfRangeException ex) { logger.LogException(ex); } } else { logger.LogInfoMessage("int worker result = " + i.ToString()); } }
private void ProcessResult(char i) { if (i >= 50) { try { throw new ArgumentOutOfRangeException(i + " is not allowed"); } catch (ArgumentOutOfRangeException ex) { logger.LogException(ex); } } else { logger.LogInfoMessage("char worker result = " + i.ToString()); } }