Abstracting IsolatedStorageSettings

This section briefly touches on the topic of abstracting the IsolatedStorageSettings class. By providing a custom API for application settings, it decouples your code from the .NET-specific IsolatedStorageSettings class and allows you to change the way settings are stored, thereby increasing the portability of your code.

The IsolatedStorageSettings class uses a DataContractSerializer that serializes objects using XML, which is significantly slower than, for example, a binary serializer.

In the Calcium project there exists an ISettingsService that includes methods to retrieve items from persistent storage. The Calcium settings API allows you to retrieve a value from isolated storage while supplying a default ...

Get Windows® Phone 8 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.