寺委书记

Good good study, day day up!

导航

枚举资源文件中文件名的方法

Posted on 2011-01-05 10:28  MonkChen  阅读(241)  评论(0)    收藏  举报

枚举资源文件中文件名的方法,备忘,代码如下:

代码
            var rs = Resource1.ResourceManager.GetResourceSet(System.Globalization.CultureInfo.CurrentCulture, truetrue).OfType<DictionaryEntry>();
            
string str = string.Empty;
            
foreach (DictionaryEntry de in rs)
            {
                str 
+= de.Key + ":" + de.Value.ToString() + "\r\n";
            }

            MessageBox.Show(str);