花了无数小时来更改我的代码,并删除了所有不会被序列化,并将其更改为字符串和编写函数从字体/颜色转换为字符串,然后再回来我已经厌倦了,并决定让我自己的基本串行..在C#应用程序中存储用户设置
private void saveSettings()
{
PropertyInfo[] properties = typeof(settingsObj).GetProperties();
foreach (settingsObj s in settings)
{
foreach (PropertyInfo property in properties)
{
MessageBox.Show(s.[property.Name]);
}
}
}
我如何引用变量使用字符串,在PHP中我会怎么做:
$varIWantToRead = "foobar";
$varName = "varIWantToRead";
print $$varName;
更多钞票复制http://stackoverflow.com/questions/453161/best-practice-to-save-application-settings-in-a-windows-forms-application – spajce