Exemple #1
0
 private void WriteCatchClause(CodeCatchClause clause)
 {
     writer.Write(" ");
     writer.Write("catch");
     if (clause.CatchExceptionType != null)
     {
         writer.Write(" (");
         expWriter.VisitTypeReference(clause.CatchExceptionType);
         if (!string.IsNullOrEmpty(clause.LocalName))
         {
             writer.Write(" ");
             writer.WriteName(clause.LocalName !);
         }
         writer.Write(")");
     }
     WriteStatements(clause.Statements);
 }