thumbmunkeys
thumbmunkeys

Reputation: 20764

How is PhoneApplicationService.Current.State remembered

The PhoneApplicationService.Current.State dictionary can be used for persisting data when the application gets tombstoned.

I wonder how my objects get persisted in this dictionary, are they serialized and then stored somewhere, or is the whole dictionary kept in memory?

Upvotes: 2

Views: 623

Answers (1)

Stefan Wick  MSFT
Stefan Wick MSFT

Reputation: 13850

The objects are serialized (using DataContractSerializer) and then kept in memory. This is different (and faster) compared to IsolatedStorage which saves the data to disk.

Upvotes: 4

Related Questions