zoukankan      html  css  js  c++  java
  • resources contain {0}

    1):  In the SR.resx file, the item contain {0}

    ----------------------------------------------------------

    in the SR.Designer.cs  file

            /// <summary>
            ///   Get information from the resx with the style as:  string information {0} 
            /// </summary>
            internal static string getvaluestr(string KKKD)
            {
                string UUU;           
                UUU = ResourceManager.GetString("getvaluestr", resourceCulture);
                return string.Format(UUU, KKKD);           
            }

    In the application file

           SR.getvaluestr("test");    //

           //  output  ->    string information test

    ---------------------------------------------------------------

    2):  in the SR.resx file, the item does not have {0}

    ---------------------------------------------------------------

    in the SR.Designer.cs file

            /// <summary>
            ///  Get information from the resx with the style as:  best string information
            /// </summary>

           internal static string CategoryAttri {
                get {
                    return ResourceManager.GetString("CategoryAttri", resourceCulture);
                }
            }

    In the application file

           SR.CategoryAttri;    //

           // output ->     best  string information

     

       

      

  • 相关阅读:
    《剑指offer》面试题7:旋转数组的最小数字
    eclipse ------ TODO、FIXME、XXX 等任务标记
    RT-Thread ------ waitqueue
    RT-Thread ------ 设备注册
    ubuntu 安装 glibc
    openwrt上面移植MQTT代码
    MH5000-31模组无法识别SIM卡
    "Hello osmdroid World"手机GPS轨迹数据
    地质数据下载
    绘图软件Surfer绘制等高线
  • 原文地址:https://www.cnblogs.com/greencolor/p/1711475.html
Copyright © 2011-2022 走看看