一个c#的程序,我修改了其中一个dll,但是启动就自动报错。跟踪了一下,发现
public static void Main(string[] args)
{
    AppDomain.get_CurrentDomain().add_UnhandledException(new UnhandledExceptionEventHandler(null, CurrentDomain_UnhandledException));
    Application.ThreadException += new ThreadExceptionEventHandler(Entry.Application_ThreadException);
    try
    {
        string[] commandLineArgs = Environment.GetCommandLineArgs();
        if ((commandLineArgs.Length >= 3) && (commandLineArgs[1] == "/x"))
        {
            if (MessageBox.Show("确认要卸载本系统吗?", "卸载 提示", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2) == DialogResult.Yes)
            {
                Uninstaller.Uninstall(commandLineArgs[2]);
            }
        }是否这个AppDomain可以用来检测dll是否改变呢?