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

     

       

      

  • 相关阅读:
    oracl遇到的问题
    Ubuntu安装pyucharm的专业版本
    android adb logcat详解(三)
    android monkey压力测试(二)
    android adb常用命令(一)
    python *args 与 **kwargs
    python中带有下划线的变量和函数
    如何区分Python package
    Python Importlib.import_module动态导入模块
    python os.path.dirname(__file__)
  • 原文地址:https://www.cnblogs.com/greencolor/p/1711475.html
Copyright © 2011-2022 走看看