O'Reilly logo

Windows® Phone 8 Unleashed by Daniel Vaughan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required