C# 如何在wp7中的独立存储中存储整数值?
我想在wp7中的独立存储中存储一个整数值,这样当我再次关闭和打开应用程序时,该值应该保留。如何获得该值?如果要存储单个整数值,最简单的方法是使用:C# 如何在wp7中的独立存储中存储整数值?,c#,windows-phone-7,C#,Windows Phone 7,我想在wp7中的独立存储中存储一个整数值,这样当我再次关闭和打开应用程序时,该值应该保留。如何获得该值?如果要存储单个整数值,最简单的方法是使用: 如果要存储单个整数值,最简单的方法是使用: // Store the value IsolatedStorageSettings.ApplicationSettings["Whatever"] = yourValue; // Retrieve it yourValue = (int)IsolatedStorageSettings.Applicati
如果要存储单个整数值,最简单的方法是使用:
// Store the value
IsolatedStorageSettings.ApplicationSettings["Whatever"] = yourValue;
// Retrieve it
yourValue = (int)IsolatedStorageSettings.ApplicationSettings["Whatever"];