예제 #1
0
 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());
     }
 }
예제 #2
0
 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());
     }
 }