C#中所需命名空间已导入,但其中的类还是人不出来
夏黑26 2009-11-25 05:10:14 using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
using System.Web;
namespace FileManager
{
public class FileSystemManager
{
private static string strRootFolder;
static FileSystemManager() {
strRootFolder = HttpContext.Current.Request.PhysicalApplicationPath;
}
}
}
源代码如上,HttpContext类在命名空间:System.Web中,我已经引用了该命名空间,但是为什么其中的HttpContext却认不来呢?