Allen Wang

专注web开发
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

Extended Strongly Typed Resource Generator

Posted on 2006-11-16 17:42  AllenWang.NET  阅读(257)  评论(0编辑  收藏  举报

源代码及安装文件
http://www.codeproject.com/dotnet/ResXFileCodeGeneratorEx.asp

下载后安装

在resc属性里设置:


能够对.NET中的资源文件生成格式化的字符串函数, 比如:
定义一个resx文件


会集成下面的代码:

public static string HelloFormat(object arg0) 
            
return string.Format(_resourceCulture, Hello, arg0); 
      
 }

如果有多个参数则会生成带多个参数的函数。