zoukankan      html  css  js  c++  java
  • HttpContext.Current.Request.QueryString.AllKeys 返回的大小写, 飘忽不定。

    HttpContext.Current.Request.QueryString.AllKeys 返回的大小写, 飘忽不定。

    E:\myapp\MS_Symbols\src\source\FXUpdate3074\1.1\DEVDIV\depot\DevDiv\releases\whidbey\QFE\ndp\fx\src\xsp\System\Web\OutputCacheModule.cs\6\OutputCacheModule.cs

    internal static string CreateOutputCachedItemKey

                        /* handle all params case (VaryByParams[*] = true) */
                        if (getAllParams && col.Count > 0) {
                            a = col.AllKeys;
                            for (i = a.Length - 1; i >= 0; i--) {
                                if (a[i] != null)
                                    a[i] = CultureInfo.InvariantCulture.TextInfo.ToLower(a[i]);
                            }
     
                            Array.Sort(a, InvariantComparer.Default);
                        }

    不明白, 为什么要 ToLower ?!

    alarm   作者:NewSea     出处:http://newsea.cnblogs.com/    QQ,MSN:iamnewsea@hotmail.com

      如无特别标记说明,均为NewSea原创,版权私有,翻载必纠。欢迎交流,转载,但要在页面明显位置给出原文连接。谢谢。
  • 相关阅读:
    CSS基础(十七)--Padding和margin(内边距和外边距)
    tomcat动态网站
    http和nginx错误定义
    nginx动态网站
    nginx动静分离
    nginx负载均衡
    nginx介绍
    cobbler服务器
    apache网络配置
    网络源
  • 原文地址:https://www.cnblogs.com/newsea/p/1531135.html
Copyright © 2011-2022 走看看