2010年02月06日
string.Format是比较常用的一个方法,很好用。但是有时候用来格式化一个字符串的时候,却是提示字符串类型非法的问题。
查看了一下代码:原来是{有这个东西作怪,内容包含{这个符号的时候,就需要double写一下:{{。
发表评论(没有评论) 分类:.NET
姓名:*必填
邮件: *必填 (不会被公开)
网站:
Anti-spam word: (Required)* To prove you're a person (not a spam script), type the security word shown in the picture.
谢小漫,夜的猫生活。深度挖掘数据,广度挖掘商机。