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原创,版权私有,翻载必纠。欢迎交流,转载,但要在页面明显位置给出原文连接。谢谢。
  • 相关阅读:
    其他
    Win10
    Win10
    面向对象与设计模式
    Git
    Java
    Git
    Git
    Git
    一、I/O操作(File文件对象)
  • 原文地址:https://www.cnblogs.com/newsea/p/1531135.html
Copyright © 2011-2022 走看看