请问以下程序中catch中的return有什么用
using System;using System.Collections.Generic;
using System.Linq;
using System.Text;
using
namespace 文件使用
{
class Program
{
public static void Main()
{
string[] CLA = Environment.GetCommandLineArgs();
Console.WriteLine(CLA[0]);
if (CLA.Length < 3)
{
Console.WriteLine("Format:{0} orig-file new-file",CLA[0]);
}
else {
string origfile;
origfile = CLA[1];
string newfile;
newfile = CLA[2];
try
{
File.Copy(origfile, newfile );
}
catch () { Console.WriteLine("{0}dose not exist", origfile);
return;
}
catch (Exception e) { Console.WriteLine("An exception was thrown trying to copy file.");
return;
}
Console.WriteLine("Copy...");
}
Console.WriteLine(".....Done");
}
}
}