I am attempting to build an application using Xamarin's Mono stuff (MonoTouch and MonoDroid). I am trying to write some code that will allow me to place content in local storage. Coming from a Windows Phone background, I thought this was the recommended approach in the Xamarin world also. On Windows Phone, I would have done the following:
IsolatedStorageSettings clientStorage = IsolatedStorageSettings.ApplicationSettings;
if (clientStorage != null)
{
if (clientStorage.Contains("myKey"))
clientStorage["myKey"] = value;
else
clientStorage.Add("myKey", value);
clientStorage.Save();
}
While the Xamarin stack provides System.IO.IsolatedStorage
, it does not provide the IsolatedStorageSettings
class. Now, I feel stuck and I cannot find an example. My question is, how do I put a value in Isolated Storage in a Mono app?
Thank you