Fix IsolatedStorageFile.GetUserStoreForApplication() for MOBILE.
commit9e2c5d2c140512dff8d9bb70796cefe386707f9d
authorJonathan Pryor <jonpryor@vt.edu>
Tue, 12 Oct 2010 02:26:38 +0000 (11 22:26 -0400)
committerJonathan Pryor <jonpryor@vt.edu>
Tue, 12 Oct 2010 02:30:50 +0000 (11 22:30 -0400)
tree8392e63d21d02cb3bcf17b085879b4d5d0f2c74f
parentee2edbad34aae615992df7bc8f216cbc8e6f9925
Fix IsolatedStorageFile.GetUserStoreForApplication() for MOBILE.

IsolatedStorageFile.GetUserStoreForApplication() would previously throw an
IsolatedStorageException because no ApplicationIdentity was provided by the
AppDomain.

We would like to provide this method in a workable fashion to facilitate code
portability with Windows Phone 7, which exposes only this method for saving
files to stable storage.

Thus, skip the ApplicationIdentity and code identity checks for MOBILE
(MonoDroid, MonoTouch) so that IsolatedStorage Just Works.
mcs/class/corlib/System.IO.IsolatedStorage/IsolatedStorage.cs
mcs/class/corlib/System.IO.IsolatedStorage/IsolatedStorageFile.cs