Advertisement
Guest User

Untitled

a guest
Jun 27th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. public string FooMethodWithLongName(int input) {
  2. string retVal = null;
  3.  
  4. try
  5. {
  6. Logger.Log(Assembly + string.Format("/FooMethodWithLongName : Entering method with parameter {0}", input));
  7.  
  8. // Checking if input is over 12
  9. if (input > 12)
  10. {
  11. retVal = DoStuff(input);
  12. }//if (input > 12)
  13. }//try
  14. catch (Exception e)
  15. {
  16. Logger.Log(Assembly + string.Format("/FooMethodWithLongName : EXCEPTION: {0}", e.ToString()));
  17. }//catch(Exception)
  18. finally
  19. {
  20. Logger.Log(Assembly + string.Format("/FooMethod : Exiting method."));
  21. }//finally
  22.  
  23. return retVal;
  24. }//public string FooMethod(int input)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement