枚举资源文件中文件名的方法,备忘,代码如下:
代码
var rs = Resource1.ResourceManager.GetResourceSet(System.Globalization.CultureInfo.CurrentCulture, true, true).OfType<DictionaryEntry>();
string str = string.Empty;
foreach (DictionaryEntry de in rs)
{
str += de.Key + ":" + de.Value.ToString() + "\r\n";
}
MessageBox.Show(str);
string str = string.Empty;
foreach (DictionaryEntry de in rs)
{
str += de.Key + ":" + de.Value.ToString() + "\r\n";
}
MessageBox.Show(str);

浙公网安备 33010602011771号