【发布时间】:2013-04-17 21:08:46
【问题描述】:
我正在尝试使用 C# 开发 Windows 8 应用程序,我需要在本地设置中存储两个列表(字符串和日期时间)
List<string> names = new List<string>();
List<DateTime> dates = new List<DateTime>();
我根据这个页面使用了 LocalSettings:http://msdn.microsoft.com/en-us/library/windows/apps/xaml/hh700361
Windows.Storage.ApplicationDataContainer localSettings = Windows.Storage.ApplicationData.Current.LocalSettings;
但我在存储列表并从保存的设置中取回它们时遇到问题。
您能否通过发送几行来存储和检索字符串 List 和 DateTime 列表类型对象(或存储此类数据的其他方法)来提供帮助。
谢谢。
【问题讨论】:
标签: c# windows windows-8 windows-runtime local-storage