我是在一个三维引擎(unity3d)下, 用C# 脚本写的。
 
using System.IO;.......
DriveInfo[] allDrives = DriveInfo.GetDrives(); 这里抛了异常异常内容:
NotImplementedException: The requested feature is not implemented.
System.IO.DriveInfo.WindowsGetDrives ()
System.IO.DriveInfo.GetDrives ()如果是用C#建立windows应用程序,上边是没有问题的。 但是在这个引擎下就抛异常。可能很多人没有用三维引擎这么弄过。 我只是想问下,如果是纯C#出现这种异常要如何处理,还有这个异常是如何引起的。 我找到了mscorlib.dll 加入,一样不对。