Bestcomy.net blog

Coding for funny

导航

Microsoft Visual Studio 2005 beta体验之:系统保留文件夹

Posted on 2004-07-20 15:02  bestcomy  阅读(1220)  评论(2编辑  收藏  举报

昨天有贴说明在Microsoft Visual Studio 2005 beta慎用"Resources"文件夹
今日反编译.net 2.0 的“System.Web.HttpRuntime”发现
static HttpRuntime()
{
      HttpRuntime.s_autogenKeys = new byte[88];
      string[] textArray1 = new string[5];
      textArray1[0] = "bin";
      textArray1[1] = "code";
      textArray1[2] = "data";
      textArray1[3] = "resources";
      textArray1[4] = "webreferences";
      HttpRuntime.s_forbiddenDirs = textArray1;
      HttpRuntime.s_forbiddenDirsConstant = new int[5] { 1, 2, 4, 8, 16 };
      HttpRuntime.s_initialized = false;
      HttpRuntime.s_isapiLoaded = false;
      HttpRuntime.AddAppDomainTraceMessage("*HttpRuntime::cctor");
      if (!DesignTimeParseData.InDesigner)
      {
            HttpRuntime.StaticInit();
      }
      HttpRuntime._theRuntime = new HttpRuntime();
      if (!DesignTimeParseData.InDesigner)
      {
            HttpRuntime._theRuntime.Init();
      }
      HttpRuntime.AddAppDomainTraceMessage("HttpRuntime::cctor*");
}
由此可见下列文件夹都为系统保留:
bin
code
data
resources
webreferences

从而昨天的问题得到完美的解释