//
//从资源中获得资源名称
//
PropertyInfo[] _PropertiesList = Type.GetType("Proxy.Properties.Resources", false).GetProperties(BindingFlags.NonPublic | BindingFlags.Static);
for (int i = 0; i < _PropertiesList.Count(); i++)
{
if (_PropertiesList[i].Name == "Culture" || _PropertiesList[i].Name == "ResourceManager") continue;
comboBox1.Items.Add(_PropertiesList[i].Name);
}
C# 从工程资源中获得资源名称
最新推荐文章于 2024-03-12 11:40:08 发布