Does IsolatedStorageFileStream.Lock work under SIlverlight4?
- by Noah
Silverlight uses an IsolatedStorageFileStream to open files.
The IsolatedStorageFileStreamunder NET.4 claims to support the Lock Method (Inherited from FileStream)
The following code
IsolatedStorageFile isf;
IsolatedStorageFileStream lockStream = new IsolatedStorageFileStream( "my.lck", FileMode.OpenOrCreate, isf );
lockStream.Lock( 0, 0 );
…