• 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

     

       

      

  • 相关阅读:
    AC自动机讲解超详细
    区间树Splay——[NOI2005]维护数列
    区间树Splay——[NOI2005]维护数列
    Trie学习总结
    微信小程序刮刮乐
    微信小程序获得高度
    微信小程序多video播放暂停问题
    vue中的问题思考
    vue的开发技巧
    微信小程序消息推送,前端操作
  • 原文地址:https://www.cnblogs.com/greencolor/p/1711475.html
Copyright © 2020-2023  润新知