コード例 #1
0
 public static T Indent <T>(this IPackageLog log, Func <T> action)
 {
     log.Indent();
     try
     {
         return(action());
     }
     finally
     {
         log.Unindent();
     }
 }
コード例 #2
0
 public static void Indent(this IPackageLog log, Action action)
 {
     log.Indent();
     try
     {
         action();
     }
     finally
     {
         log.Unindent();
     }
 }