标签:
1.使用ResourceManager
string st = Properties.Resources.ResourceManager.GetString(tableName);
value = Properties.Resources.ResourceManager.GetObject(fileName, Properties.Resources.Culture);
2. 使用反射
var type = typeof(Properties.Resources);
var property = type.GetProperty(fileName, BindingFlags.Static| BindingFlags.NonPublic|BindingFlags.Public);
var value = property.GetValue(null, null);
标签:
原文地址:http://www.cnblogs.com/xpvincent/p/4330703.html