好吧,说我有这样的应用程序:
using System;
using AliensExist; // some DLL which can't be found...
Run Code Online (Sandbox Code Playgroud)
我想的是,如果大会DLL AlienExist无法找到该应用程序将不会返回一个错误 - 而是被"trycatched"这就是说,...:
using System;
try{
using AliensExist; // some DLL which can't be found...
} catch {}
Run Code Online (Sandbox Code Playgroud)
怎么做?我知道use关键字以后不能使用...但我现在太懒了测试它.
10倍!
如果我不是管理员并启动一个写入C:\某些文本文件的程序 - 我是否需要管理员权限...在Windows 7或Vista中?我在XP中看到写入包括system32在内的任何文件夹都没有问题 - 但我不确定.NET中的程序是否能够在没有管理员权限的情况下执行此操作.